summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client.h
diff options
context:
space:
mode:
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