|
1
2
3
4
|
#ifndef CHATWIDGET_H
#define CHATWIDGET_H
#include <QTextEdit>
|
|
5
6
7
|
#include <QFileDialog>
#include <QFile>
#include <QTextStream>
|
|
8
|
|
|
9
10
|
using namespace std;
|
|
11
12
13
14
15
|
class ChatWidget : public QTextEdit
{
Q_OBJECT
public:
explicit ChatWidget(QWidget *parent = 0);
|
|
16
|
void printMsg(const string& str);
|
|
17
|
void printServerMsg(const string &str);
|
|
18
|
void printStatusMsg(const string& str);
|
|
19
20
21
22
|
signals:
public slots:
|
|
23
|
void saveChatToFile();
|
|
24
25
26
27
|
};
#endif // CHATWIDGET_H
|