summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-09-15 19:46:15 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-09-15 19:46:15 (GMT)
commitd0367c8477ad2e9993ed5ea6acb2444f21f8f971 (patch)
treea528dd7725271179e8245ef3875e03aedde23738 /Swift/Controllers/EventNotifier.h
parent8e5d1a11824d7a0900feb44ed5b5464d8d94ab2a (diff)
downloadswift-d0367c8477ad2e9993ed5ea6acb2444f21f8f971.zip
swift-d0367c8477ad2e9993ed5ea6acb2444f21f8f971.tar.bz2
Added EventNotifier.
Diffstat (limited to 'Swift/Controllers/EventNotifier.h')
-rw-r--r--Swift/Controllers/EventNotifier.h40
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;
+ };
+}