-
Notifications
You must be signed in to change notification settings - Fork 4
/
ps_m_wnd.h
51 lines (37 loc) · 928 Bytes
/
ps_m_wnd.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
#ifndef PS_M_WND_H
#define PS_M_WND_H
#include <QMainWindow>
#include <QSharedPointer>
#include <QStandardItemModel>
#include "ps_socket.h"
struct Client_Session;
namespace Ui
{
class PS_M_Wnd;
}
class PS_M_Wnd : public QMainWindow
{
Q_OBJECT
public:
explicit PS_M_Wnd(QWidget *parent = 0);
~PS_M_Wnd();
private slots:
void on_act_cmd_triggered();
void on_act_scr_triggered();
public slots:
void slot_online(Line_Data* p_data);
void slot_disconn(Client_Session* p_cs);
void slot_create_dlg(Client_Session* p_cs, int n_type);
void slot_recv_data(Client_Session* p_cs, int n_type, QByteArray buf);
public:
SOCKET get_sel_sock();
private:
void init_table();
private:
Ui::PS_M_Wnd *ui;
private:
Ps_Socket* m_p_ps_sock;
private:
QSharedPointer<QStandardItemModel> m_tv_model;
};
#endif // PS_M_WND_H