#ifndef CLIENT_H #define CLIENT_H #include "mainwidget.h" #include 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