Rabbit Remote Control 0.0.31
Loading...
Searching...
No Matches
PluginPlayer.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef PLUGINPLAYER_H
4#define PLUGINPLAYER_H
5
6#include "PluginClient.h"
7
9{
10 Q_OBJECT
11public:
12 explicit CPluginPlayer(QObject *parent = nullptr);
13
14 // [Qt plugin interface]
15 Q_INTERFACES(CPluginClient)
16
17#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
18 Q_PLUGIN_METADATA(IID CPluginClient_iid)
19#endif
20 // [Qt plugin interface]
21
22 // CPluginClient interface
23public:
24 virtual const QString Protocol() const override;
25 virtual const QString Name() const override;
26 virtual const QString DisplayName() const override;
27 virtual const QString Description() const override;
28 virtual const QString Version() const override;
29 virtual const QIcon Icon() const override;
30 virtual const QString Details() const override;
31
32private:
33 virtual CConnecter *CreateConnecter(const QString &szId) override;
34
35};
36
37#endif // PLUGINPLAYER_H
Connecter interface.
Definition Connecter.h:62
The plugin interface.
virtual CConnecter * CreateConnecter(const QString &szId) override
New CConnecter instance.
virtual const QString Description() const override
Plugin description.
virtual const QString Details() const override
Display more information in About dialog or log.
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 DisplayName() const override
The plugin display name.
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Version() const override
Version.