summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client/client.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-05-05 00:57:07 +0200
committermanuel <manuel@mausz.at>2011-05-05 00:57:07 +0200
commitce48af53646cd9e7ec762fc1ac176b3aa620b11d (patch)
treef8fbf2cae8c7d0cbac2696a8f4cf94410bfb4928 /pacman-c++/client/client.h
parente54ccad07e256ba877bd41d70bd358bd0085bd1e (diff)
downloadfoop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.tar.gz
foop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.tar.bz2
foop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.zip
- refactorized the whole project and made a few subprojects
- replaced tcp with enet - added connect dialog - some smaller bugfixes
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