|
玉兔远程控制 0.1.0-bate11
|
通道接口类。此类默认实现一个 TCP 的通道。 更多...
#include <Channel.h>


信号 | |
| void | sigConnected () |
| emit when the channel is connected. | |
| void | sigDisconnected () |
| emit when the channel is disconnected | |
| void | sigError (int nErr, const QString &szErr) |
| emit when the channel is error | |
| void | sigSecurityLevel (CSecurityLevel::Levels level) |
| 当安全级别改变时触发 | |
| void | sigSend (quint64 counts) |
| Send data counts | |
| void | sigReceive (quint64 counts) |
| Receive data counts | |
Public 成员函数 | |
| CChannel (QTcpSocket *pSocket, QObject *parent=nullptr) | |
| CChannel | |
| virtual bool | open (OpenMode mode) override |
| virtual void | close () override |
| virtual QString | GetDetails () |
| 依赖信息 | |
静态 Public 成员函数 | |
| static int | InitTranslation () |
| Initial translation | |
| static int | RemoveTranslation () |
| Remove translation | |
Protected 成员函数 | |
| CChannel (QObject *parent=nullptr) | |
| virtual qint64 | readData (char *data, qint64 maxlen) override |
| virtual qint64 | writeData (const char *data, qint64 len) override |
| virtual bool | isSequential () const override |
Private 槽 | |
| void | slotError (QAbstractSocket::SocketError e) |
Private 属性 | |
| QTcpSocket * | m_pSocket |
|
explicit |
|
virtual |
在文件 Channel.cpp 第 27 行定义.
|
explicitprotected |
在文件 Channel.cpp 第 14 行定义.
|
overridevirtual |
在文件 Channel.cpp 第 118 行定义.
|
virtual |
|
static |
Initial translation
在文件 Channel.cpp 第 134 行定义.
|
overrideprotectedvirtual |
在文件 Channel.cpp 第 76 行定义.
|
overridevirtual |
|
overrideprotectedvirtual |
在文件 Channel.cpp 第 32 行定义.
|
static |
Remove translation
在文件 Channel.cpp 第 142 行定义.
|
signal |
Receive data counts
| counts |
|
signal |
Send data counts
| counts |
|
privateslot |
在文件 Channel.cpp 第 81 行定义.
|
overrideprotectedvirtual |
在文件 Channel.cpp 第 53 行定义.