summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client.h
blob: 7030683c598627ea2dd634d0fa2c64958c54f948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef CLIENT_H
#define CLIENT_H

#include "mainwidget.h"
#include <QtGui>

class Client
  : public QMainWindow
{
  Q_OBJECT
public:
  Client();
  QSettings *settings();

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);
  void showAbout();

private:
  void createMenu();
  QPixmap soundIcon(bool enabled = true) const;

private:
  MainWidget *m_mainWidget;
  QSettings *m_settings;
  bool m_ambientMuted;
};

#endif // CLIENT_H