From b18385a95f25e13c767244b494f31bd4fc238143 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 14 Apr 2011 02:37:31 +0200 Subject: encapsulate gapless audioplayer commit from yesterday into an own class (gaplessaudioplayer) added two new menu entrys: toggle sound + toggle ambient sound (2. very useful!) --- pacman-c++/client.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'pacman-c++/client.h') 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: Client(); QSettings *settings(); -public slots: - void toggleSound() const; - void mutedChanged(bool) const; +signals: + /* signal gets emitted if mute buttons should update their checked-state */ + void setMuteActionsChecked(bool enabled); + +private slots: + /* toggles sound */ + void toggleSound(); + /* mute was changed (emitted by audioplayer/phonon) */ + void mutedChanged(bool); + /* enable ambient (emitted by action) */ + void enableAmbientSound(bool); private: void createMenu(); + QPixmap soundIcon(bool enabled = true) const; private: MainWidget *m_mainWidget; QSettings *m_settings; + bool m_ambientMuted; }; #endif // CLIENT_H -- cgit v1.2.3