summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/client/client.h')
-rw-r--r--pacman-c++/client/client.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/pacman-c++/client/client.h b/pacman-c++/client/client.h
new file mode 100644
index 0000000..9b231ca
--- /dev/null
+++ b/pacman-c++/client/client.h
@@ -0,0 +1,41 @@
1#ifndef CLIENT_H
2#define CLIENT_H
3
4#include "mainwidget.h"
5#include <QtGui>
6
7class Client
8 : public QMainWindow
9{
10 Q_OBJECT
11public:
12 Client();
13 QSettings *settings();
14
15signals:
16 /* signal gets emitted if mute buttons should update their checked-state */
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);
26 void showAbout();
27 void showConnectDialog();
28 void onAcceptConnectDialog();
29
30private:
31 void createMenu();
32 QPixmap soundIcon(bool enabled = true) const;
33
34private:
35 MainWidget *m_mainWidget;
36 QDialog *m_dialog;
37 QSettings *m_settings;
38 bool m_ambientMuted;
39};
40
41#endif // CLIENT_H