Rabbit Remote Control 0.0.37
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, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CBackend
 CBackend (COperate *pOperate=nullptr)
 
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
 

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.
 
- 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 61 of file BackendLibVNCServer.cpp.

Member Function Documentation

◆ cb_bell()

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

Definition at line 414 of file BackendLibVNCServer.cpp.

◆ cb_cursor_pos()

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

Definition at line 494 of file BackendLibVNCServer.cpp.

◆ cb_get_credential()

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

Definition at line 424 of file BackendLibVNCServer.cpp.

◆ cb_get_password()

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

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

◆ cb_got_selection()

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

Definition at line 399 of file BackendLibVNCServer.cpp.

◆ cb_kbd_leds()

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

Definition at line 409 of file BackendLibVNCServer.cpp.

◆ cb_resize()

rfbBool CBackendLibVNCServer::cb_resize ( rfbClient *  client)
static

Definition at line 380 of file BackendLibVNCServer.cpp.

◆ cb_text_chat()

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

Definition at line 419 of file BackendLibVNCServer.cpp.

◆ cb_update()

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

Definition at line 388 of file BackendLibVNCServer.cpp.

◆ keyPressEvent

void CBackendLibVNCServer::keyPressEvent ( QKeyEvent *  event)
overridevirtualslot

Definition at line 909 of file BackendLibVNCServer.cpp.

◆ keyReleaseEvent

void CBackendLibVNCServer::keyReleaseEvent ( QKeyEvent *  event)
overridevirtualslot

Definition at line 921 of file BackendLibVNCServer.cpp.

◆ mouseMoveEvent

void CBackendLibVNCServer::mouseMoveEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 591 of file BackendLibVNCServer.cpp.

◆ mousePressEvent

void CBackendLibVNCServer::mousePressEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 560 of file BackendLibVNCServer.cpp.

◆ mouseReleaseEvent

void CBackendLibVNCServer::mouseReleaseEvent ( QMouseEvent *  event)
overridevirtualslot

Definition at line 581 of file BackendLibVNCServer.cpp.

◆ OnClean()

int CBackendLibVNCServer::OnClean ( )
overrideprivatevirtual

Clean.

See also
Stop()

Implements CBackend.

Definition at line 271 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 72 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 304 of file BackendLibVNCServer.cpp.

◆ OnSize()

int CBackendLibVNCServer::OnSize ( )
private

Definition at line 470 of file BackendLibVNCServer.cpp.

◆ slotClipBoardChanged

void CBackendLibVNCServer::slotClipBoardChanged ( )
overridevirtualslot

Definition at line 366 of file BackendLibVNCServer.cpp.

◆ slotConnectProxyServer

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

[connect local socket server]

Definition at line 934 of file BackendLibVNCServer.cpp.

◆ WakeUp()

int CBackendLibVNCServer::WakeUp ( )
overrideprivatevirtual

Wake up Backend thread(background thread)

Reimplemented from CBackendDesktop.

Definition at line 361 of file BackendLibVNCServer.cpp.

◆ wheelEvent

void CBackendLibVNCServer::wheelEvent ( QWheelEvent *  event)
overridevirtualslot

Definition at line 610 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_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: