-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat_client.h
33 lines (26 loc) · 734 Bytes
/
chat_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef CHAT_CLIENT_H
#define CHAT_CLIENT_H
#include <QWidget>
#include "client_info.h"
#include "dbmanager.h"
#include "message_chat.h"
namespace Ui {
class ChatClient;
}
class ChatClient : public QWidget {
Q_OBJECT
public:
explicit ChatClient(Server server, QWidget *parent = 0);
~ChatClient();
private:
QString formatMessageReceived(QString username, QString message);
void formatMessageSent(QString username, QString message);
Ui::ChatClient *ui;
ClientInfo* client;
private slots:
void printMessage(QString username, QString message);
void on_pushButton_clicked();
void on_message_returnPressed();
void on_message_textChanged(const QString &message);
};
#endif // CHAT_CLIENT_H