Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
CBackendDesktop Class Referenceabstract

Remote desktop interface. More...

#include <BackendDesktop.h>

Inheritance diagram for CBackendDesktop:
Inheritance graph
[legend]
Collaboration diagram for CBackendDesktop:
Collaboration graph
[legend]

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.
 

Public Member Functions

 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.
 

Protected Member Functions

virtual int WakeUp () override
 Wake up Backend thread(background thread)
 
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)
 
- 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, COperateDesktop *pOperate, bool bDirectConnection)
 

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,
bool  bDirectConnection = true 
)
explicit

Definition at line 43 of file BackendDesktop.cpp.

◆ ~CBackendDesktop()

CBackendDesktop::~CBackendDesktop ( )
virtual

Definition at line 118 of file BackendDesktop.cpp.

Member Function Documentation

◆ event()

bool CBackendDesktop::event ( QEvent *  event)
overridevirtual

Definition at line 383 of file BackendDesktop.cpp.

◆ InputMethodEvent()

void CBackendDesktop::InputMethodEvent ( QInputMethodEvent *  event)
protectedvirtual

Definition at line 373 of file BackendDesktop.cpp.

◆ keyPressEvent()

void CBackendDesktop::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 363 of file BackendDesktop.cpp.

◆ keyReleaseEvent()

void CBackendDesktop::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 368 of file BackendDesktop.cpp.

◆ mouseMoveEvent()

void CBackendDesktop::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 343 of file BackendDesktop.cpp.

◆ mousePressEvent()

void CBackendDesktop::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 348 of file BackendDesktop.cpp.

◆ mouseReleaseEvent()

void CBackendDesktop::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 353 of file BackendDesktop.cpp.

◆ SetConnect()

int CBackendDesktop::SetConnect ( COperateDesktop pOperate)
private

Definition at line 123 of file BackendDesktop.cpp.

◆ SetViewer()

int CBackendDesktop::SetViewer ( CFrmViewer pView,
COperateDesktop pOperate,
bool  bDirectConnection 
)
private

Definition at line 159 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

◆ slotInputMethodEvent

void CBackendDesktop::slotInputMethodEvent ( QInputMethodEvent *  event)
virtualslot

Definition at line 334 of file BackendDesktop.cpp.

◆ slotKeyPressEvent

void CBackendDesktop::slotKeyPressEvent ( QKeyEvent *  event)
virtualslot

Definition at line 318 of file BackendDesktop.cpp.

◆ slotKeyReleaseEvent

void CBackendDesktop::slotKeyReleaseEvent ( QKeyEvent *  event)
virtualslot

Definition at line 326 of file BackendDesktop.cpp.

◆ slotMouseMoveEvent

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

Definition at line 279 of file BackendDesktop.cpp.

◆ slotMousePressEvent

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

Definition at line 292 of file BackendDesktop.cpp.

◆ slotMouseReleaseEvent

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

Definition at line 305 of file BackendDesktop.cpp.

◆ slotWheelEvent

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

Definition at line 264 of file BackendDesktop.cpp.

◆ WakeUp()

int CBackendDesktop::WakeUp ( )
overrideprotectedvirtual

Wake up Backend thread(background thread)

Reimplemented from CBackend.

Reimplemented in CBackendFreeRDP, CBackendLibVNCServer, and CBackendVnc.

Definition at line 378 of file BackendDesktop.cpp.

◆ wheelEvent()

void CBackendDesktop::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Definition at line 358 of file BackendDesktop.cpp.


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