Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CBackendDesktop Class Referenceabstract

Remote desktop interface. More...

#include <BackendDesktop.h>

Inheritance diagram for CBackendDesktop:
Collaboration diagram for CBackendDesktop:

Public Slots

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)

Signals

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.

Public Member Functions

 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.
virtual int WakeUp ()=0
 Wake up backend thread(background thread).

Protected Member Functions

virtual void mousePressEvent (QMouseEvent *event)=0
virtual void mouseReleaseEvent (QMouseEvent *event)=0
virtual void mouseMoveEvent (QMouseEvent *event)=0
virtual void wheelEvent (QWheelEvent *event)=0
virtual void keyPressEvent (QKeyEvent *event)=0
virtual void keyReleaseEvent (QKeyEvent *event)=0
virtual void InputMethodEvent (QInputMethodEvent *event)=0
Protected Member Functions inherited from CBackend
virtual OnInitReturnValue OnInit ()=0
 Initialization.
virtual int OnClean ()=0
 Clean.
virtual int OnProcess ()
 Specific operation processing of plug-in.

Private Member Functions

int SetConnect (COperateDesktop *pOperate)
int SetViewer (CFrmViewer *pView)

Additional Inherited Members

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

Remote desktop interface.

It is implemented by the Protocol plugin.

See also
COperateDesktop CFrmViewer

Definition at line 37 of file BackendDesktop.h.

Constructor & Destructor Documentation

◆ CBackendDesktop()

CBackendDesktop::CBackendDesktop ( COperateDesktop * pOperate = nullptr)
explicit

Definition at line 45 of file BackendDesktop.cpp.

◆ ~CBackendDesktop()

CBackendDesktop::~CBackendDesktop ( )
virtual

Definition at line 120 of file BackendDesktop.cpp.

Member Function Documentation

◆ event()

bool CBackendDesktop::event ( QEvent * event)
overridevirtual

Definition at line 321 of file BackendDesktop.cpp.

◆ SetConnect()

int CBackendDesktop::SetConnect ( COperateDesktop * pOperate)
private

Definition at line 125 of file BackendDesktop.cpp.

◆ SetViewer()

int CBackendDesktop::SetViewer ( CFrmViewer * pView)
private

Because the connection may be a non-Qt event processing in another thread, it may block the thread, which will cause the keyboard and mouse events to be delayed. So here use Qt::DirectConnection

Definition at line 161 of file BackendDesktop.cpp.

◆ sigUpdateRect [1/2]

void CBackendDesktop::sigUpdateRect ( const QImage & image)
signal

Notify the CFrmView update image.

Parameters
image

◆ sigUpdateRect [2/2]

void CBackendDesktop::sigUpdateRect ( const QRect & r,
const QImage & image )
signal

Notify the CFrmView update image.

Parameters
rupdate rectangle
imageAn image that contains an update rectangle

◆ slotClipBoardChanged

virtual void CBackendDesktop::slotClipBoardChanged ( )
pure virtualslot

Be called when the clip board change.

Implemented in CBackendLibVNCServer.

◆ slotInputMethodEvent

void CBackendDesktop::slotInputMethodEvent ( QInputMethodEvent * event)
virtualslot

Definition at line 311 of file BackendDesktop.cpp.

◆ slotKeyPressEvent

void CBackendDesktop::slotKeyPressEvent ( QKeyEvent * event)
virtualslot

Definition at line 295 of file BackendDesktop.cpp.

◆ slotKeyReleaseEvent

void CBackendDesktop::slotKeyReleaseEvent ( QKeyEvent * event)
virtualslot

Definition at line 303 of file BackendDesktop.cpp.

◆ slotMouseMoveEvent

void CBackendDesktop::slotMouseMoveEvent ( QMouseEvent * event,
QPoint pos )
virtualslot

Definition at line 256 of file BackendDesktop.cpp.

◆ slotMousePressEvent

void CBackendDesktop::slotMousePressEvent ( QMouseEvent * event,
QPoint pos )
virtualslot

Definition at line 269 of file BackendDesktop.cpp.

◆ slotMouseReleaseEvent

void CBackendDesktop::slotMouseReleaseEvent ( QMouseEvent * event,
QPoint pos )
virtualslot

Definition at line 282 of file BackendDesktop.cpp.

◆ slotWheelEvent

void CBackendDesktop::slotWheelEvent ( QWheelEvent * event,
QPoint pos )
virtualslot

Definition at line 241 of file BackendDesktop.cpp.


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