|
Rabbit Remote Control 0.1.0-bate8
|
Remote desktop operate interface. More...
#include <OperateDesktop.h>


Public Slots | |
| virtual int | Start () override |
| virtual int | Stop () override |
| virtual void | slotScreenShot () |
Public Member Functions | |
| COperateDesktop (CPlugin *plugin) | |
| virtual CParameterBase * | GetParameter () const |
| Get parameter. | |
| virtual int | SetParameter (CParameterBase *p) |
| Set parameter pointer. | |
| virtual const QString | Id () override |
| virtual const QString | Name () override |
| [The name of the desktop operate] | |
| virtual const QString | Description () override |
| [The name of the desktop operate] | |
| virtual const qint16 | Version () const override |
| [The description of the desktop operate] | |
| virtual QWidget * | GetViewer () override |
| Get Viewer. | |
Public Member Functions inherited from COperate | |
| COperate (CPlugin *plugin) | |
| virtual int | OpenDialogSettings (QWidget *parent=nullptr) |
| Open settings dialog. | |
| virtual QMenu * | GetMenu (QWidget *parent=nullptr) |
| Get menu. | |
| virtual const QString | Protocol () const |
| virtual const QIcon | Icon () const |
| virtual const QString | GetTypeName () const |
| virtual QString | GetSettingsFile () |
| virtual int | SetSettingsFile (const QString &szFile) |
| virtual CStats * | GetStats () |
| Get statistics. | |
| virtual CSecurityLevel::Levels | GetSecurityLevel () const |
| Get Security Level. | |
| virtual int | Start ()=0 |
| Start. | |
| virtual int | Stop ()=0 |
| Stop. | |
Protected Member Functions | |
| virtual Q_INVOKABLE CBackend * | InstanceBackend ()=0 |
| New CBackend. | |
| virtual int | SetGlobalParameters (CParameterPlugin *pPara) override |
| Set Global Parameters. | |
| virtual int | Initial () override |
| Initial parameters and resource. | |
| virtual int | Clean () override |
| Clean parameters and resource. | |
| virtual Q_INVOKABLE int | Load (QSettings &set) override |
| Load parameters. | |
| virtual Q_INVOKABLE int | Save (QSettings &set) override |
| Save parameters. | |
| virtual int | InitialMenu () |
| virtual QString | ServerName () |
| Current connect server name (remote desktop name, if not present, then IP:PORT). | |
Protected Member Functions inherited from COperate | |
| Q_INVOKABLE CPlugin * | GetPlugin () const |
| Get plugin. | |
| virtual Q_INVOKABLE int | Load (QString szFile=QString()) |
| Load parameters from file. | |
| virtual Q_INVOKABLE int | Save (QString szFile=QString()) |
| Save parameters to file. | |
Protected Attributes | |
| QAction * | m_pMenuZoom |
| QAction * | m_pZoomToWindow |
| QAction * | m_pZoomAspectRatio |
| QAction * | m_pZoomOriginal |
| QAction * | m_pZoomIn |
| QAction * | m_pZoomOut |
| QSpinBox * | m_psbZoomFactor |
| QAction * | m_pScreenShot |
Protected Attributes inherited from COperate | |
| QMenu | m_Menu |
| QAction * | m_pActionSettings |
Private Slots | |
| void | slotValueChanged (int v) |
| emit by zoom menu in the class | |
| void | slotShortcutCtlAltDel () |
| void | slotShortcutLock () |
| virtual void | slotSetServerName (const QString &szName) |
| [Get server name] | |
Private Member Functions | |
| int | LoadAdaptWindows () |
Private Attributes | |
| CParameterBase * | m_pPara |
| CBackendThread * | m_pThread |
| CFrmViewer * | m_pFrmViewer |
| CFrmScroll * | m_pScroll |
| QString | m_szServerName |
Additional Inherited Members | |
Signals inherited from COperate | |
| void | sigViewerFocusIn (QWidget *pView) |
| The view is focus. | |
| void | sigFullScreen (bool bFullScreen) |
| Full screen. | |
| void | sigUpdateName (const QString &szName) |
| void | sigUpdateParameters (COperate *pOperate) |
| Update parameters, notify application to save or show parameters. | |
| void | sigError (const int nError, const QString &szError) |
| Triggered when an error is generated. | |
| void | sigInformation (const QString &szInfo) |
| Show information in main windows. | |
| void | sigShowMessageBox (const QString &title, const QString &message, 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 | sigClipBoardChanged () |
| void | sigSecurityLevel () |
| Triggered when the security level changes. | |
| void | sigRunning () |
| Start success signal. | |
| void | sigStop () |
| Notify the user to stop. | |
| void | sigFinished () |
| Successful disconnection signal. | |
Protected Slots inherited from COperate | |
| void | slotUpdateName () |
| void | slotSetSecurityLevel (CSecurityLevel::Levels level) |
Static Protected Member Functions inherited from COperate | |
| static QObject * | createObject (const QString &className, QObject *parent=NULL) |
| Create Object. | |
Remote desktop operate interface.
It starts a background thread by default. It implements a background thread to handle a operate. Can be used with plugins whose plugin interface derives from CPluginClient for operate is blocking model.
Principle: Start a background thread (CBackendThread) in Start() . Call InstanceBackend() in the thread to instantiate CBackend, and start the timer in CBackend::Start(). This timer is called in the background thread. Through the operation of the timer, start a non-Qt event loop (that is, normal loop processing. May block), See CBackend. And CBackend supports the Qt event (the signal-slot mechanism of QObject. no-block).
Sequen diagram:
Definition at line 68 of file OperateDesktop.h.
|
explicit |
| plugin | The plugin pointer must be specified as the corresponding CPlugin derived class |
|
virtual |
Definition at line 35 of file OperateDesktop.cpp.
|
overrideprotectedvirtual |
Clean parameters and resource.
Reimplemented from COperate.
Reimplemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, and COperateVnc.
Definition at line 212 of file OperateDesktop.cpp.
|
overridevirtual |
[The name of the desktop operate]
[The description of the desktop operate]
Reimplemented from COperate.
Definition at line 117 of file OperateDesktop.cpp.
|
virtual |
|
overridevirtual |
Get Viewer.
Implements COperate.
Definition at line 376 of file OperateDesktop.cpp.
|
overridevirtual |
Reimplemented from COperate.
Definition at line 40 of file OperateDesktop.cpp.
|
overrideprotectedvirtual |
Initial parameters and resource.
Reimplemented from COperate.
Reimplemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, and COperateVnc.
Definition at line 189 of file OperateDesktop.cpp.
|
protectedvirtual |
Definition at line 225 of file OperateDesktop.cpp.
|
protectedpure virtual |
New CBackend.
the ownership is caller. if don't use, the caller must delete it.
Implemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, and COperateVnc.
|
overrideprotectedvirtual |
|
private |
Definition at line 487 of file OperateDesktop.cpp.
|
overridevirtual |
[The name of the desktop operate]
Reimplemented from COperate.
Definition at line 86 of file OperateDesktop.cpp.
|
overrideprotectedvirtual |
|
protectedvirtual |
Current connect server name (remote desktop name, if not present, then IP:PORT).
[Get server name]
eg: Server name or Ip:Port
Reimplemented in COperateVnc.
Definition at line 632 of file OperateDesktop.cpp.
|
overrideprotectedvirtual |
Set Global Parameters.
[Desktop set global paramets]
| pPara |
Implements COperate.
Definition at line 410 of file OperateDesktop.cpp.
|
virtual |
Set parameter pointer.
Definition at line 451 of file OperateDesktop.cpp.
|
virtualslot |
Definition at line 592 of file OperateDesktop.cpp.
|
privatevirtualslot |
[Get server name]
Definition at line 658 of file OperateDesktop.cpp.
|
privateslot |
Definition at line 607 of file OperateDesktop.cpp.
|
privateslot |
Definition at line 620 of file OperateDesktop.cpp.
|
privateslot |
emit by zoom menu in the class
Definition at line 584 of file OperateDesktop.cpp.
|
overridevirtualslot |
Definition at line 381 of file OperateDesktop.cpp.
|
overridevirtualslot |
Definition at line 396 of file OperateDesktop.cpp.
|
overridevirtual |
[The description of the desktop operate]
Implements COperate.
Reimplemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, and COperateVnc.
Definition at line 184 of file OperateDesktop.cpp.
|
private |
Definition at line 165 of file OperateDesktop.h.
|
protected |
Definition at line 194 of file OperateDesktop.h.
|
private |
Definition at line 163 of file OperateDesktop.h.
|
protected |
Definition at line 200 of file OperateDesktop.h.
|
protected |
Definition at line 201 of file OperateDesktop.h.
|
private |
Definition at line 166 of file OperateDesktop.h.
|
private |
Definition at line 164 of file OperateDesktop.h.
|
protected |
Definition at line 196 of file OperateDesktop.h.
|
protected |
Definition at line 198 of file OperateDesktop.h.
|
protected |
Definition at line 197 of file OperateDesktop.h.
|
protected |
Definition at line 199 of file OperateDesktop.h.
|
protected |
Definition at line 195 of file OperateDesktop.h.
|
private |
Definition at line 184 of file OperateDesktop.h.