Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CBackendSSH Class Reference
Inheritance diagram for CBackendSSH:
Inheritance graph
[legend]
Collaboration diagram for CBackendSSH:
Collaboration graph
[legend]

Public Member Functions

 CBackendSSH (COperateSSH *pOperate)
 
virtual int WakeUp () override
 Wake up.
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr)
 
virtual int Start ()
 Start.
 
virtual int Stop ()
 Stop.
 

Protected Member Functions

virtual OnInitReturnValue OnInit () override
 Initialization.
 
virtual int OnProcess () override
 Specific operation processing of plug-in.
 
virtual int OnClean () override
 Clean.
 

Private Attributes

COperateSSHm_pOperate
 
CParameterTerminalSSHm_pPara
 
CChannelSSHTerminalm_pChannelSSH
 
QTermWidget * m_pTerminal
 

Additional Inherited Members

- Signals inherited from CBackend
void sigRunning ()
 Emitted when the plugin is successfully started.
 
void sigStop ()
 Notify the user to stop.
 
void sigFinished ()
 Successful stopped signal.
 
void sigError (const int nError, const QString &szError=QString())
 Triggered when an error is generated.
 
void sigInformation (const QString &szInfo)
 Triggering from a background thread displays information in the main thread without blocking the background thread.
 
void sigShowMessageBox (const QString &szTitle, const QString &szMessage, 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 sigBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
 Block background threads and display message dialogs in foreground threads (QMessageBox)
 
void sigBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText)
 Block background threads and display input dialogs in foreground threads (QInputDialog)
 
void sigBlockShowWidget (const QString &className, int &nRet, void *pContext)
 Blocks the background thread and displays the window in the foreground thread.
 
- Protected Types inherited from CBackend
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CBackend
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 

Detailed Description

Definition at line 11 of file BackendSSH.h.

Constructor & Destructor Documentation

◆ ~CBackendSSH()

CBackendSSH::~CBackendSSH ( )
virtual

Definition at line 34 of file BackendSSH.cpp.

Member Function Documentation

◆ event()

bool CBackendSSH::event ( QEvent *  event)
overridevirtual

Definition at line 131 of file BackendSSH.cpp.

◆ OnClean()

int CBackendSSH::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 119 of file BackendSSH.cpp.

◆ OnInit()

CBackendSSH::OnInitReturnValue CBackendSSH::OnInit ( )
overrideprotectedvirtual

Initialization.

Returns
See also
Start()

Implements CBackend.

Definition at line 39 of file BackendSSH.cpp.

◆ OnProcess()

int CBackendSSH::OnProcess ( )
overrideprotectedvirtual

Specific operation processing of plug-in.

Returns
  • >= 0: continue, Interval call time (msec)
  • = -1: stop
  • < -1: error
See also
Start() slotTimeOut()

Reimplemented from CBackend.

Definition at line 111 of file BackendSSH.cpp.

◆ WakeUp()

int CBackendSSH::WakeUp ( )
overridevirtual

Wake up.

When it is block(a non-Qt event loop)

Reimplemented from CBackend.

Definition at line 154 of file BackendSSH.cpp.

Member Data Documentation

◆ m_pChannelSSH

CChannelSSHTerminal* CBackendSSH::m_pChannelSSH
private

Definition at line 27 of file BackendSSH.h.

◆ m_pOperate

COperateSSH* CBackendSSH::m_pOperate
private

Definition at line 25 of file BackendSSH.h.

◆ m_pPara

CParameterTerminalSSH* CBackendSSH::m_pPara
private

Definition at line 26 of file BackendSSH.h.

◆ m_pTerminal

QTermWidget* CBackendSSH::m_pTerminal
private

Definition at line 28 of file BackendSSH.h.


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