Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
CConnecterTelnet Class Reference
Inheritance diagram for CConnecterTelnet:
CConnecterTerminal CConnecter

Public Member Functions

 CConnecterTelnet (CPluginClient *parent)
 
- Public Member Functions inherited from CConnecterTerminal
 CConnecterTerminal (CPluginClient *parent)
 
QWidget * GetViewer () override
 Get Viewer.
 
virtual qint16 Version () override
 Version.
 
virtual int Load (QSettings &set) override
 Load parameters.
 
virtual int Save (QSettings &set) override
 Save parameters.
 
virtual CConnectInstanceConnect ()
 
- Public Member Functions inherited from CConnecter
 CConnecter (CPluginClient *plugin)
 
virtual const QString Id ()
 Identity.
 
virtual const QString Name ()
 Name.
 
virtual const QString Description ()
 Description.
 
virtual const QString Protocol () const
 Protocol.
 
virtual const QIcon Icon () const
 Icon.
 
virtual int OpenDialogSettings (QWidget *parent=nullptr)
 Open settings dialog.
 
virtual QMenu * GetMenu (QWidget *parent=nullptr)
 Get operate menu.
 

Protected Slots

void slotSendData (const char *data, int size)
 
void slotReadyRead ()
 
void slotError (QAbstractSocket::SocketError err)
 

Protected Member Functions

virtual QDialog * GetDialogSettings (QWidget *parent) override
 
virtual int SetParameter () override
 
virtual int OnConnect () override
 OnConnect.
 
virtual int OnDisConnect () override
 
- Protected Member Functions inherited from CConnecterTerminal
virtual QString ServerName () override
 
virtual CParameterTerminalGetParameter ()
 
- Protected Member Functions inherited from CConnecter
virtual int SetParameter (CParameter *p)
 Set parameters.
 
CParameterGetParameter ()
 
Q_INVOKABLE CPluginClientGetPlugClient () const
 
virtual Q_INVOKABLE int Load (QString szFile=QString())
 Load parameters from file.
 
virtual Q_INVOKABLE int Save (QString szFile=QString())
 Save parameters to file.
 

Private Attributes

QTcpSocket * m_pSocket
 

Additional Inherited Members

- Public Slots inherited from CConnecterTerminal
virtual int Connect () override
 
virtual int DisConnect () override
 
- Public Slots inherited from CConnecter
virtual int Connect ()=0
 Start connect.
 
virtual int DisConnect ()=0
 Close connect.
 
- Signals inherited from CConnecter
void sigConnected ()
 Successful connection signal.
 
void sigDisconnect ()
 Notify the user to disconnect.
 
void sigDisconnected ()
 Successful disconnection signal.
 
void sigUpdateName (const QString &szName)
 
void sigUpdateParameters (CConnecter *pConnecter)
 Update parameters, notify application to save or show parameters.
 
void sigError (const int nError, const QString &szError)
 Triggered when an error is generated.
 
void sigInformation (const QString &szInfo)
 Show information in main windows.
 
void sigShowMessageBox (const QString &title, const QString &message, const QMessageBox::Icon &icon=QMessageBox::Information)
 Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
 
void sigClipBoardChanged ()
 
- Static Protected Member Functions inherited from CConnecter
static QObject * createObject (const QString &className, QObject *parent=NULL)
 
- Protected Attributes inherited from CConnecterTerminal
CFrmTermWidgetm_pConsole
 
CConnectThreadTerminalm_pThread
 
bool m_bThread
 
bool m_bExit
 
CParameterTerminalm_pPara
 
- Protected Attributes inherited from CConnecter
QMenu m_Menu
 
QAction * m_pSettings
 

Detailed Description

Definition at line 8 of file ConnecterTelnet.h.

Constructor & Destructor Documentation

◆ CConnecterTelnet()

CConnecterTelnet::CConnecterTelnet ( CPluginClient parent)
explicit

Definition at line 9 of file ConnecterTelnet.cpp.

◆ ~CConnecterTelnet()

CConnecterTelnet::~CConnecterTelnet ( )
virtual

Definition at line 20 of file ConnecterTelnet.cpp.

Member Function Documentation

◆ GetDialogSettings()

QDialog * CConnecterTelnet::GetDialogSettings ( QWidget *  parent)
overrideprotectedvirtual

Definition at line 23 of file ConnecterTelnet.cpp.

◆ OnConnect()

int CConnecterTelnet::OnConnect ( )
overrideprotectedvirtual

OnConnect.

Returns
0: emit sigConnected() <0: emit sigDisconnected(); >0: don't things

Reimplemented from CConnecterTerminal.

Definition at line 33 of file ConnecterTelnet.cpp.

◆ OnDisConnect()

int CConnecterTelnet::OnDisConnect ( )
overrideprotectedvirtual

Reimplemented from CConnecterTerminal.

Definition at line 66 of file ConnecterTelnet.cpp.

◆ SetParameter()

int CConnecterTelnet::SetParameter ( )
overrideprotectedvirtual

Reimplemented from CConnecterTerminal.

Definition at line 28 of file ConnecterTelnet.cpp.

◆ slotError

void CConnecterTelnet::slotError ( QAbstractSocket::SocketError  err)
protectedslot

Definition at line 96 of file ConnecterTelnet.cpp.

◆ slotReadyRead

void CConnecterTelnet::slotReadyRead ( )
protectedslot

Definition at line 86 of file ConnecterTelnet.cpp.

◆ slotSendData

void CConnecterTelnet::slotSendData ( const char *  data,
int  size 
)
protectedslot

Definition at line 80 of file ConnecterTelnet.cpp.

Member Data Documentation

◆ m_pSocket

QTcpSocket* CConnecterTelnet::m_pSocket
private

Definition at line 28 of file ConnecterTelnet.h.


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