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

Public Slots

virtual void slotConnected ()
 
virtual void slotDisConnected ()
 
virtual void slotReadyRead ()
 
virtual void slotClipBoardChanged () override
 
void slotChannelError (int nErr, const QString &szErr)
 
- Public Slots inherited from CConnectDesktop
virtual void slotClipBoardChanged ()=0
 Be called when the clip board change.
 
virtual void slotMousePressEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotMouseReleaseEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotMouseMoveEvent (QMouseEvent *event, QPoint pos)
 
virtual void slotWheelEvent (QWheelEvent *event, QPoint pos)
 
virtual void slotKeyPressEvent (QKeyEvent *event)
 
virtual void slotKeyReleaseEvent (QKeyEvent *event)
 
- Public Slots inherited from CConnect
virtual int Connect ()
 Start connect.
 
virtual int Disconnect ()
 Disconnect.
 

Public Member Functions

 CConnectVnc (CConnecterThread *pConnecter)
 
virtual void initDone () override
 
virtual void authSuccess () override
 
virtual void resizeFramebuffer () override
 
virtual void getUserPasswd (bool secure, std::string *user, std::string *password) override
 
virtual int getX509File (std::string *ca, std::string *crl) override
 
virtual bool showMsgBox (rfb::MsgBoxFlags flags, const char *title, const char *text) override
 
virtual void setName (const char *name) override
 
virtual void framebufferUpdateStart () override
 
virtual void framebufferUpdateEnd () override
 
virtual void setColourMapEntries (int firstColour, int nColours, uint16_t *rgbs) override
 
virtual void bell () override
 
virtual void setLEDState (unsigned int state) override
 
virtual void setCursor (int width, int height, const rfb::Point &hotspot, const uint8_t *data) override
 
virtual void setCursorPos (const rfb::Point &pos) override
 
virtual void fence (uint32_t flags, unsigned int len, const uint8_t data[]) override
 
virtual void handleClipboardRequest () override
 
virtual void handleClipboardAnnounce (bool available) override
 
virtual void handleClipboardData (const char *data) override
 
- Public Member Functions inherited from CConnectDesktop
 CConnectDesktop (CConnecter *pConnecter, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CConnect
 CConnect (CConnecter *pConnecter)
 

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void wheelEvent (QWheelEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void keyReleaseEvent (QKeyEvent *event) override
 
virtual OnInitReturnValue OnInit () override
 Specific plug-in realizes connection initialization.
 
virtual int OnClean () override
 Clean.
 
virtual int OnProcess () override
 Specific operation processing of plug-in connection.
 
virtual int WakeUp () override
 Wake up Connect thread(background thread)
 

Private Member Functions

quint32 TranslateRfbKey (quint32 inkey, bool modifier)
 CConnectVnc::TranslateRfbKey.
 
QString ConnectInformation ()
 
int SetPara ()
 
void autoSelectFormatAndEncoding ()
 
void updatePixelFormat ()
 
int SocketInit ()
 
int SetChannelConnect (QSharedPointer< CChannel > channel)
 
int IceInit ()
 
int SSHInit ()
 

Private Attributes

QSharedPointer< CChannelm_DataChannel
 
QSharedPointer< rdr::InStream > m_InStream
 
QSharedPointer< rdr::OutStream > m_OutStream
 
CParameterVncm_pPara
 

Additional Inherited Members

- Signals inherited from CConnectDesktop
void sigSetDesktopSize (int width, int height)
 
void sigServerName (const QString &szName)
 
void sigUpdateRect (const QRect &r, const QImage &image)
 Notify the CFrmView update image.
 
void sigUpdateRect (const QImage &image)
 Notify the CFrmView update image.
 
void sigUpdateCursor (const QCursor &cursor)
 
void sigUpdateCursorPosition (const QPoint &pos)
 
void sigUpdateLedState (unsigned int state)
 
void sigSetClipboard (QMimeData *data)
 
- 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 23 of file ConnectVnc.h.

Constructor & Destructor Documentation

◆ CConnectVnc()

CConnectVnc::CConnectVnc ( CConnecterThread pConnecter)
explicit

Definition at line 93 of file ConnectVnc.cpp.

◆ ~CConnectVnc()

CConnectVnc::~CConnectVnc ( )
overridevirtual

Definition at line 121 of file ConnectVnc.cpp.

Member Function Documentation

◆ authSuccess()

void CConnectVnc::authSuccess ( )
overridevirtual

Definition at line 1297 of file ConnectVnc.cpp.

◆ bell()

void CConnectVnc::bell ( )
overridevirtual

Definition at line 635 of file ConnectVnc.cpp.

◆ ConnectInformation()

QString CConnectVnc::ConnectInformation ( )
private

Definition at line 942 of file ConnectVnc.cpp.

◆ fence()

void CConnectVnc::fence ( uint32_t  flags,
unsigned int  len,
const uint8_t  data[] 
)
overridevirtual

Definition at line 669 of file ConnectVnc.cpp.

◆ framebufferUpdateEnd()

void CConnectVnc::framebufferUpdateEnd ( )
overridevirtual

Definition at line 755 of file ConnectVnc.cpp.

◆ framebufferUpdateStart()

void CConnectVnc::framebufferUpdateStart ( )
overridevirtual

Definition at line 745 of file ConnectVnc.cpp.

◆ getUserPasswd()

void CConnectVnc::getUserPasswd ( bool  secure,
std::string *  user,
std::string *  password 
)
overridevirtual

Definition at line 682 of file ConnectVnc.cpp.

◆ getX509File()

int CConnectVnc::getX509File ( std::string *  ca,
std::string *  crl 
)
overridevirtual

Definition at line 700 of file ConnectVnc.cpp.

◆ handleClipboardAnnounce()

void CConnectVnc::handleClipboardAnnounce ( bool  available)
overridevirtual

Definition at line 1279 of file ConnectVnc.cpp.

◆ handleClipboardData()

void CConnectVnc::handleClipboardData ( const char *  data)
overridevirtual

Definition at line 1287 of file ConnectVnc.cpp.

◆ handleClipboardRequest()

void CConnectVnc::handleClipboardRequest ( )
overridevirtual

Definition at line 1247 of file ConnectVnc.cpp.

◆ IceInit()

int CConnectVnc::IceInit ( )
private

Definition at line 213 of file ConnectVnc.cpp.

◆ initDone()

void CConnectVnc::initDone ( )
overridevirtual

Definition at line 594 of file ConnectVnc.cpp.

◆ keyPressEvent()

void CConnectVnc::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 906 of file ConnectVnc.cpp.

◆ keyReleaseEvent()

void CConnectVnc::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 924 of file ConnectVnc.cpp.

◆ mouseMoveEvent()

void CConnectVnc::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 840 of file ConnectVnc.cpp.

◆ mousePressEvent()

void CConnectVnc::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 797 of file ConnectVnc.cpp.

◆ mouseReleaseEvent()

void CConnectVnc::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 823 of file ConnectVnc.cpp.

◆ OnClean()

int CConnectVnc::OnClean ( )
overrideprotectedvirtual

Clean.

See also
Disconnect()

Implements CConnect.

Definition at line 424 of file ConnectVnc.cpp.

◆ OnInit()

CConnect::OnInitReturnValue CConnectVnc::OnInit ( )
overrideprotectedvirtual

Specific plug-in realizes connection initialization.

Returns
See also
Connect()

Implements CConnect.

Definition at line 191 of file ConnectVnc.cpp.

◆ OnProcess()

int CConnectVnc::OnProcess ( )
overrideprotectedvirtual

Specific operation processing of plug-in connection.

Because of it is a non-Qt event loop, so wait in here.

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

Reimplemented from CConnect.

Definition at line 448 of file ConnectVnc.cpp.

◆ resizeFramebuffer()

void CConnectVnc::resizeFramebuffer ( )
overridevirtual

Definition at line 614 of file ConnectVnc.cpp.

◆ SetChannelConnect()

int CConnectVnc::SetChannelConnect ( QSharedPointer< CChannel channel)
private

Definition at line 406 of file ConnectVnc.cpp.

◆ setColourMapEntries()

void CConnectVnc::setColourMapEntries ( int  firstColour,
int  nColours,
uint16_t *  rgbs 
)
overridevirtual

Definition at line 630 of file ConnectVnc.cpp.

◆ setCursor()

void CConnectVnc::setCursor ( int  width,
int  height,
const rfb::Point &  hotspot,
const uint8_t *  data 
)
overridevirtual

Definition at line 647 of file ConnectVnc.cpp.

◆ setCursorPos()

void CConnectVnc::setCursorPos ( const rfb::Point &  pos)
overridevirtual

Definition at line 663 of file ConnectVnc.cpp.

◆ setLEDState()

void CConnectVnc::setLEDState ( unsigned int  state)
overridevirtual

Definition at line 640 of file ConnectVnc.cpp.

◆ setName()

void CConnectVnc::setName ( const char *  name)
overridevirtual

Definition at line 733 of file ConnectVnc.cpp.

◆ SetPara()

int CConnectVnc::SetPara ( )
private

Definition at line 126 of file ConnectVnc.cpp.

◆ showMsgBox()

bool CConnectVnc::showMsgBox ( rfb::MsgBoxFlags  flags,
const char *  title,
const char *  text 
)
overridevirtual

Definition at line 710 of file ConnectVnc.cpp.

◆ slotChannelError

void CConnectVnc::slotChannelError ( int  nErr,
const QString &  szErr 
)
slot

Definition at line 584 of file ConnectVnc.cpp.

◆ slotClipBoardChanged

void CConnectVnc::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 1238 of file ConnectVnc.cpp.

◆ slotConnected

void CConnectVnc::slotConnected ( )
virtualslot

Definition at line 474 of file ConnectVnc.cpp.

◆ slotDisConnected

void CConnectVnc::slotDisConnected ( )
virtualslot

Definition at line 511 of file ConnectVnc.cpp.

◆ slotReadyRead

void CConnectVnc::slotReadyRead ( )
virtualslot

Definition at line 528 of file ConnectVnc.cpp.

◆ SocketInit()

int CConnectVnc::SocketInit ( )
private

Definition at line 258 of file ConnectVnc.cpp.

◆ SSHInit()

int CConnectVnc::SSHInit ( )
private

Definition at line 349 of file ConnectVnc.cpp.

◆ TranslateRfbKey()

quint32 CConnectVnc::TranslateRfbKey ( quint32  inkey,
bool  modifier 
)
private

◆ updatePixelFormat()

void CConnectVnc::updatePixelFormat ( )
private

Definition at line 769 of file ConnectVnc.cpp.

◆ WakeUp()

int CConnectVnc::WakeUp ( )
overrideprotectedvirtual

Wake up Connect thread(background thread)

Reimplemented from CConnectDesktop.

Definition at line 462 of file ConnectVnc.cpp.

◆ wheelEvent()

void CConnectVnc::wheelEvent ( QWheelEvent *  event)
overrideprotectedvirtual

Reimplemented from CConnectDesktop.

Definition at line 864 of file ConnectVnc.cpp.

Member Data Documentation

◆ m_DataChannel

QSharedPointer<CChannel> CConnectVnc::m_DataChannel
private

Definition at line 86 of file ConnectVnc.h.

◆ m_InStream

QSharedPointer<rdr::InStream> CConnectVnc::m_InStream
private

Definition at line 87 of file ConnectVnc.h.

◆ m_OutStream

QSharedPointer<rdr::OutStream> CConnectVnc::m_OutStream
private

Definition at line 88 of file ConnectVnc.h.

◆ m_pPara

CParameterVnc* CConnectVnc::m_pPara
private

Definition at line 94 of file ConnectVnc.h.


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