diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-05 18:24:02 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-05 18:24:02 (GMT) |
commit | bfeca3cc938e325bf2cc2d9105c719feb1fe28ee (patch) | |
tree | 8089a181b678912432f0ae4a61759b92566c62fb /Swift/Controllers/EventNotifier.h | |
parent | 6cdd48b30526761f5c6365496e30580ed3bd8a82 (diff) | |
download | swift-contrib-bfeca3cc938e325bf2cc2d9105c719feb1fe28ee.zip swift-contrib-bfeca3cc938e325bf2cc2d9105c719feb1fe28ee.tar.bz2 |
Create 'Enable notifications' menu on Linux.
I've not actually tested this on Linux...
Resolves: #594
Diffstat (limited to 'Swift/Controllers/EventNotifier.h')
-rw-r--r-- | Swift/Controllers/EventNotifier.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Swift/Controllers/EventNotifier.h b/Swift/Controllers/EventNotifier.h index 8b4dc23..ae01f24 100644 --- a/Swift/Controllers/EventNotifier.h +++ b/Swift/Controllers/EventNotifier.h @@ -11,6 +11,7 @@ #include "SwifTools/Notifier/Notifier.h" #include "Swiften/Base/boost_bsignals.h" #include "Swift/Controllers/XMPPEvents/StanzaEvent.h" +#include "Swift/Controllers/UIEvents/UIEvent.h" #include "Swiften/JID/JID.h" namespace Swift { @@ -19,10 +20,12 @@ namespace Swift { class AvatarManager; class NickResolver; class JID; + class UIEventStream; + class SettingsProvider; class EventNotifier { public: - EventNotifier(EventController* eventController, Notifier* notifier, AvatarManager* avatarManager, NickResolver* nickResolver); + EventNotifier(EventController* eventController, Notifier* notifier, AvatarManager* avatarManager, NickResolver* nickResolver, UIEventStream* uiEvents, SettingsProvider* settings); ~EventNotifier(); boost::signal<void (const JID&)> onNotificationActivated; @@ -30,11 +33,14 @@ namespace Swift { private: void handleEventAdded(boost::shared_ptr<StanzaEvent>); void handleNotificationActivated(JID jid); + void handleUIEvent(boost::shared_ptr<UIEvent> event); private: EventController* eventController; Notifier* notifier; AvatarManager* avatarManager; NickResolver* nickResolver; + UIEventStream* uiEvents; + SettingsProvider* settings; }; } |