diff options
| author | manuel <manuel@mausz.at> | 2011-04-14 02:37:31 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-14 02:37:31 +0200 |
| commit | b18385a95f25e13c767244b494f31bd4fc238143 (patch) | |
| tree | af389057a2d4a03565f70186d7c1d2e49b95828f /pacman-c++/client.h | |
| parent | 3d20638fa8e295271ce38953ad1c657d9275bd99 (diff) | |
| download | foop-b18385a95f25e13c767244b494f31bd4fc238143.tar.gz foop-b18385a95f25e13c767244b494f31bd4fc238143.tar.bz2 foop-b18385a95f25e13c767244b494f31bd4fc238143.zip | |
encapsulate gapless audioplayer commit from yesterday into an own class (gaplessaudioplayer)
added two new menu entrys: toggle sound + toggle ambient sound (2. very useful!)
Diffstat (limited to 'pacman-c++/client.h')
| -rw-r--r-- | pacman-c++/client.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pacman-c++/client.h b/pacman-c++/client.h index 2d507e2..2583826 100644 --- a/pacman-c++/client.h +++ b/pacman-c++/client.h | |||
| @@ -12,16 +12,26 @@ public: | |||
| 12 | Client(); | 12 | Client(); |
| 13 | QSettings *settings(); | 13 | QSettings *settings(); |
| 14 | 14 | ||
| 15 | public slots: | 15 | signals: |
| 16 | void toggleSound() const; | 16 | /* signal gets emitted if mute buttons should update their checked-state */ |
| 17 | void mutedChanged(bool) const; | 17 | void setMuteActionsChecked(bool enabled); |
| 18 | |||
| 19 | private slots: | ||
| 20 | /* toggles sound */ | ||
| 21 | void toggleSound(); | ||
| 22 | /* mute was changed (emitted by audioplayer/phonon) */ | ||
| 23 | void mutedChanged(bool); | ||
| 24 | /* enable ambient (emitted by action) */ | ||
| 25 | void enableAmbientSound(bool); | ||
| 18 | 26 | ||
| 19 | private: | 27 | private: |
| 20 | void createMenu(); | 28 | void createMenu(); |
| 29 | QPixmap soundIcon(bool enabled = true) const; | ||
| 21 | 30 | ||
| 22 | private: | 31 | private: |
| 23 | MainWidget *m_mainWidget; | 32 | MainWidget *m_mainWidget; |
| 24 | QSettings *m_settings; | 33 | QSettings *m_settings; |
| 34 | bool m_ambientMuted; | ||
| 25 | }; | 35 | }; |
| 26 | 36 | ||
| 27 | #endif // CLIENT_H | 37 | #endif // CLIENT_H |
