-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.h
78 lines (48 loc) · 1.23 KB
/
dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include "server.h"
#include <QSystemTrayIcon>
//#include "blowfish.h"
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
signals:
void signalSendMessage(QString name, QString mess);
void changePasswd(BLOWFISH_CTX *ctx,bool * encrypt);
public:
explicit Dialog(QWidget *parent = 0);
BLOWFISH_CTX *ctx;
bool encrypt;
QSystemTrayIcon *tray;
QMenu *menuUserList;
~Dialog();
public slots:
void onAddUserToGui(QString name);
void onRemoveUserFromGui(QString name);
void onMessageToGui(QString name,QString mes);
void runServer();
void slotSendMessae();
void slotInitPass();
void closeEvent2();
void showEvent();
void createMenuUserList();
void closeTab(int index);
protected:
virtual void keyPressEvent ( QKeyEvent * event );
private slots:
void on_lw_users_customContextMenuRequested(const QPoint &pos);
void on_act_Kick_triggered();
void on_actCall_triggered();
void on_btn_start_clicked();
void addNewRoom(QString);
private:
Ui::Dialog *ui;
server *_serv;
void closeEvent(QCloseEvent *eClose);
int closeid;
};
#endif // DIALOG_H