Rabbit Remote Control 0.0.37
|
Plugin interface. More...
#include <Plugin.h>
Public Types | |
enum class | TYPE { RemoteDesktop , Terminal , Client , Service , FileTransfers , NetworkTools , Tools , Custom = 1000 } |
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 () |
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. | |
Private Member Functions | |
Q_INVOKABLE int | InitTranslator () |
Initialize the translation resource, which is only called by CClient. | |
Private Attributes | |
QSharedPointer< QTranslator > | m_Translator |
|
virtual |
Definition at line 15 of file Plugin.cpp.
|
protectedvirtual |
New COperate instance.
[CPlugin CreateOperate]
Only is called by CClient
szId |
Reimplemented in CPluginWakeOnLan.
Definition at line 84 of file Plugin.cpp.
|
protectedvirtual |
Delete COperate.
[CPlugin CreateOperate]
Reimplemented in CPluginWakeOnLan.
Definition at line 126 of file Plugin.cpp.
|
pure virtual |
Plugin description.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.
|
virtual |
Display more information in About dialog or log.
eg: Include the plugin depends on the library version and description
Reimplemented in CPluginFreeRDP, CPluginLibVNCServer, CPluginPlayer, CPluginLibSSH, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.
Definition at line 78 of file Plugin.cpp.
|
virtual |
The plugin display name.
Reimplemented in CPluginFileTransfer, CPluginFreeRDP, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.
Definition at line 73 of file Plugin.cpp.
|
virtual |
ID. Default: Type() + ":" + Protocol() + ":" + Name()
Definition at line 68 of file Plugin.cpp.
|
private |
Initialize the translation resource, which is only called by CClient.
Because it calls Name(), So it can't be called directly in the constructor of this class.
Definition at line 23 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, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.
|
pure virtual |
Plugin Protocol.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.
|
pure virtual |
Implemented in CPluginFreeRDP.
|
virtual |
Definition at line 35 of file Plugin.cpp.
|
pure virtual |
Version.
Implemented in CPluginFileTransfer, CPluginFreeRDP, CPluginLibVNCServer, CPluginPlayer, CPluginRabbitVNC, CPluginScreenCapture, CPluginSerialPort, CPluginLibSSH, CPluginTelnet, CPluginTerminal, CPluginTigerVnc, and CPluginWakeOnLan.