Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CBackendLibVNCServer Class Reference
Inheritance diagram for CBackendLibVNCServer:
Collaboration diagram for CBackendLibVNCServer:

Public Member Functions

 CBackendLibVNCServer (COperateLibVNCServer *pOperate)
Public Member Functions inherited from CBackendDesktop
 CBackendDesktop (COperateDesktop *pOperate=nullptr)
virtual bool event (QEvent *event) override
Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr, bool bStopSignal=true)
 CBackend.
virtual int Start ()
 Start.
virtual int Stop ()
 Stop.

Static Public Member Functions

static rfbBool cb_resize (rfbClient *client)
static void cb_update (rfbClient *client, int x, int y, int w, int h)
static void cb_kbd_leds (rfbClient *client, int value, int pad)
static void cb_bell (struct _rfbClient *client)
static void cb_text_chat (rfbClient *client, int value, char *text)
static void cb_got_selection (rfbClient *client, const char *text, int len)
static rfbCredential * cb_get_credential (rfbClient *cl, int credentialType)
static char * cb_get_password (rfbClient *client)
static rfbBool cb_cursor_pos (rfbClient *client, int x, int y)
static void cb_got_cursor_shape (rfbClient *client, int xhot, int yhot, int width, int height, int bytesPerPixel)

Protected Member Functions

virtual void slotClipBoardChanged () override
 Be called when the clip board change.
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 void InputMethodEvent (QInputMethodEvent *event) override
void slotConnectProxyServer (QString szHost, quint16 nPort)
 [connect local socket server]

Private Member Functions

virtual OnInitReturnValue OnInit () override
virtual int OnClean () override
 Clean.
virtual int OnProcess () override
 Specific operation processing of plug-in connection.
virtual int WakeUp () override
 Wake up backend thread(background thread).
int OnSize ()

Private Attributes

rfbClient * m_pClient
QImage m_Image
CParameterLibVNCServerm_pParameter
QTcpSocket m_tcpSocket
QTcpServer m_Server
QTcpSocket * m_pConnect
Channel::CEvent m_Event
CSecurityLevel::Levels m_SecurityLevel

Additional Inherited Members

Public Slots inherited from CBackendDesktop
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)
virtual void slotInputMethodEvent (QInputMethodEvent *event)
Signals inherited from CBackendDesktop
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 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.
void sigSecurityLevel (CSecurityLevel::Levels level)
 Triggered when the security level changes.
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 17 of file BackendLibVNCServer.h.

Constructor & Destructor Documentation

◆ CBackendLibVNCServer()

CBackendLibVNCServer::CBackendLibVNCServer ( COperateLibVNCServer * pOperate)
explicit

Definition at line 46 of file BackendLibVNCServer.cpp.

◆ ~CBackendLibVNCServer()

CBackendLibVNCServer::~CBackendLibVNCServer ( )
overridevirtual

Definition at line 63 of file BackendLibVNCServer.cpp.

Member Function Documentation

◆ cb_bell()

void CBackendLibVNCServer::cb_bell ( struct _rfbClient * client)
static

Definition at line 419 of file BackendLibVNCServer.cpp.

◆ cb_cursor_pos()

rfbBool CBackendLibVNCServer::cb_cursor_pos ( rfbClient * client,
int x,
int y )
static

Definition at line 499 of file BackendLibVNCServer.cpp.

◆ cb_get_credential()

rfbCredential * CBackendLibVNCServer::cb_get_credential ( rfbClient * cl,
int credentialType )
static

Definition at line 429 of file BackendLibVNCServer.cpp.

◆ cb_get_password()

char * CBackendLibVNCServer::cb_get_password ( rfbClient * client)
static

Definition at line 456 of file BackendLibVNCServer.cpp.

◆ cb_got_cursor_shape()

void CBackendLibVNCServer::cb_got_cursor_shape ( rfbClient * client,
int xhot,
int yhot,
int width,
int height,
int bytesPerPixel )
static

Definition at line 507 of file BackendLibVNCServer.cpp.

◆ cb_got_selection()

void CBackendLibVNCServer::cb_got_selection ( rfbClient * client,
const char * text,
int len )
static

Definition at line 404 of file BackendLibVNCServer.cpp.

◆ cb_kbd_leds()

void CBackendLibVNCServer::cb_kbd_leds ( rfbClient * client,
int value,
int pad )
static

Definition at line 414 of file BackendLibVNCServer.cpp.

◆ cb_resize()

rfbBool CBackendLibVNCServer::cb_resize ( rfbClient * client)
static

Definition at line 385 of file BackendLibVNCServer.cpp.

◆ cb_text_chat()

void CBackendLibVNCServer::cb_text_chat ( rfbClient * client,
int value,
char * text )
static

Definition at line 424 of file BackendLibVNCServer.cpp.

◆ cb_update()

void CBackendLibVNCServer::cb_update ( rfbClient * client,
int x,
int y,
int w,
int h )
static

Definition at line 393 of file BackendLibVNCServer.cpp.

◆ InputMethodEvent()

void CBackendLibVNCServer::InputMethodEvent ( QInputMethodEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 938 of file BackendLibVNCServer.cpp.

◆ keyPressEvent()

void CBackendLibVNCServer::keyPressEvent ( QKeyEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 914 of file BackendLibVNCServer.cpp.

◆ keyReleaseEvent()

void CBackendLibVNCServer::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 926 of file BackendLibVNCServer.cpp.

◆ mouseMoveEvent()

void CBackendLibVNCServer::mouseMoveEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 596 of file BackendLibVNCServer.cpp.

◆ mousePressEvent()

void CBackendLibVNCServer::mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 565 of file BackendLibVNCServer.cpp.

◆ mouseReleaseEvent()

void CBackendLibVNCServer::mouseReleaseEvent ( QMouseEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 586 of file BackendLibVNCServer.cpp.

◆ OnClean()

int CBackendLibVNCServer::OnClean ( )
overrideprivatevirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 274 of file BackendLibVNCServer.cpp.

◆ OnInit()

CBackendLibVNCServer::OnInitReturnValue CBackendLibVNCServer::OnInit ( )
overrideprivatevirtual
Returns
  • OnInitReturnValue::Fail: error
  • OnInitReturnValue::UseOnProcess: Use OnProcess (non-Qt event loop)
  • OnInitReturnValue::NotUseOnProcess: Don't use OnProcess (qt event loop)

[Use SSH Tunnel]

[Use SSH Tunnel]

Implements CBackend.

Definition at line 74 of file BackendLibVNCServer.cpp.

◆ OnProcess()

int CBackendLibVNCServer::OnProcess ( )
overrideprivatevirtual

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 CBackend.

Definition at line 309 of file BackendLibVNCServer.cpp.

◆ OnSize()

int CBackendLibVNCServer::OnSize ( )
private

Definition at line 475 of file BackendLibVNCServer.cpp.

◆ slotClipBoardChanged()

void CBackendLibVNCServer::slotClipBoardChanged ( )
overrideprotectedvirtual

Be called when the clip board change.

Implements CBackendDesktop.

Definition at line 371 of file BackendLibVNCServer.cpp.

◆ slotConnectProxyServer()

void CBackendLibVNCServer::slotConnectProxyServer ( QString szHost,
quint16 nPort )
protected

[connect local socket server]

Definition at line 943 of file BackendLibVNCServer.cpp.

◆ WakeUp()

int CBackendLibVNCServer::WakeUp ( )
overrideprivatevirtual

Wake up backend thread(background thread).

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

Note
The caller is main thread(UI thread)

Implements CBackend.

Definition at line 366 of file BackendLibVNCServer.cpp.

◆ wheelEvent()

void CBackendLibVNCServer::wheelEvent ( QWheelEvent * event)
overrideprotectedvirtual

Implements CBackendDesktop.

Definition at line 615 of file BackendLibVNCServer.cpp.

Member Data Documentation

◆ m_Event

Channel::CEvent CBackendLibVNCServer::m_Event
private

Definition at line 69 of file BackendLibVNCServer.h.

◆ m_Image

QImage CBackendLibVNCServer::m_Image
private

Definition at line 61 of file BackendLibVNCServer.h.

◆ m_pClient

rfbClient* CBackendLibVNCServer::m_pClient
private

Definition at line 60 of file BackendLibVNCServer.h.

◆ m_pConnect

QTcpSocket* CBackendLibVNCServer::m_pConnect
private

Definition at line 67 of file BackendLibVNCServer.h.

◆ m_pParameter

CParameterLibVNCServer* CBackendLibVNCServer::m_pParameter
private

Definition at line 64 of file BackendLibVNCServer.h.

◆ m_SecurityLevel

CSecurityLevel::Levels CBackendLibVNCServer::m_SecurityLevel
private

Definition at line 74 of file BackendLibVNCServer.h.

◆ m_Server

QTcpServer CBackendLibVNCServer::m_Server
private

Definition at line 66 of file BackendLibVNCServer.h.

◆ m_tcpSocket

QTcpSocket CBackendLibVNCServer::m_tcpSocket
private

Definition at line 65 of file BackendLibVNCServer.h.


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