Rabbit Remote Control 0.0.37
|
Operate interface. More...
#include <Operate.h>
Public Types | |
enum class | SecurityLevel { No , Secure , NonSecureAuthentication , SecureChannel , Normal = SecureChannel , SecureAuthentication , Risky } |
Signals | |
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 () |
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. | |
virtual SecurityLevel | GetSecurityLevel () |
virtual QString | GetSecurityLevelString () |
virtual QColor | GetSecurityLevelColor () |
virtual int | Start ()=0 |
Start. | |
virtual int | Stop ()=0 |
Stop. | |
Property | |
virtual const QString | Id () |
Identity. | |
virtual const QString | Name () |
Name. | |
virtual const QString | Description () |
Description. | |
virtual const QString | Protocol () const |
Protocol. | |
virtual const qint16 | Version () const =0 |
Version. | |
virtual const QIcon | Icon () const |
Icon. | |
virtual const QString | GetTypeName () const |
Get type name. | |
Static Public Member Functions | |
static QString | GetSecurityLevelString (SecurityLevel level) |
static QColor | GetSecurityLevelColor (SecurityLevel level) |
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 | SetGlobalParameters (CParameterPlugin *pPara)=0 |
Apply the global 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) |
Protected Attributes | |
QMenu | m_Menu |
QAction * | m_pActionSettings |
Private Slots | |
void | slotUpdateName () |
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 int | Load (QSettings &set) |
Load parameters. | |
virtual int | Save (QSettings &set) |
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. | |
Operate interface.
Class diagram:
Sequen diagram:
Basic implementations of the following types have been provided:
|
virtual |
Definition at line 28 of file Operate.cpp.
|
protectedvirtual |
Clean parameters and resource.
Reimplemented in COperateFileTransfer, COperateFreeRDP, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateSSH, COperateVnc, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
Definition at line 242 of file Operate.cpp.
|
staticprotected |
Definition at line 279 of file Operate.cpp.
|
virtual |
Description.
Reimplemented in COperateFileTransfer, COperateSerialPort, COperateSSH, COperateTelnet, CTerminal, COperateDesktop, and COperateTerminal.
Definition at line 46 of file Operate.cpp.
|
virtual |
Get menu.
Definition at line 107 of file Operate.cpp.
|
protected |
|
virtual |
Definition at line 114 of file Operate.cpp.
|
virtual |
Definition at line 145 of file Operate.cpp.
|
static |
Definition at line 150 of file Operate.cpp.
|
virtual |
Definition at line 119 of file Operate.cpp.
|
static |
Definition at line 124 of file Operate.cpp.
|
virtual |
Definition at line 169 of file Operate.cpp.
|
virtual |
Get type name.
Definition at line 76 of file Operate.cpp.
|
pure virtual |
Get Viewer.
Implemented in COperateFileTransfer, CScreenCapture, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
|
virtual |
Icon.
Definition at line 82 of file Operate.cpp.
|
virtual |
Identity.
Reimplemented in COperateFileTransfer, COperateSerialPort, COperateSSH, COperateTelnet, CTerminal, COperateVnc, COperateWakeOnLan, and COperateDesktop.
Definition at line 33 of file Operate.cpp.
|
protectedvirtual |
Initial parameters and resource.
Reimplemented in COperateFileTransfer, COperateFreeRDP, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateSSH, CTerminal, COperateVnc, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
Definition at line 225 of file Operate.cpp.
|
protectedvirtual |
Load parameters.
Reimplemented in COperateFileTransfer, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
Definition at line 211 of file Operate.cpp.
|
protectedvirtual |
|
virtual |
Name.
Reimplemented in COperateFileTransfer, COperateSerialPort, COperateSSH, COperateTelnet, CTerminal, COperateWakeOnLan, and COperateDesktop.
Definition at line 41 of file Operate.cpp.
|
privatepure virtual |
Open settgins dialog.
parent | the parent windows of the dialog of return |
Implemented in COperateFileTransfer, COperateFreeRDP, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateSerialPort, COperateSSH, COperateTelnet, CTerminal, COperateWakeOnLan, and COperateVnc.
|
virtual |
Open settings dialog.
parent |
Definition at line 87 of file Operate.cpp.
|
virtual |
|
protectedvirtual |
Save parameters.
Reimplemented in COperateFileTransfer, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
Definition at line 218 of file Operate.cpp.
|
protectedvirtual |
Save parameters to file.
szFile | File name. |
Definition at line 199 of file Operate.cpp.
|
protectedpure virtual |
Apply the global parameters of the plug-in.
Implemented in COperateFileTransfer, CScreenCapture, COperateWakeOnLan, COperateDesktop, and COperateTerminal.
Definition at line 259 of file Operate.cpp.
|
virtual |
Definition at line 181 of file Operate.cpp.
|
signal |
Successful disconnection signal.
Triggered only by plugins
|
signal |
Show information in main windows.
szInfo |
|
signal |
Start success signal.
Triggered only by plugins.
|
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 369 of file Operate.cpp.
|
privatevirtualslot |
Block background threads and display message dialogs in foreground threads (QMessageBox)
Definition at line 348 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 309 of file Operate.cpp.
|
privatevirtualslot |
Definition at line 384 of file Operate.cpp.
|
privatevirtualslot |
Definition at line 247 of file Operate.cpp.
|
privateslot |
Definition at line 274 of file Operate.cpp.
|
pure virtual |
Start.
Implemented in COperateFileTransfer.
|
pure virtual |
Stop.
Implemented in COperateFileTransfer.
|
pure virtual |
Version.
Implemented in COperateFileTransfer, COperateFreeRDP, COperateLibVNCServer, COperatePlayer, CScreenCapture, COperateVnc, COperateWakeOnLan, COperateDesktop, and COperateTerminal.