summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-05 11:01:48 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-05 11:01:48 (GMT)
commit348a4f13c5f00a27ad5c7e4f392948de7cc454e3 (patch)
tree43392423f5939190075d62aaae1478f52571af5c /Swift/Controllers/SoundEventController.h
parent326cd32e2c9e3ec9bac54f5bb952928680c93749 (diff)
downloadswift-348a4f13c5f00a27ad5c7e4f392948de7cc454e3.zip
swift-348a4f13c5f00a27ad5c7e4f392948de7cc454e3.tar.bz2
Persist Sound Toggleness.
Resolves: #192
Diffstat (limited to 'Swift/Controllers/SoundEventController.h')
-rw-r--r--Swift/Controllers/SoundEventController.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/Controllers/SoundEventController.h b/Swift/Controllers/SoundEventController.h
index 34499d4..e9a853f 100644
--- a/Swift/Controllers/SoundEventController.h
+++ b/Swift/Controllers/SoundEventController.h
@@ -3,7 +3,7 @@
#include <boost/shared_ptr.hpp>
#include "Swiften/Events/StanzaEvent.h"
-
+#include "Swiften/Settings/SettingsProvider.h"
#include "Swift/Controllers/UIEvents/UIEvent.h"
namespace Swift {
@@ -12,8 +12,9 @@ namespace Swift {
class UIEventStream;
class SoundEventController {
public:
- SoundEventController(EventController* eventController, SoundPlayer* soundPlayer, bool playSounds, UIEventStream* uiEvents);
+ SoundEventController(EventController* eventController, SoundPlayer* soundPlayer, SettingsProvider* settings, UIEventStream* uiEvents);
void setPlaySounds(bool playSounds);
+ bool getSoundEnabled() {return playSounds_;};
private:
void handleUIEvent(boost::shared_ptr<UIEvent> event);
void handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent> event);
@@ -21,5 +22,6 @@ namespace Swift {
SoundPlayer* soundPlayer_;
bool playSounds_;
UIEventStream* uiEvents_;
+ SettingsProvider* settings_;
};
}