Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
CChannel Class Reference

The channel interface class. More...

#include <Channel.h>

Inheritance diagram for CChannel:
CChannelIce CChannelSSHTunnel CChannelSSHTunnelForward

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
 

Public Member Functions

 CChannel (QTcpSocket *pSocket, QObject *parent=nullptr)
 CChannel.
 
virtual bool open (OpenMode mode) override
 
virtual void close () override
 
virtual QString GetDetails ()
 

Static Public Member Functions

static int InitTranslation ()
 
static int RemoveTranslation ()
 

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
 

Detailed Description

The channel interface class.

This class implements a TCP channel by default.

Definition at line 24 of file Channel.h.

Constructor & Destructor Documentation

◆ CChannel() [1/2]

CChannel::CChannel ( QTcpSocket *  pSocket,
QObject *  parent = nullptr 
)
explicit

CChannel.

Parameters
pSocketIts owner is the caller
parent

Definition at line 19 of file Channel.cpp.

◆ ~CChannel()

CChannel::~CChannel ( )
virtual

Definition at line 27 of file Channel.cpp.

◆ CChannel() [2/2]

CChannel::CChannel ( QObject *  parent = nullptr)
explicitprotected

Definition at line 14 of file Channel.cpp.

Member Function Documentation

◆ close()

void CChannel::close ( )
overridevirtual

Definition at line 104 of file Channel.cpp.

◆ GetDetails()

QString CChannel::GetDetails ( )
virtual

Definition at line 111 of file Channel.cpp.

◆ InitTranslation()

int CChannel::InitTranslation ( )
static

Definition at line 116 of file Channel.cpp.

◆ isSequential()

bool CChannel::isSequential ( ) const
overrideprotectedvirtual

Definition at line 62 of file Channel.cpp.

◆ open()

bool CChannel::open ( OpenMode  mode)
overridevirtual
Parameters
pSocketThe Owner is the instance of this class.

Reimplemented in CChannelSSHTunnel, and CChannelSSHTunnelForward.

Definition at line 78 of file Channel.cpp.

◆ readData()

qint64 CChannel::readData ( char *  data,
qint64  maxlen 
)
overrideprotectedvirtual

Definition at line 32 of file Channel.cpp.

◆ RemoveTranslation()

int CChannel::RemoveTranslation ( )
static

Definition at line 124 of file Channel.cpp.

◆ slotError

void CChannel::slotError ( QAbstractSocket::SocketError  e)
privateslot

Definition at line 67 of file Channel.cpp.

◆ writeData()

qint64 CChannel::writeData ( const char *  data,
qint64  len 
)
overrideprotectedvirtual

Definition at line 46 of file Channel.cpp.

Member Data Documentation

◆ m_pSocket

QTcpSocket* CChannel::m_pSocket
private

Definition at line 64 of file Channel.h.


The documentation for this class was generated from the following files: