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

Public Slots

virtual int Initialize ()
 
virtual int OnClean () override
 
virtual OnInitReturnValue OnInit () override
 
virtual int OnProcess () override
 
virtual void slotClipBoardChanged () override
 
void slotSendData (const char *, int)
 
void slotReceivedData (const QString &text)
 
- Public Slots inherited from CConnect
virtual int Connect ()
 Start connect.
 
virtual int Disconnect ()
 Disconnect.
 

Public Member Functions

 CConnectSSH (CConnecterSSH *pConnecter, QObject *parent=nullptr)
 
- Public Member Functions inherited from CConnect
 CConnect (CConnecter *pConnecter)
 

Protected Member Functions

virtual int SetParameter (void *pPara)
 
- Protected Member Functions inherited from CConnect
virtual OnInitReturnValue OnInit ()=0
 Specific plug-in realizes connection initialization.
 
virtual int OnClean ()=0
 Clean.
 
virtual int OnProcess ()
 Specific operation processing of plug-in connection.
 

Private Member Functions

int GetPassword (const char *prompt, char *buf, size_t len, int echo, int verify)
 
int VerifyKnownhost (ssh_session session)
 
int Authenticate (ssh_session session)
 
void error (ssh_session session)
 

Static Private Member Functions

static int cbAuthCallback (const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata)
 

Private Attributes

CConnecterSSHm_pConnecter
 
CParameterSSHm_pPara
 
ssh_session m_pSession
 
ssh_channel m_pChannel
 
ssh_event m_pEvent
 
ssh_connector connector_in
 
ssh_connector connector_out
 
ssh_connector connector_err
 
ssh_pcap_file m_pPcapFile
 
struct ssh_callbacks_struct * m_pCb
 

Additional Inherited Members

- Signals inherited from CConnect
void sigConnected ()
 Emitted when the plugin is successfully connected.
 
void sigDisconnect ()
 Notify the user to call disconnect.
 
void sigDisconnected ()
 Successful disconnection 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 CConnect
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CConnect
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 

Detailed Description

Definition at line 9 of file ConnectSSH.h.

Constructor & Destructor Documentation

◆ CConnectSSH()

CConnectSSH::CConnectSSH ( CConnecterSSH pConnecter,
QObject *  parent = nullptr 
)
explicit

Definition at line 6 of file ConnectSSH.cpp.

Member Function Documentation

◆ Authenticate()

int CConnectSSH::Authenticate ( ssh_session  session)
private

Definition at line 403 of file ConnectSSH.cpp.

◆ cbAuthCallback()

int CConnectSSH::cbAuthCallback ( const char *  prompt,
char *  buf,
size_t  len,
int  echo,
int  verify,
void *  userdata 
)
staticprivate

Definition at line 263 of file ConnectSSH.cpp.

◆ error()

void CConnectSSH::error ( ssh_session  session)
private

Definition at line 398 of file ConnectSSH.cpp.

◆ GetPassword()

int CConnectSSH::GetPassword ( const char *  prompt,
char *  buf,
size_t  len,
int  echo,
int  verify 
)
private

Definition at line 275 of file ConnectSSH.cpp.

◆ Initialize

int CConnectSSH::Initialize ( )
virtualslot

Definition at line 71 of file ConnectSSH.cpp.

◆ OnClean

int CConnectSSH::OnClean ( )
overridevirtualslot

Definition at line 196 of file ConnectSSH.cpp.

◆ OnInit

CConnect::OnInitReturnValue CConnectSSH::OnInit ( )
overridevirtualslot

Definition at line 94 of file ConnectSSH.cpp.

◆ OnProcess

int CConnectSSH::OnProcess ( )
overridevirtualslot

Definition at line 240 of file ConnectSSH.cpp.

◆ SetParameter()

int CConnectSSH::SetParameter ( void *  pPara)
protectedvirtual

Definition at line 21 of file ConnectSSH.cpp.

◆ slotClipBoardChanged

void CConnectSSH::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 259 of file ConnectSSH.cpp.

◆ slotReceivedData

void CConnectSSH::slotReceivedData ( const QString &  text)
slot

Definition at line 516 of file ConnectSSH.cpp.

◆ slotSendData

void CConnectSSH::slotSendData ( const char *  buf,
int  len 
)
slot

Definition at line 505 of file ConnectSSH.cpp.

◆ VerifyKnownhost()

int CConnectSSH::VerifyKnownhost ( ssh_session  session)
private

Definition at line 294 of file ConnectSSH.cpp.

Member Data Documentation

◆ connector_err

ssh_connector CConnectSSH::connector_err
private

Definition at line 35 of file ConnectSSH.h.

◆ connector_in

ssh_connector CConnectSSH::connector_in
private

Definition at line 35 of file ConnectSSH.h.

◆ connector_out

ssh_connector CConnectSSH::connector_out
private

Definition at line 35 of file ConnectSSH.h.

◆ m_pCb

struct ssh_callbacks_struct* CConnectSSH::m_pCb
private

Definition at line 38 of file ConnectSSH.h.

◆ m_pChannel

ssh_channel CConnectSSH::m_pChannel
private

Definition at line 33 of file ConnectSSH.h.

◆ m_pConnecter

CConnecterSSH* CConnectSSH::m_pConnecter
private

Definition at line 29 of file ConnectSSH.h.

◆ m_pEvent

ssh_event CConnectSSH::m_pEvent
private

Definition at line 34 of file ConnectSSH.h.

◆ m_pPara

CParameterSSH* CConnectSSH::m_pPara
private

Definition at line 30 of file ConnectSSH.h.

◆ m_pPcapFile

ssh_pcap_file CConnectSSH::m_pPcapFile
private

Definition at line 36 of file ConnectSSH.h.

◆ m_pSession

ssh_session CConnectSSH::m_pSession
private

Definition at line 32 of file ConnectSSH.h.


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