|
Rabbit Remote Control 0.1.0-bate6
|
Plugin interface. More...
#include <Plugin.h>


Public Types | |
| enum class | TYPE { RemoteDesktop , Terminal , Client , Service , FileTransfers , NetworkTools , Tools , Custom = 1000 } |
Signals | |
| void | sigNewOperate (COperate *pOperate, bool bOpenSettingsDialog) |
| This signal is triggered when a new operate is created in the plugin. | |
Public Member Functions | |
| CPlugin (QObject *parent=nullptr) | |
| virtual const TYPE | Type () const =0 |
| virtual const QString | TypeName (const TYPE t) const |
| virtual const QString | Id () const |
| ID. Default: Type() + ":" + Protocol() + ":" + Name() | |
| virtual const QString | Protocol () const =0 |
| Plugin Protocol. | |
| virtual const QString | Name () const =0 |
| This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAME}_*.ts)) name is associated with it. | |
| virtual const QString | DisplayName () const |
| The plugin display name. | |
| virtual const QString | Description () const =0 |
| Plugin description. | |
| virtual const QString | Version () const =0 |
| Version. | |
| virtual const QIcon | Icon () const =0 |
| virtual const QString | Details () const |
| Display more information in About dialog or log. | |
Protected Member Functions | |
| virtual Q_INVOKABLE COperate * | CreateOperate (const QString &szId, CParameterPlugin *para) |
| New COperate instance. | |
| virtual COperate * | OnCreateOperate (const QString &szId)=0 |
| virtual Q_INVOKABLE int | DeleteOperate (COperate *p) |
| Delete COperate. | |
| virtual Q_INVOKABLE QWidget * | GetSettingsWidget (QWidget *parent) |
| Get the widget to set global parameters for the plugin. | |
Private Member Functions | |
| Q_INVOKABLE int | InitTranslator () |
| Initialize the translation resource, which is only called by CManager. | |
Private Attributes | |
| QSharedPointer< QTranslator > | m_Translator |
|
virtual |
Definition at line 16 of file Plugin.cpp.
|
protectedvirtual |
New COperate instance.
[CPlugin CreateOperate]
Only is called by CManager
| szId |
Reimplemented in CPluginWebBrowser, and CPluginWakeOnLan.
Definition at line 87 of file Plugin.cpp.
|
protectedvirtual |
Delete COperate.
[CPlugin CreateOperate]
Reimplemented in CPluginWakeOnLan.
Definition at line 129 of file Plugin.cpp.
|
pure virtual |
Plugin description.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginFtpServer, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginRawStream, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, CPluginWakeOnLan, and CPluginWebBrowser.
|
virtual |
Display more information in About dialog or log.
eg: Include the plugin depends on the library version and description
Reimplemented in CPluginFileTransfer, CPluginFreeRDP, CPluginFtpServer, CPluginLibVNCServer, CPluginPlayer, CPluginLibSSH, CPluginTerminal, CPluginTigerVnc, CPluginWakeOnLan, and CPluginWebBrowser.
Definition at line 81 of file Plugin.cpp.
|
virtual |
The plugin display name.
Reimplemented in CPluginFileTransfer, CPluginFreeRDP, CPluginFtpServer, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginRawStream, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, CPluginWakeOnLan, and CPluginWebBrowser.
Definition at line 76 of file Plugin.cpp.
|
protectedvirtual |
Get the widget to set global parameters for the plugin.
Usage:
Reimplemented in CPluginWebBrowser.
Definition at line 151 of file Plugin.cpp.
|
virtual |
ID. Default: Type() + ":" + Protocol() + ":" + Name()
Definition at line 71 of file Plugin.cpp.
|
private |
Initialize the translation resource, which is only called by CManager.
Because it calls Name(), So it can't be called directly in the constructor of this class.
Definition at line 24 of file Plugin.cpp.
|
pure virtual |
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAME}_*.ts)) name is associated with it.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginFtpServer, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginRawStream, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, CPluginWakeOnLan, and CPluginWebBrowser.
|
pure virtual |
Plugin Protocol.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginFtpServer, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginRawStream, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, CPluginWakeOnLan, and CPluginWebBrowser.
|
signal |
This signal is triggered when a new operate is created in the plugin.
| pOperate | a new operate is created. |
| bOpenSettingsDialog |
|
|
pure virtual |
Implemented in CPluginFreeRDP.
|
virtual |
Definition at line 36 of file Plugin.cpp.
|
pure virtual |