X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fchatwidget.h;h=faa14c091ea0477caadf603d0dd03119426c93c6;hp=2a25675a15beb8b2b8d37d7041399c3a1d82d0ac;hb=0208d04a0b8c25f3c77727a68eef94ce2d608690;hpb=6c6daea183c3a013a91fb8e9f250f6dece3023f8 diff --git a/src/qtopia/chatwidget.h b/src/qtopia/chatwidget.h index 2a25675a..faa14c09 100644 --- a/src/qtopia/chatwidget.h +++ b/src/qtopia/chatwidget.h @@ -18,3 +18,35 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#ifndef _CHATWIDGET_H_ +#define _CHATWIDGET_H_ + +#include +#include "chatline.h" +#include "qtopiauistyle.h" +#include "quasselui.h" + +class ChatWidget : public QTextEdit { + Q_OBJECT + + public: + ChatWidget(QWidget *parent = 0); + + public slots: + void setContents(QList); + void appendMsg(AbstractUiMsg *); + void prependMsg(AbstractUiMsg *); + void prependChatLine(ChatLine *); + void appendChatLine(ChatLine *); + void prependChatLines(QList); + void appendChatLines(QList); + + private: + void insertChatLine(ChatLine *); + void insertStyledText(const QtopiaUiStyle::StyledText &); + + + +}; + +#endif