Changeset View
Changeset View
Standalone View
Standalone View
plugins/mpriscontrol/mpriscontrolplugin-win.h
- This file was added.
1 | #ifndef MPRISCONTROLPLUGINWIN_H | ||||
---|---|---|---|---|---|
2 | #define MPRISCONTROLPLUGINWIN_H | ||||
3 | | ||||
4 | #include <core/kdeconnectplugin.h> | ||||
5 | | ||||
6 | #include <QString> | ||||
7 | #include <QLoggingCategory> | ||||
8 | | ||||
9 | #define PLAYERNAME QStringLiteral("Media Player") | ||||
10 | | ||||
11 | #define PACKET_TYPE_MPRIS QStringLiteral("kdeconnect.mpris") | ||||
12 | | ||||
13 | Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS) | ||||
14 | | ||||
15 | class MprisControlPlugin | ||||
16 | : public KdeConnectPlugin | ||||
17 | { | ||||
18 | Q_OBJECT | ||||
19 | | ||||
20 | public: | ||||
21 | explicit MprisControlPlugin(QObject *parent, const QVariantList &args); | ||||
22 | | ||||
23 | bool receivePacket(const NetworkPacket &np) override; | ||||
24 | void connected() override {} | ||||
25 | | ||||
26 | private: | ||||
27 | const QString playername = "Media Player"; | ||||
28 | }; | ||||
29 | #endif //MPRISCONTROLPLUGINWIN_H | ||||
30 | No newline at end of file |