Rabbit Remote Control 0.1.0-bate8
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CBackendLibVNCServer Class Reference
Inheritance diagram for CBackendLibVNCServer:
Inheritance graph
[legend]
Collaboration diagram for CBackendLibVNCServer:
Collaboration graph
[legend]

Public Slots

virtual void slotClipBoardChanged () override
 
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
 
void slotConnectProxyServer (QString szHost, quint16 nPort)
 [connect local socket server]
 
- Public Slots inherited from CBackendDesktop
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)
 
virtual void slotInputMethodEvent (QInputMethodEvent *event)
 

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)
 

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

- 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.
 
- Protected Member Functions inherited from CBackendDesktop
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void InputMethodEvent (QInputMethodEvent *event)
 

Detailed Description

Definition at line 17 of file BackendLibVNCServer.h.

Constructor & Destructor Documentation

◆ CBackendLibVNCServer()

CBackendLibVNCServer::CBackendLibVNCServer ( COperateLibVNCServer pOperate)
explicit

Definition at line 45 of file BackendLibVNCServer.cpp.

◆ ~CBackendLibVNCServer()

CBackendLibVNCServer::~CBackendLibVNCServer ( )
overridevirtual

Definition at line 62 of file BackendLibVNCServer.cpp.

Member Function Documentation

◆ cb_bell()

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

Definition at line 416 of file BackendLibVNCServer.cpp.

◆ cb_cursor_pos()

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

Definition at line 496 of file BackendLibVNCServer.cpp.

◆ cb_get_credential()

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

Definition at line 426 of file BackendLibVNCServer.cpp.

◆ cb_get_password()

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

Definition at line 453 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 504 of file BackendLibVNCServer.cpp.

◆ cb_got_selection()

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

Definition at line 401 of file BackendLibVNCServer.cpp.

◆ cb_kbd_leds()

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

Definition at line 411 of file BackendLibVNCServer.cpp.

◆ cb_resize()

rfbBool CBackendLibVNCServer::cb_resize ( rfbClient *  client)
static

Definition at line 382 of file BackendLibVNCServer.cpp.

◆ cb_text_chat()

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

Definition at line 421 of file BackendLibVNCServer.cpp.

◆ cb_update()

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

Definition at line 390 of file BackendLibVNCServer.cpp.

◆ keyPressEvent

void CBackendLibVNCServer::keyPressEvent ( QKeyEvent *  event)
overridevirtualslot

Definition at line 911 of file BackendLibVNCServer.cpp.

◆ keyReleaseEvent

void CBackendLibVNCServer::keyReleaseEvent ( QKeyEvent *  event)
overridevirtualslot

Definition at line 923 of file BackendLibVNCServer.cpp.

◆ mouseMoveEvent

void CBackendLibVNCServer::mouseMoveEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 593 of file BackendLibVNCServer.cpp.

◆ mousePressEvent

void CBackendLibVNCServer::mousePressEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 562 of file BackendLibVNCServer.cpp.

◆ mouseReleaseEvent

void CBackendLibVNCServer::mouseReleaseEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 583 of file BackendLibVNCServer.cpp.

◆ OnClean()

int CBackendLibVNCServer::OnClean ( )
overrideprivatevirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 273 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 73 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 306 of file BackendLibVNCServer.cpp.

◆ OnSize()

int CBackendLibVNCServer::OnSize ( )
private

Definition at line 472 of file BackendLibVNCServer.cpp.

◆ slotClipBoardChanged

void CBackendLibVNCServer::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 368 of file BackendLibVNCServer.cpp.

◆ slotConnectProxyServer

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

[connect local socket server]

Definition at line 936 of file BackendLibVNCServer.cpp.

◆ WakeUp()

int CBackendLibVNCServer::WakeUp ( )
overrideprivatevirtual

Wake up Backend thread(background thread)

Reimplemented from CBackendDesktop.

Definition at line 363 of file BackendLibVNCServer.cpp.

◆ wheelEvent

void CBackendLibVNCServer::wheelEvent ( QWheelEvent *  event)
overridevirtualslot

Definition at line 612 of file BackendLibVNCServer.cpp.

Member Data Documentation

◆ m_Event

Channel::CEvent CBackendLibVNCServer::m_Event
private

Definition at line 68 of file BackendLibVNCServer.h.

◆ m_Image

QImage CBackendLibVNCServer::m_Image
private

Definition at line 60 of file BackendLibVNCServer.h.

◆ m_pClient

rfbClient* CBackendLibVNCServer::m_pClient
private

Definition at line 59 of file BackendLibVNCServer.h.

◆ m_pConnect

QTcpSocket* CBackendLibVNCServer::m_pConnect
private

Definition at line 66 of file BackendLibVNCServer.h.

◆ m_pParameter

CParameterLibVNCServer* CBackendLibVNCServer::m_pParameter
private

Definition at line 63 of file BackendLibVNCServer.h.

◆ m_SecurityLevel

CSecurityLevel::Levels CBackendLibVNCServer::m_SecurityLevel
private

Definition at line 73 of file BackendLibVNCServer.h.

◆ m_Server

QTcpServer CBackendLibVNCServer::m_Server
private

Definition at line 65 of file BackendLibVNCServer.h.

◆ m_tcpSocket

QTcpSocket CBackendLibVNCServer::m_tcpSocket
private

Definition at line 64 of file BackendLibVNCServer.h.


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