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

Public Member Functions

 CPluginFreeRDP (QObject *parent=nullptr)
 [Initialize resource]
 
virtual ~CPluginFreeRDP () override
 [Initialize resource]
 
virtual const QString Name () const override
 [Clean resource]
 
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
 Show the plugin depends on the freerdp version.
 
virtual const QString Version () const override
 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 PluginFreeRDP.h.

Constructor & Destructor Documentation

◆ CPluginFreeRDP()

static FreeRDP Log CPluginFreeRDP::CPluginFreeRDP ( QObject *  parent = nullptr)
explicit

[Initialize resource]

Definition at line 17 of file PluginFreeRDP.cpp.

◆ ~CPluginFreeRDP()

CPluginFreeRDP::~CPluginFreeRDP ( )
overridevirtual

[Initialize resource]

[Clean resource]

Definition at line 61 of file PluginFreeRDP.cpp.

Member Function Documentation

◆ CreateConnecter()

CConnecter * CPluginFreeRDP::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 130 of file PluginFreeRDP.cpp.

◆ Description()

const QString CPluginFreeRDP::Description ( ) const
overridevirtual

Plugin description.

Implements CPluginClient.

Definition at line 77 of file PluginFreeRDP.cpp.

◆ Details()

const QString CPluginFreeRDP::Details ( ) const
overridevirtual

Show the plugin depends on the freerdp version.

Reimplemented from CPluginClient.

Definition at line 100 of file PluginFreeRDP.cpp.

◆ DisplayName()

const QString CPluginFreeRDP::DisplayName ( ) const
overridevirtual

The plugin display name.

Reimplemented from CPluginClient.

Definition at line 72 of file PluginFreeRDP.cpp.

◆ Icon()

const QIcon CPluginFreeRDP::Icon ( ) const
overridevirtual

Reimplemented from CPluginClient.

Definition at line 87 of file PluginFreeRDP.cpp.

◆ Name()

const QString CPluginFreeRDP::Name ( ) const
overridevirtual

[Clean resource]

Implements CPluginClient.

Definition at line 67 of file PluginFreeRDP.cpp.

◆ Protocol()

const QString CPluginFreeRDP::Protocol ( ) const
overridevirtual

Plugin Protocol.

Implements CPluginClient.

Definition at line 82 of file PluginFreeRDP.cpp.

◆ Version()

const QString CPluginFreeRDP::Version ( ) const
overridevirtual

Version.

Implements CPluginClient.

Definition at line 92 of file PluginFreeRDP.cpp.


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