Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
CPluginTigerVnc Class Reference
Inheritance diagram for CPluginTigerVnc:
CPluginClient

Public Member Functions

 CPluginTigerVnc (QObject *parent=nullptr)
 [Qt plugin interface]
 
virtual const QString Name () const override
 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 override
 The plugin display name.
 
virtual const QString Description () const override
 Plugin description.
 
virtual const QString Protocol () const override
 Plugin Protocol.
 
virtual const QIcon Icon () const override
 
virtual const QString Details () const override
 Display more information in About dialog or log.
 
virtual const QString Version () const
 Version.
 
- Public Member Functions inherited from CPluginClient
 CPluginClient (QObject *parent=nullptr)
 When the derived class is implemented, The plugin global resources are initialized are loaded here.
 
virtual ~CPluginClient ()
 When the derived class is implemented, the resources are clean are unloaded here.
 
virtual const QString Id () const
 ID. Default: Protocol() + ":" + Name()
 

Private Member Functions

virtual CConnecterCreateConnecter (const QString &szID) override
 New CConnecter instance.
 

Detailed Description

Definition at line 10 of file PluginTigerVnc.h.

Constructor & Destructor Documentation

◆ CPluginTigerVnc()

CPluginTigerVnc::CPluginTigerVnc ( QObject *  parent = nullptr)
explicit

[Qt plugin interface]

[Qt plugin interface]

◆ ~CPluginTigerVnc()

CPluginTigerVnc::~CPluginTigerVnc ( )
overridevirtual

Definition at line 20 of file PluginTigerVnc.cpp.

Member Function Documentation

◆ CreateConnecter()

CConnecter * CPluginTigerVnc::CreateConnecter ( const QString &  szId)
overrideprivatevirtual

New CConnecter instance.

Only is called by CClient

{
auto it = m_Plugins.find(id);
if(m_Plugins.end() != it)
{
bool bRet = 0;
qDebug(log) << "CreateConnecter id:" << id;
auto plugin = it.value();
CConnecter* p = nullptr;
if(plugin) {
//p = plugin->CreateConnecter(id);
bRet = QMetaObject::invokeMethod(
plugin,
"CreateConnecter",
Qt::DirectConnection,
Q_RETURN_ARG(CConnecter*, p),
Q_ARG(QString, id));
if(!bRet) {
qCritical(log) << "Create CConnecter fail.";
return nullptr;
}
}
if(p) {
int val = 0;
//p->Initial();
bRet = QMetaObject::invokeMethod(
p,
"Initial",
Qt::DirectConnection,
Q_RETURN_ARG(int, val));
if(!bRet || val) {
qCritical(log) << "Connecter initial fail" << bRet << val;
DeleteConnecter(p);
return nullptr;
}
//p->SetParameterClient(m_ParameterClient)
bRet = QMetaObject::invokeMethod(
p,
"SetParameterClient",
Qt::DirectConnection,
Q_RETURN_ARG(int, val),
Q_ARG(CParameterClient*, m_pParameterClient));
if(!bRet || val) {
qCritical(log) << "SetParameterClient fail" << bRet << val;
DeleteConnecter(p);
return nullptr;
}
}
return p;
}
return nullptr;
}
virtual CConnecter * CreateConnecter(const QString &id)
New CConnecter pointer, the owner is caller.
Definition Client.cpp:202
Connecter interface.
Definition Connecter.h:62
The parameters of client.
Returns
Return CConnecter pointer, the owner is caller
Note
The function new object pointer, the caller must delete it when don't use it.
Parameters
szId
See also
CClient::CreateConnecter CClient::LoadConnecter

Implements CPluginClient.

Definition at line 68 of file PluginTigerVnc.cpp.

◆ Description()

const QString CPluginTigerVnc::Description ( ) const
overridevirtual

Plugin description.

Implements CPluginClient.

Definition at line 35 of file PluginTigerVnc.cpp.

◆ Details()

const QString CPluginTigerVnc::Details ( ) const
overridevirtual

Display more information in About dialog or log.

eg: Include the plugin depends on the library version and description

See also
CPluginFreeRDP::Details()

Reimplemented from CPluginClient.

Definition at line 57 of file PluginTigerVnc.cpp.

◆ DisplayName()

const QString CPluginTigerVnc::DisplayName ( ) const
overridevirtual

The plugin display name.

Reimplemented from CPluginClient.

Definition at line 30 of file PluginTigerVnc.cpp.

◆ Icon()

const QIcon CPluginTigerVnc::Icon ( ) const
overridevirtual

Reimplemented from CPluginClient.

Definition at line 47 of file PluginTigerVnc.cpp.

◆ Name()

const QString CPluginTigerVnc::Name ( ) const
overridevirtual

This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAME}_*.ts)) name is associated with it.

Implements CPluginClient.

Definition at line 25 of file PluginTigerVnc.cpp.

◆ Protocol()

const QString CPluginTigerVnc::Protocol ( ) const
overridevirtual

Plugin Protocol.

Implements CPluginClient.

Definition at line 42 of file PluginTigerVnc.cpp.

◆ Version()

const QString CPluginTigerVnc::Version ( ) const
virtual

Version.

Implements CPluginClient.

Definition at line 52 of file PluginTigerVnc.cpp.


The documentation for this class was generated from the following files: