-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatwindow.h
66 lines (55 loc) · 1.64 KB
/
chatwindow.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef CHATWINDOW_H
#define CHATWINDOW_H
#include <QMainWindow>
#include <QListWidget>
#include "smileswidgets.h"
#include "ChatClient.h"
#include "RegisterBot.h"
#include "ListOfChannels.h"
#include "ChatWidgets.h"
#include "StatusDialog.h"
#include "UserInfoDialog.h"
#include "OwnerProfile.h"
#include "AboutProgrammDialog.h"
namespace Ui {
class ChatWindow;
}
class ChatWindow : public QMainWindow
{
Q_OBJECT
public:
explicit ChatWindow(QWidget *parent = 0);
~ChatWindow();
private:
Ui::ChatWindow *ui;
ChatClient *m_client;
smilesWidget *m_smiles;
ListOfChannels *m_channelListDialog;
ChatTabWidget *m_tabWidget;
QMenu m_menu;
StatusDialog m_statusDialog;
UserInfoDialog m_userInfoDialog;
OwnerProfile m_ownerProfile;
AboutProgrammDialog m_aboutProgram;
void setMyChannelList(QMap<QString,QString> list);
protected:
virtual void closeEvent(QCloseEvent *event);
signals:
void sendMessage(const QString &, const QString &);
void sendAllChannelsList(QMap<QString,QString>);
void requestUserList(QString);
void replyJoinRequestResult(QString, bool);
void statusChanged(QString status);
private slots:
void postMessage();
void setText(QString text);
void insertText(QString smileName);
void processChannelList(QMap<QString,QString> list, ChatClient::ChannelListType type);
void getChannelJoinResult(QString channelName, bool result);
void onChangeStatus(QString status);
void onChangeStatus(int index);
void on_menuButton_clicked();
public slots:
void connectToServer(QString username, QString password, QTcpSocket *socket);
};
#endif // CHATWINDOW_H