#ifndef CHATWIDGET_H #define CHATWIDGET_H #include using namespace std; class ChatWidget : public QTextEdit { Q_OBJECT public: explicit ChatWidget(QWidget *parent = 0); void printServerMsg(const string &str); void printMsg(const string& str); void printStatusMsg(const string& str); signals: public slots: }; #endif // CHATWIDGET_H