Rabbit Remote Control 0.0.33
Loading...
Searching...
No Matches
PluginWakeOnLan.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef __PLUGINWAKEONLAN_H_KL_2024_10_02__
4#define __PLUGINWAKEONLAN_H_KL_2024_10_02__
5
6#pragma once
7#include "PluginClient.h"
8
10{
11 Q_OBJECT
12 // [Qt plugin interface]
13 Q_INTERFACES(CPluginClient)
14
15#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
16 Q_PLUGIN_METADATA(IID CPluginClient_iid)
17#endif
18 // [Qt plugin interface]
19
20public:
21 explicit CPluginWakeOnLan(QObject *parent = nullptr);
22 virtual ~CPluginWakeOnLan();
23
24 // CPluginClient interface
25public:
26 virtual const QString Protocol() const override;
27 virtual const QString Name() const override;
28 virtual const QString DisplayName() const override;
29 virtual const QString Description() const override;
30 virtual const QIcon Icon() const override;
31 virtual const QString Details() const override;
32 virtual const QString Version() const override;
33
34private:
35 virtual CConnecter* CreateConnecter(const QString& szId, CParameterClient* para) override;
36 virtual CConnecter* OnCreateConnecter(const QString &szId) override;
37 virtual int DeleteConnecter(CConnecter* p) override;
38
39 CConnecter* m_pConnecter;
40};
41
42#endif // __PLUGINWAKEONLAN_H_KL_2024_10_02__
Connecter interface.
Definition Connecter.h:62
The parameters of client.
The plugin interface.
virtual const QString Details() const override
Display more information in About dialog or log.
virtual CConnecter * CreateConnecter(const QString &szId, CParameterClient *para) override
New CConnecter instance.
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString DisplayName() const override
The plugin display name.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
virtual const QString Version() const override
Version.
virtual const QString Description() const override
Plugin description.
virtual int DeleteConnecter(CConnecter *p) override
Delete CConnecter.