Changeset View
Changeset View
Standalone View
Standalone View
plugins/pausemusic/pausemusicplugin.h
Show All 29 Lines | |||||
30 | class PauseMusicPlugin | 30 | class PauseMusicPlugin | ||
31 | : public KdeConnectPlugin | 31 | : public KdeConnectPlugin | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit PauseMusicPlugin(QObject *parent, const QVariantList &args); | 36 | explicit PauseMusicPlugin(QObject *parent, const QVariantList &args); | ||
37 | 37 | | |||
38 | public Q_SLOTS: | | |||
39 | bool receivePackage(const NetworkPackage& np) override; | 38 | bool receivePackage(const NetworkPackage& np) override; | ||
40 | void connected() override { } | 39 | void connected() override { } | ||
41 | 40 | | |||
41 | public Q_SLOTS: | ||||
42 | /** | 42 | /** | ||
43 | * @returns 0 if not muted, 1 if muted or -1 if there was an error | 43 | * @returns 0 if not muted, 1 if muted or -1 if there was an error | ||
44 | */ | 44 | */ | ||
45 | int isKMixMuted(); | 45 | int isKMixMuted(); | ||
46 | 46 | | |||
47 | private: | 47 | private: | ||
48 | QSet<QString> pausedSources; | 48 | QSet<QString> pausedSources; | ||
49 | bool muted; | 49 | bool muted; | ||
50 | 50 | | |||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | #endif | 53 | #endif |