| 
    Rabbit Remote Control 0.1.0-bate4
    
   | 
 
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 Q_INVOKABLE CBackend * | InstanceBackend ()=0 | 
| New CBackend.   | |
| virtual CParameterBase * | GetParameter () | 
| Get parameter.   | |
| virtual int | SetParameter (CParameterBase *p) | 
| Set parameter pointer.   | |
| virtual const QString | Id () override | 
| Identity.   | |
| virtual const QString | Name () override | 
| Name.   | |
| virtual const QString | Description () override | 
| Description.   | |
| virtual const qint16 | Version () const override | 
| Version.   | |
| 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 CStats * | GetStats () | 
| virtual SecurityLevel | GetSecurityLevel () | 
| virtual QString | GetSecurityLevelString () | 
| virtual QColor | GetSecurityLevelColor () | 
| virtual int | Start ()=0 | 
| Start.   | |
| virtual int | Stop ()=0 | 
| Stop.   | |
| virtual const QString | Protocol () const | 
| Protocol.   | |
| virtual const QIcon | Icon () const | 
| Icon.   | |
| virtual const QString | GetTypeName () const | 
| Get type name.   | |
| virtual QString | GetSettingsFile () | 
| virtual int | SetSettingsFile (const QString &szFile) | 
Protected Member Functions | |
| virtual int | SetGlobalParameters (CParameterPlugin *pPara) override | 
| Apply the global parameters of the plug-in.   | |
| virtual int | Initial () override | 
| Initial parameters and resource.   | |
| virtual int | Clean () override | 
| Clean parameters and resource.   | |
| virtual int | Load (QSettings &set) override | 
| Load parameters.   | |
| virtual 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) | 
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 | |
  Public Types inherited from COperate | |
| enum class | SecurityLevel {  No , Secure , NonSecureAuthentication , SecureChannel , Normal = SecureChannel , SecureAuthentication , Risky }  | 
  Signals inherited from COperate | |
| void | sigRunning () | 
| Start success signal.   | |
| void | sigStop () | 
| Notify the user to stop.   | |
| void | sigFinished () | 
| Successful disconnection signal.   | |
| void | sigViewerFocusIn (QWidget *pView) | 
| The view is focus.   | |
| 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 () | 
  Static Public Member Functions inherited from COperate | |
| static QString | GetSecurityLevelString (SecurityLevel level) | 
| static QColor | GetSecurityLevelColor (SecurityLevel level) | 
  Protected Slots inherited from COperate | |
| void | slotUpdateName () | 
  Static Protected Member Functions inherited from COperate | |
| static QObject * | createObject (const QString &className, QObject *parent=NULL) | 
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 191 of file OperateDesktop.cpp.
      
  | 
  overridevirtual | 
      
  | 
  virtual | 
Get parameter.
Definition at line 428 of file OperateDesktop.cpp.
      
  | 
  overridevirtual | 
Get Viewer.
Implements COperate.
Definition at line 355 of file OperateDesktop.cpp.
      
  | 
  overridevirtual | 
Identity.
Reimplemented from COperate.
Reimplemented in COperateVnc.
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 168 of file OperateDesktop.cpp.
      
  | 
  protectedvirtual | 
Definition at line 204 of file OperateDesktop.cpp.
      
  | 
  pure 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 469 of file OperateDesktop.cpp.
      
  | 
  overridevirtual | 
      
  | 
  overrideprotectedvirtual | 
      
  | 
  protectedvirtual | 
Current connect server name (remote desktop name, if not present, then IP:PORT).
eg: Server name or Ip:Port
Reimplemented in COperateVnc.
Definition at line 616 of file OperateDesktop.cpp.
      
  | 
  overrideprotectedvirtual | 
Apply the global parameters of the plug-in.
Implements COperate.
Definition at line 388 of file OperateDesktop.cpp.
      
  | 
  virtual | 
Set parameter pointer.
Definition at line 433 of file OperateDesktop.cpp.
      
  | 
  virtualslot | 
Definition at line 576 of file OperateDesktop.cpp.
      
  | 
  privatevirtualslot | 
Definition at line 637 of file OperateDesktop.cpp.
      
  | 
  privateslot | 
Definition at line 591 of file OperateDesktop.cpp.
      
  | 
  privateslot | 
Definition at line 604 of file OperateDesktop.cpp.
      
  | 
  privateslot | 
emit by zoom menu in the class
Definition at line 568 of file OperateDesktop.cpp.
      
  | 
  overridevirtualslot | 
Definition at line 360 of file OperateDesktop.cpp.
      
  | 
  overridevirtualslot | 
Definition at line 375 of file OperateDesktop.cpp.
      
  | 
  overridevirtual | 
Version.
Implements COperate.
Reimplemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, and COperateVnc.
Definition at line 163 of file OperateDesktop.cpp.
      
  | 
  private | 
Definition at line 160 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 187 of file OperateDesktop.h.
      
  | 
  private | 
Definition at line 158 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 193 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 194 of file OperateDesktop.h.
      
  | 
  private | 
Definition at line 161 of file OperateDesktop.h.
      
  | 
  private | 
Definition at line 159 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 189 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 191 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 190 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 192 of file OperateDesktop.h.
      
  | 
  protected | 
Definition at line 188 of file OperateDesktop.h.
      
  | 
  private | 
Definition at line 177 of file OperateDesktop.h.