diff options
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 |
