Changeset View
Changeset View
Standalone View
Standalone View
plugins/pausemusic/pausemusicplugin.cpp
Show All 24 Lines | |||||
25 | #include <QDBusConnectionInterface> | 25 | #include <QDBusConnectionInterface> | ||
26 | #include <QDBusMessage> | 26 | #include <QDBusMessage> | ||
27 | #include <QDBusReply> | 27 | #include <QDBusReply> | ||
28 | #include <QDebug> | 28 | #include <QDebug> | ||
29 | #include <QProcess> | 29 | #include <QProcess> | ||
30 | 30 | | |||
31 | #include <KPluginFactory> | 31 | #include <KPluginFactory> | ||
32 | 32 | | |||
33 | //In older Qt released, qAsConst isnt available | ||||
34 | #include "qtcompat_p.h" | ||||
35 | | ||||
33 | K_PLUGIN_FACTORY_WITH_JSON( KdeConnectPluginFactory, "kdeconnect_pausemusic.json", registerPlugin< PauseMusicPlugin >(); ) | 36 | K_PLUGIN_FACTORY_WITH_JSON( KdeConnectPluginFactory, "kdeconnect_pausemusic.json", registerPlugin< PauseMusicPlugin >(); ) | ||
34 | 37 | | |||
35 | Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC, "kdeconnect.plugin.pausemusic") | 38 | Q_LOGGING_CATEGORY(KDECONNECT_PLUGIN_PAUSEMUSIC, "kdeconnect.plugin.pausemusic") | ||
36 | 39 | | |||
37 | PauseMusicPlugin::PauseMusicPlugin(QObject* parent, const QVariantList& args) | 40 | PauseMusicPlugin::PauseMusicPlugin(QObject* parent, const QVariantList& args) | ||
38 | : KdeConnectPlugin(parent, args) | 41 | : KdeConnectPlugin(parent, args) | ||
39 | , muted(false) | 42 | , muted(false) | ||
40 | {} | 43 | {} | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |