diff options
Diffstat (limited to 'Swift/Controllers/EventNotifier.h')
-rw-r--r-- | Swift/Controllers/EventNotifier.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Swift/Controllers/EventNotifier.h b/Swift/Controllers/EventNotifier.h new file mode 100644 index 0000000..49c2c6c --- /dev/null +++ b/Swift/Controllers/EventNotifier.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <boost/shared_ptr.hpp> + +#include "SwifTools/Notifier/Notifier.h" +#include "Swiften/Base/boost_bsignals.h" +#include "Swiften/Events/StanzaEvent.h" +#include "Swiften/JID/JID.h" + +namespace Swift { + class EventController; + class Notifier; + class AvatarManager; + class NickResolver; + class JID; + + class EventNotifier { + public: + EventNotifier(EventController* eventController, Notifier* notifier, AvatarManager* avatarManager, NickResolver* nickResolver); + ~EventNotifier(); + + boost::signal<void (const JID&)> onNotificationActivated; + + private: + void handleEventAdded(boost::shared_ptr<StanzaEvent>); + void handleNotificationActivated(JID jid); + + private: + EventController* eventController; + Notifier* notifier; + AvatarManager* avatarManager; + NickResolver* nickResolver; + }; +} |