diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2015-04-17 11:39:31 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2015-04-17 19:11:42 +0200 |
| commit | d9f2e79eff8744bd5bd422133117693d42ee52da (patch) | |
| tree | b8ba17fb4114476af90df71b47e93936132798b6 /daemon/musicmanager.h | |
| parent | 3c506a45669f76628306c2e06653bc507e73627a (diff) | |
Connect to PulseAudio and read maximum volume in the constructor instead
of every time a volume button is pressed. Disconnect in destructor.
Diffstat (limited to 'daemon/musicmanager.h')
| -rw-r--r-- | daemon/musicmanager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/musicmanager.h b/daemon/musicmanager.h index 14aa6fb..4ad03a8 100644 --- a/daemon/musicmanager.h +++ b/daemon/musicmanager.h @@ -13,6 +13,7 @@ class MusicManager : public QObject, protected QDBusContext public: explicit MusicManager(WatchConnector *watch, QObject *parent = 0); + virtual ~MusicManager(); private: void switchToService(const QString &service); @@ -31,6 +32,8 @@ private: QDBusServiceWatcher *_watcher; QString _curService; QVariantMap _curMetadata; + QDBusConnection *_pulseBus; + uint _maxVolume; }; #endif // MUSICMANAGER_H |
