summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-14 02:37:31 +0200
committermanuel <manuel@mausz.at>2011-04-14 02:37:31 +0200
commitb18385a95f25e13c767244b494f31bd4fc238143 (patch)
treeaf389057a2d4a03565f70186d7c1d2e49b95828f /pacman-c++/client.h
parent3d20638fa8e295271ce38953ad1c657d9275bd99 (diff)
downloadfoop-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.h16
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
15public slots: 15signals:
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
19private 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
19private: 27private:
20 void createMenu(); 28 void createMenu();
29 QPixmap soundIcon(bool enabled = true) const;
21 30
22private: 31private:
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