Changeset View
Changeset View
Standalone View
Standalone View
interfaces/dbusinterfaces.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 128 | class KDECONNECTINTERFACES_EXPORT MprisDbusInterface | |||
---|---|---|---|---|---|
129 | : public OrgKdeKdeconnectDeviceMprisremoteInterface | 129 | : public OrgKdeKdeconnectDeviceMprisremoteInterface | ||
130 | { | 130 | { | ||
131 | Q_OBJECT | 131 | Q_OBJECT | ||
132 | // TODO: Workaround because qdbusxml2cpp is not generating | 132 | // TODO: Workaround because qdbusxml2cpp is not generating | ||
133 | // the signals for the properties | 133 | // the signals for the properties | ||
134 | Q_PROPERTY(bool isPlaying READ isPlaying NOTIFY propertiesChangedProxy) | 134 | Q_PROPERTY(bool isPlaying READ isPlaying NOTIFY propertiesChangedProxy) | ||
135 | Q_PROPERTY(int length READ length NOTIFY propertiesChangedProxy) | 135 | Q_PROPERTY(int length READ length NOTIFY propertiesChangedProxy) | ||
136 | Q_PROPERTY(QString nowPlaying READ nowPlaying NOTIFY propertiesChangedProxy) | 136 | Q_PROPERTY(QString nowPlaying READ nowPlaying NOTIFY propertiesChangedProxy) | ||
137 | Q_PROPERTY(QString title READ title NOTIFY propertiesChangedProxy) | ||||
138 | Q_PROPERTY(QString artist READ artist NOTIFY propertiesChangedProxy) | ||||
139 | Q_PROPERTY(QString album READ album NOTIFY propertiesChangedProxy) | ||||
140 | | ||||
137 | Q_PROPERTY(QStringList playerList READ playerList NOTIFY propertiesChangedProxy) | 141 | Q_PROPERTY(QStringList playerList READ playerList NOTIFY propertiesChangedProxy) | ||
138 | Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY propertiesChangedProxy) | 142 | Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY propertiesChangedProxy) | ||
139 | Q_PROPERTY(int position READ position WRITE setPosition NOTIFY propertiesChangedProxy) | 143 | Q_PROPERTY(int position READ position WRITE setPosition NOTIFY propertiesChangedProxy) | ||
140 | public: | 144 | public: | ||
141 | explicit MprisDbusInterface(const QString& deviceId, QObject* parent = nullptr); | 145 | explicit MprisDbusInterface(const QString& deviceId, QObject* parent = nullptr); | ||
142 | ~MprisDbusInterface() override; | 146 | ~MprisDbusInterface() override; | ||
143 | 147 | | |||
144 | Q_SIGNALS: | 148 | Q_SIGNALS: | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |