|
Rabbit Remote Control 0.1.0-bate8
|
The channel interface class. More...
#include <Channel.h>


Signals | |
| 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) |
| Triggered when the security level changes. | |
| void | sigSend (quint64 counts) |
| Send data counts. | |
| void | sigReceive (quint64 counts) |
| Receive data counts. | |
Public Member Functions | |
| CChannel (QTcpSocket *pSocket, QObject *parent=nullptr) | |
| CChannel. | |
| virtual bool | open (OpenMode mode) override |
| virtual void | close () override |
| virtual QString | GetDetails () |
| Depend on information. | |
Static Public Member Functions | |
| static int | InitTranslation () |
| Initial translation. | |
| static int | RemoveTranslation () |
| Remove translation. | |
Protected Member Functions | |
| 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 Slots | |
| void | slotError (QAbstractSocket::SocketError e) |
Private Attributes | |
| QTcpSocket * | m_pSocket |
The channel interface class.
This class implements a TCP channel by default.
|
explicit |
| pSocket | Its owner is the caller |
| parent |
Definition at line 19 of file Channel.cpp.
|
virtual |
Definition at line 27 of file Channel.cpp.
|
explicitprotected |
Definition at line 14 of file Channel.cpp.
|
overridevirtual |
Definition at line 118 of file Channel.cpp.
|
virtual |
|
static |
Initial translation.
Definition at line 134 of file Channel.cpp.
|
overrideprotectedvirtual |
Definition at line 76 of file Channel.cpp.
|
overridevirtual |
| pSocket | The Owner is the instance of this class. |
Reimplemented in CChannelSSH, and CChannelSSHTunnelForward.
Definition at line 92 of file Channel.cpp.
|
overrideprotectedvirtual |
Definition at line 32 of file Channel.cpp.
|
static |
Remove translation.
Definition at line 142 of file Channel.cpp.
|
signal |
Receive data counts.
| counts |
|
signal |
Send data counts.
| counts |
|
privateslot |
Definition at line 81 of file Channel.cpp.
|
overrideprotectedvirtual |
Definition at line 53 of file Channel.cpp.