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

Remote desktop connect interface. More...

#include <ConnectDesktop.h>

Inheritance diagram for CConnectDesktop:
CConnect CConnectFreeRDP CConnectLibVNCServer CConnectPlayer CConnectVnc

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)
 
- Public Slots inherited from CConnect
virtual int Connect ()
 Start connect.
 
virtual int Disconnect ()
 Disconnect.
 

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 CConnect
void sigConnected ()
 Emitted when the plugin is successfully connected.
 
void sigDisconnect ()
 Notify the user to call disconnect.
 
void sigDisconnected ()
 Successful disconnection 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

 CConnectDesktop (CConnecter *pConnecter, bool bDirectConnection=true)
 
virtual bool event (QEvent *event) override
 
- Public Member Functions inherited from CConnect
 CConnect (CConnecter *pConnecter)
 

Protected Member Functions

virtual int WakeUp ()
 Wake up Connect 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)
 
- Protected Member Functions inherited from CConnect
virtual OnInitReturnValue OnInit ()=0
 Specific plug-in realizes connection initialization.
 
virtual int OnClean ()=0
 Clean.
 
virtual int OnProcess ()
 Specific operation processing of plug-in connection.
 

Private Member Functions

int SetConnecter (CConnecter *pConnecter)
 
int SetViewer (CFrmViewer *pView, bool bDirectConnection)
 

Additional Inherited Members

- Protected Types inherited from CConnect
enum class  OnInitReturnValue { Fail = -1 , Success = 0 , UseOnProcess = Success , NotUseOnProcess = 1 }
 
- Protected Slots inherited from CConnect
virtual void slotTimeOut ()
 a non-Qt event loop (that is, normal loop processing), It call OnProcess(), and start timer.
 

Detailed Description

Remote desktop connect interface.

It is implemented by the Protocol plugin.

See also
CConnecterThread CFrmViewer

Definition at line 41 of file ConnectDesktop.h.

Constructor & Destructor Documentation

◆ CConnectDesktop()

CConnectDesktop::CConnectDesktop ( CConnecter pConnecter,
bool  bDirectConnection = true 
)
explicit
Parameters
pConnecter
bDirectConnection
  • true: when connect is non-Qt event and it can block event loop
  • false: The connect is Qt event and it isn't block event loop

Definition at line 38 of file ConnectDesktop.cpp.

◆ ~CConnectDesktop()

CConnectDesktop::~CConnectDesktop ( )
overridevirtual

Definition at line 107 of file ConnectDesktop.cpp.

Member Function Documentation

◆ event()

bool CConnectDesktop::event ( QEvent *  event)
overridevirtual

Definition at line 335 of file ConnectDesktop.cpp.

◆ keyPressEvent()

void CConnectDesktop::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 320 of file ConnectDesktop.cpp.

◆ keyReleaseEvent()

void CConnectDesktop::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Definition at line 325 of file ConnectDesktop.cpp.

◆ mouseMoveEvent()

void CConnectDesktop::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 300 of file ConnectDesktop.cpp.

◆ mousePressEvent()

void CConnectDesktop::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 305 of file ConnectDesktop.cpp.

◆ mouseReleaseEvent()

void CConnectDesktop::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 310 of file ConnectDesktop.cpp.

◆ SetConnecter()

int CConnectDesktop::SetConnecter ( CConnecter pConnecter)
private

Definition at line 112 of file ConnectDesktop.cpp.

◆ SetViewer()

int CConnectDesktop::SetViewer ( CFrmViewer pView,
bool  bDirectConnection 
)
private

Definition at line 149 of file ConnectDesktop.cpp.

◆ sigUpdateRect [1/2]

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

Notify the CFrmView update image.

Parameters
image

◆ sigUpdateRect [2/2]

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

Notify the CFrmView update image.

Parameters
rupdate rectangle
imageAn image that contains an update rectangle

◆ slotKeyPressEvent

void CConnectDesktop::slotKeyPressEvent ( QKeyEvent *  event)
virtualslot

Definition at line 284 of file ConnectDesktop.cpp.

◆ slotKeyReleaseEvent

void CConnectDesktop::slotKeyReleaseEvent ( QKeyEvent *  event)
virtualslot

Definition at line 292 of file ConnectDesktop.cpp.

◆ slotMouseMoveEvent

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

Definition at line 260 of file ConnectDesktop.cpp.

◆ slotMousePressEvent

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

Definition at line 268 of file ConnectDesktop.cpp.

◆ slotMouseReleaseEvent

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

Definition at line 276 of file ConnectDesktop.cpp.

◆ slotWheelEvent

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

Definition at line 245 of file ConnectDesktop.cpp.

◆ WakeUp()

int CConnectDesktop::WakeUp ( )
protectedvirtual

Wake up Connect thread(background thread)

Reimplemented in CConnectFreeRDP, CConnectLibVNCServer, and CConnectVnc.

Definition at line 330 of file ConnectDesktop.cpp.

◆ wheelEvent()

void CConnectDesktop::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Definition at line 315 of file ConnectDesktop.cpp.


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