-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
79 lines (59 loc) · 1.61 KB
/
mainwindow.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
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "blowfish.h"
#include "messinput.h"
#include <QAbstractSocket>
#include <QSystemTrayIcon>
class QTcpSocket;
class client;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
BLOWFISH_CTX *ctx;
bool encrypt;
void createMenuUserList();
private slots:
void connectToServer(QString name,QString addrServ,QString portServ, QString key);
void messageToGui(int kod, QString name, QString mess);
void getMess(int i, QString mess);
void connectSucces();
void inable();
void addUsersToGui(QString name);
void deleteUser(QString name);
void on_act_connect_triggered();
void getText(QString text);
void socError(QAbstractSocket::SocketError socketError);
void closeEvent2();
void showEvent();
void displayRooms(QStringList);
void on_act_disconnect_triggered();
void on_act_test_triggered();
void on_act_crypt_triggered();
void on_act_getIp_triggered();
void on_actionPeerPOrt_triggered();
void on_act_setting_triggered();
void on_act_About_triggered();
void on_lw_users_customContextMenuRequested(const QPoint &pos);
void on_act_Call_triggered();
signals:
void sendMessage(QString mess);
protected:
private:
QColor *myName;
QColor *otherName;
QFont *font;
client *tcpSocket;
QMenu *menuUsers;
Ui::MainWindow *ui;
void closeEvent(QCloseEvent *eClose);
int closeid;
QSystemTrayIcon *tray;
};
#endif // MAINWINDOW_H