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

Public Member Functions

 CPluginWakeOnLan (QObject *parent=nullptr)
 
virtual const QString Protocol () const override
 Plugin Protocol.
 
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 QIcon Icon () const override
 
virtual const QString Details () const override
 Display more information in About dialog or log.
 
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, CParameterClient *para) override
 New CConnecter instance.
 
virtual CConnecterOnCreateConnecter (const QString &szId) override
 
virtual int DeleteConnecter (CConnecter *p) override
 Delete CConnecter.
 

Private Attributes

CConnecterm_pConnecter
 

Additional Inherited Members

Detailed Description

Definition at line 9 of file PluginWakeOnLan.h.

Constructor & Destructor Documentation

◆ ~CPluginWakeOnLan()

CPluginWakeOnLan::~CPluginWakeOnLan ( )
virtual

Definition at line 49 of file PluginWakeOnLan.cpp.

Member Function Documentation

◆ CreateConnecter()

CConnecter * CPluginWakeOnLan::CreateConnecter ( const QString &  szId,
CParameterClient para 
)
overrideprivatevirtual

New CConnecter instance.

Only is called by CClient

{
CConnecter* pConnecter = nullptr;
auto it = m_Plugins.find(id);
if(m_Plugins.end() != it)
{
bool bRet = 0;
qDebug(log) << "CreateConnecter id:" << id;
auto plugin = it.value();
if(plugin) {
//p = plugin->CreateConnecter(id);
bRet = QMetaObject::invokeMethod(
plugin,
"CreateConnecter",
Qt::DirectConnection,
Q_RETURN_ARG(CConnecter*, pConnecter),
Q_ARG(QString, id),
Q_ARG(CParameterClient*, m_pParameterClient));
if(!bRet) {
qCritical(log) << "Create CConnecter fail.";
return nullptr;
}
}
}
return pConnecter;
}
virtual CConnecter * CreateConnecter(const QString &id)
New CConnecter pointer, the owner is caller.
Definition Client.cpp:203
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

Reimplemented from CPluginClient.

Definition at line 99 of file PluginWakeOnLan.cpp.

◆ DeleteConnecter()

int CPluginWakeOnLan::DeleteConnecter ( CConnecter p)
overrideprivatevirtual

Delete CConnecter.

Reimplemented from CPluginClient.

Definition at line 139 of file PluginWakeOnLan.cpp.

◆ Description()

const QString CPluginWakeOnLan::Description ( ) const
overridevirtual

Plugin description.

Implements CPluginClient.

Definition at line 69 of file PluginWakeOnLan.cpp.

◆ Details()

const QString CPluginWakeOnLan::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 84 of file PluginWakeOnLan.cpp.

◆ DisplayName()

const QString CPluginWakeOnLan::DisplayName ( ) const
overridevirtual

The plugin display name.

Reimplemented from CPluginClient.

Definition at line 64 of file PluginWakeOnLan.cpp.

◆ Icon()

const QIcon CPluginWakeOnLan::Icon ( ) const
overridevirtual

Reimplemented from CPluginClient.

Definition at line 74 of file PluginWakeOnLan.cpp.

◆ Name()

const QString CPluginWakeOnLan::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 59 of file PluginWakeOnLan.cpp.

◆ OnCreateConnecter()

CConnecter * CPluginWakeOnLan::OnCreateConnecter ( const QString &  szId)
overrideprivatevirtual

Implements CPluginClient.

Definition at line 129 of file PluginWakeOnLan.cpp.

◆ Protocol()

const QString CPluginWakeOnLan::Protocol ( ) const
overridevirtual

Plugin Protocol.

Implements CPluginClient.

Definition at line 54 of file PluginWakeOnLan.cpp.

◆ Version()

const QString CPluginWakeOnLan::Version ( ) const
overridevirtual

Version.

Implements CPluginClient.

Definition at line 79 of file PluginWakeOnLan.cpp.

Member Data Documentation

◆ m_pConnecter

CConnecter* CPluginWakeOnLan::m_pConnecter
private

Definition at line 39 of file PluginWakeOnLan.h.


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