玉兔远程控制
0.1.0-bate11
Toggle main menu visibility
载入中...
搜索中...
未找到
Src
Channel
ICE
Ice.h
1
2
3
#ifndef CICE_H
4
#define CICE_H
5
6
#include <QObject>
7
#include <QSharedPointer>
8
#include <QTranslator>
9
10
#include "IceSignal.h"
11
#include "ParameterICE.h"
12
#include "FrmParameterICE.h"
13
25
class
PLUGIN_EXPORT
CICE
:
public
QObject
26
{
27
Q_OBJECT
28
public
:
29
explicit
CICE
(QObject *parent =
nullptr
);
30
virtual
~CICE
();
31
36
static
CICE
*
Instance
();
37
38
QSharedPointer<CIceSignal> GetSignal();
39
CParameterICE
* GetParameter();
40
QWidget* GetParameterWidget(QWidget* parent =
nullptr
);
41
42
public
Q_SLOTS:
43
void
slotStart();
44
void
slotStop();
45
void
slotIceChanged();
46
void
slotConnected();
47
void
slotDisconnected();
48
void
slotError(
int
nError,
const
QString& szError);
49
50
private
:
51
QSharedPointer<CIceSignal> m_Signal;
52
CParameterICE
m_Parameter;
53
QTranslator m_Translator;
54
QLoggingCategory m_Log;
55
};
56
57
#endif
// CICE_H
CICE::Instance
static CICE * Instance()
Single instance
定义
Ice.cpp:55
CICE::CICE
CICE(QObject *parent=nullptr)
定义
Ice.cpp:15
CParameterICE
ICE 参数辅助类。用于管理 ICE 的参数。
定义
ParameterICE.h:20
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力