2018-12-21 18:23:49 +00:00
|
|
|
#ifndef MPRISCONTROLPLUGINWIN_H
|
|
|
|
#define MPRISCONTROLPLUGINWIN_H
|
|
|
|
|
|
|
|
#include <core/kdeconnectplugin.h>
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QLoggingCategory>
|
|
|
|
|
|
|
|
#define PLAYERNAME QStringLiteral("Media Player")
|
|
|
|
|
|
|
|
#define PACKET_TYPE_MPRIS QStringLiteral("kdeconnect.mpris")
|
|
|
|
|
|
|
|
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MPRIS)
|
|
|
|
|
|
|
|
class MprisControlPlugin
|
|
|
|
: public KdeConnectPlugin
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MprisControlPlugin(QObject *parent, const QVariantList &args);
|
|
|
|
|
|
|
|
bool receivePacket(const NetworkPacket &np) override;
|
|
|
|
void connected() override {}
|
|
|
|
|
|
|
|
private:
|
2019-06-10 15:40:28 +01:00
|
|
|
const QString playername = PLAYERNAME;
|
2018-12-21 18:23:49 +00:00
|
|
|
};
|
|
|
|
#endif //MPRISCONTROLPLUGINWIN_H
|