玉兔远程控制
0.1.0-bate11
Toggle main menu visibility
载入中...
搜索中...
未找到
Src
FrmViewServer.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#pragma once
4
5
#include <QStandardItemModel>
6
#include <QWidget>
7
#include <QToolBar>
8
#include <QTableView>
9
#include <QLabel>
10
#include <QAction>
11
#include "plugin_export.h"
12
13
#include "Stats.h"
14
20
class
PLUGIN_EXPORT CFrmViewServer :
public
QWidget
21
{
22
Q_OBJECT
23
public
:
24
explicit
CFrmViewServer(QWidget *parent =
nullptr
);
25
virtual
~CFrmViewServer();
26
27
void
AddActionInToolBar(QAction* pAction);
28
29
Q_SIGNALS:
30
void
sigDisconnect(
const
QString& szIp,
const
quint16 port);
31
32
private
Q_SLOTS:
33
void
slotConnected(
const
QString& szIp,
const
quint16 port);
34
void
slotDisconnected(
const
QString& szIp,
const
quint16 port);
35
void
slotContextMenuRequested(
const
QPoint& pos);
36
37
private
:
38
QToolBar* m_pToolBar;
39
QTableView* m_ptvClients;
40
QStandardItemModel m_ModelConnect;
41
QLabel* m_plbConnectCount;
42
CStatsSever
m_Stats;
43
};
CStatsSever
定义
Stats.h:75
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力