Blame view

QChatClient/chatwidget.h 473 Bytes
1
2
3
4
#ifndef CHATWIDGET_H
#define CHATWIDGET_H

#include <QTextEdit>
Imanol-Mikel Barba Sabariego authored
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);
Imanol-Mikel Barba Sabariego authored
17
    void printServerMsg(const string &str);
18
    void printStatusMsg(const string& str);
19
20
21
22

signals:

public slots:
Imanol-Mikel Barba Sabariego authored
23
    void saveChatToFile();
24
25
26
27

};

#endif // CHATWIDGET_H