mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-17 03:32:33 +00:00
[Linux] DBus fixes
This commit is contained in:
committed by
Tim Gromeyer
parent
48ae249405
commit
91ffaaa972
@@ -43,16 +43,15 @@ public:
|
||||
|
||||
void play();
|
||||
void pause();
|
||||
MediaState getCurrentMediaState() const { return m_mediaState; };
|
||||
MediaState getCurrentMediaState() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void mediaStateChanged(MediaState state);
|
||||
|
||||
private:
|
||||
MediaState mediaStateFromPlayerctlOutput(const QString &output);
|
||||
MediaState mediaStateFromPlayerctlOutput(const QString &output) const;
|
||||
QString getAudioDeviceName();
|
||||
bool sendMediaPlayerCommand(const QString &method);
|
||||
QDBusInterface *getMediaPlayerInterface();
|
||||
|
||||
bool wasPausedByApp = false;
|
||||
int initialVolume = -1;
|
||||
@@ -60,7 +59,6 @@ private:
|
||||
EarDetectionBehavior earDetectionBehavior = PauseWhenOneRemoved;
|
||||
QString m_deviceOutputName;
|
||||
PlayerStatusWatcher *playerStatusWatcher = nullptr;
|
||||
MediaState m_mediaState = Stopped;
|
||||
};
|
||||
|
||||
#endif // MEDIACONTROLLER_H
|
||||
Reference in New Issue
Block a user