|
Rabbit Remote Control 0.1.0-bate10
|
Operate interface. More...
#include <Operate.h>


Signals | |
| 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 () |
Public Member Functions | |
| COperate (CPlugin *plugin) | |
| virtual QWidget * | GetViewer ()=0 |
| Get Viewer. | |
| virtual int | OpenDialogSettings (QWidget *parent=nullptr) |
| Open settings dialog. | |
| virtual QMenu * | GetMenu (QWidget *parent=nullptr) |
| Get menu. | |
Property | |
| virtual const QString | Id () |
| virtual const QString | Name () |
| Name. | |
| virtual const QString | Description () |
| Description. | |
| virtual const QString | Protocol () const |
| virtual const qint16 | Version () const =0 |
| virtual const QIcon | Icon () const |
| virtual const QString | GetTypeName () const |
Protected Slots | |
| void | slotUpdateName () |
Protected Member Functions | |
| virtual Q_INVOKABLE int | Initial () |
| Initial parameters and resource. | |
| virtual Q_INVOKABLE int | Clean () |
| Clean parameters and resource. | |
| virtual Q_INVOKABLE int | SetPluginParameters (CParameterPlugin *pPara)=0 |
| Apply the parameters of the plug-in. | |
| Q_INVOKABLE CPlugin * | GetPlugin () const |
| Get plugin. | |
Static Protected Member Functions | |
| static QObject * | createObject (const QString &className, QObject *parent=NULL) |
| Create Object. | |
Protected Attributes | |
| QMenu | m_Menu |
| QAction * | m_pActionSettings |
Private Slots | |
| virtual void | slotBlockShowWidget (const QString &className, int &nRet, void *pContext) |
| Blocks the background thread and displays the window in the foreground thread. | |
| virtual void | slotBlockShowMessageBox (const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString szCheckBoxContext=QString()) |
| Block background threads and display message dialogs in foreground threads (QMessageBox) | |
| virtual void | slotBlockInputDialog (const QString &szTitle, const QString &szLable, const QString &szMessage, QString &szText) |
| Block background threads and display input dialogs in foreground threads (QInputDialog) | |
| virtual void | slotSetClipboard (QMimeData *data) |
| virtual void | slotSettings () |
Private Member Functions | |
| virtual QDialog * | OnOpenDialogSettings (QWidget *parent=nullptr)=0 |
| Open settgins dialog. | |
Private Attributes | |
| CPlugin * | m_pPlugin |
Load and save settings | |
| QString | m_szSettings |
| virtual QString | GetSettingsFile () |
| virtual int | SetSettingsFile (const QString &szFile) |
| virtual Q_INVOKABLE int | Load (QSettings &set)=0 |
| Load parameters. | |
| virtual Q_INVOKABLE int | Save (QSettings &set)=0 |
| Save parameters. | |
| virtual Q_INVOKABLE int | Load (QString szFile=QString()) |
| Load parameters from file. | |
| virtual Q_INVOKABLE int | Save (QString szFile=QString()) |
| Save parameters to file. | |
Statistics | |
| CSecurityLevel::Levels | m_SecurityLevel |
| virtual CStats * | GetStats () |
| Get statistics. | |
| virtual CSecurityLevel::Levels | GetSecurityLevel () const |
| Get Security Level. | |
| void | sigSecurityLevel () |
| Triggered when the security level changes. | |
| void | slotSetSecurityLevel (CSecurityLevel::Levels level) |
Main Workflow | |
| virtual int | Start ()=0 |
| Start. | |
| virtual int | Stop ()=0 |
| Stop. | |
| void | sigRunning () |
| Start success signal. | |
| void | sigStop () |
| Notify the user to stop. | |
| void | sigFinished () |
| Successful disconnection signal. | |
Operate interface.
Class diagram:
Sequen diagram:
Basic implementations of the following types have been provided:
|
virtual |
Definition at line 31 of file Operate.cpp.
|
protectedvirtual |
Clean parameters and resource.
Reimplemented in COperateFileTransfer, COperateFreeRDP, COperateFreeRDPServer, COperateFtpServer, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateSftpServer, COperateSSH, COperateTemplateBase, COperateTemplateDesktop, COperateTemplateQtEvent, COperateTemplateServer, COperateVnc, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, COperateServer, and COperateTerminal.
Definition at line 209 of file Operate.cpp.
|
staticprotected |
Create Object.
| className | class name |
| parent |
Definition at line 254 of file Operate.cpp.
|
virtual |
Description.
Reimplemented in COperateFileTransfer, COperateFtpServer, COperateRawStream, COperateSerialPort, COperateSftpServer, COperateSSH, COperateTelnet, CTerminal, COperateDesktop, and COperateTerminal.
Definition at line 51 of file Operate.cpp.
|
virtual |
|
protected |
|
virtual |
|
virtual |
Definition at line 143 of file Operate.cpp.
|
virtual |
Get statistics.
If so, its derived class needs to overload this function to provide statistical information.
Reimplemented in CTerminal, COperateVnc, and COperateTerminal.
Definition at line 124 of file Operate.cpp.
|
virtual |
Definition at line 86 of file Operate.cpp.
|
pure virtual |
Get Viewer.
Implemented in COperateFileTransfer, CScreenCapture, COperateTemplateBase, COperateTemplateQtEvent, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, COperateServer, and COperateTerminal.
|
virtual |
Definition at line 92 of file Operate.cpp.
|
virtual |
Definition at line 36 of file Operate.cpp.
|
protectedvirtual |
Initial parameters and resource.
Reimplemented in COperateFileTransfer, COperateFreeRDP, COperateFreeRDPServer, COperateFtpServer, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateSftpServer, COperateSSH, COperateTemplateBase, COperateTemplateDesktop, COperateTemplateQtEvent, COperateTemplateServer, CTerminal, COperateVnc, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, COperateServer, and COperateTerminal.
Definition at line 190 of file Operate.cpp.
|
protectedpure virtual |
Load parameters.
Implemented in COperateFileTransfer, COperateFreeRDPServer, COperateFtpServer, CScreenCapture, COperateSftpServer, COperateTemplateBase, COperateTemplateQtEvent, COperateTemplateServer, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, and COperateTerminal.
|
protectedvirtual |
Load parameters from file.
Definition at line 164 of file Operate.cpp.
|
virtual |
Name.
Reimplemented in COperateFileTransfer, COperateFtpServer, COperateRawStream, COperateSerialPort, COperateSftpServer, COperateSSH, COperateTelnet, CTerminal, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, and COperateTerminal.
Definition at line 46 of file Operate.cpp.
|
privatepure virtual |
Open settgins dialog.
| parent | the parent windows of the dialog of return |
Implemented in COperateFileTransfer, COperateFreeRDP, COperateFreeRDPServer, COperateFtpServer, COperateLibVNCServer, COperatePlayer, COperateRawStream, CScreenCapture, COperateSerialPort, COperateSftpServer, COperateSSH, COperateTelnet, COperateTemplateBase, COperateTemplateDesktop, COperateTemplateQtEvent, COperateTemplateServer, CTerminal, COperateWakeOnLan, COperateWebBrowser, and COperateVnc.
|
virtual |
Open settings dialog.
| parent |
Definition at line 97 of file Operate.cpp.
|
virtual |
Definition at line 81 of file Operate.cpp.
|
protectedpure virtual |
Save parameters.
Implemented in COperateFileTransfer, COperateFreeRDPServer, COperateFtpServer, CScreenCapture, COperateSftpServer, COperateTemplateBase, COperateTemplateQtEvent, COperateTemplateServer, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, and COperateTerminal.
|
protectedvirtual |
Save parameters to file.
| szFile | File name. |
Definition at line 177 of file Operate.cpp.
|
protectedpure virtual |
Apply the parameters of the plug-in.
Implemented in COperateFileTransfer, COperateFreeRDPServer, COperateFtpServer, CScreenCapture, COperateSftpServer, COperateTemplateBase, COperateTemplateQtEvent, COperateTemplateServer, COperateWakeOnLan, COperateWebBrowser, COperateDesktop, and COperateTerminal.
Definition at line 226 of file Operate.cpp.
|
virtual |
Definition at line 158 of file Operate.cpp.
|
signal |
Successful disconnection signal.
Triggered only by plugins
|
signal |
Full screen.
emitted by operate
| bFullScreen |
|
|
signal |
Show information in main windows.
| szInfo |
|
signal |
Start success signal.
Triggered only by plugins.
|
signal |
Triggered when the security level changes.
Its derived classes should not be triggered directly; they need to be triggered using slotSetSecurityLevel.
|
signal |
Trigger the display of a message dialog (QMessageBox) in the main thread from a background thread without blocking the background thread.
|
signal |
Notify the user to stop.
Triggered only by plugins Emit when you need to stop from the plug-in. For example, the peer disconnect or reset the connection or the connection is error. When the applicatioin receive the signal, call Stop() to close connect
|
signal |
|
signal |
Update parameters, notify application to save or show parameters.
|
signal |
The view is focus.
| pView |
|
privatevirtualslot |
Block background threads and display input dialogs in foreground threads (QInputDialog)
Definition at line 344 of file Operate.cpp.
|
privatevirtualslot |
Block background threads and display message dialogs in foreground threads (QMessageBox)
Definition at line 323 of file Operate.cpp.
|
privatevirtualslot |
Blocks the background thread and displays the window in the foreground thread.
| className | show windows class name The class must have follower public functions: Q_INVOKABLE void SetContext(void* pContext); |
| nRet | If className is QDialog derived class, QDialog::exec() return value. Otherwise, ignore |
| pContext | pass context from CConnect::sigBlockShowWidget() |
Definition at line 284 of file Operate.cpp.
|
privatevirtualslot |
Definition at line 359 of file Operate.cpp.
|
protectedslot |
Definition at line 134 of file Operate.cpp.
|
privatevirtualslot |
Definition at line 214 of file Operate.cpp.
|
protectedslot |
Definition at line 249 of file Operate.cpp.
|
pure virtual |
Start.
Implemented in COperateFileTransfer, COperateTemplateBase, COperateTemplateQtEvent, COperateWebBrowser, and COperateServer.
|
pure virtual |
Stop.
Implemented in COperateFileTransfer, COperateTemplateBase, COperateTemplateQtEvent, COperateWebBrowser, and COperateServer.
|
pure virtual |
Implemented in COperateFreeRDP, COperateLibVNCServer, COperatePlayer, COperateVnc, and COperateDesktop.