summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-05 13:49:26 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-05 13:49:26 (GMT)
commit21e358a55e6eee1036fe95993c5715382d08c0c8 (patch)
treec512cb0b6640c1fee942cf55fa76954a8100568c /Swift/Controllers/WhiteboardManager.h
parentdfeab948530982d10a7754a93a37cd8422888378 (diff)
downloadswift-contrib-21e358a55e6eee1036fe95993c5715382d08c0c8.zip
swift-contrib-21e358a55e6eee1036fe95993c5715382d08c0c8.tar.bz2
Moved whiteboard handling to WhiteboardManager
Diffstat (limited to 'Swift/Controllers/WhiteboardManager.h')
-rw-r--r--Swift/Controllers/WhiteboardManager.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/Swift/Controllers/WhiteboardManager.h b/Swift/Controllers/WhiteboardManager.h
new file mode 100644
index 0000000..5876adf
--- /dev/null
+++ b/Swift/Controllers/WhiteboardManager.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2012 Mateusz Piękos
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+
+#pragma once
+
+#include <map>
+
+#include <boost/shared_ptr.hpp>
+
+#include <Swiften/JID/JID.h>
+
+#include <Swift/Controllers/UIEvents/UIEventStream.h>
+#include <Swift/Controllers/UIInterfaces/WhiteboardWindowFactory.h>
+#include <Swift/Controllers/UIInterfaces/WhiteboardWindow.h>
+
+namespace Swift {
+ class StanzaChannel;
+
+ class WhiteboardManager {
+ public:
+ WhiteboardManager(WhiteboardWindowFactory* whiteboardWindowFactory, UIEventStream* uiEventStream, StanzaChannel* stanzaChannel);
+ ~WhiteboardManager();
+
+ private:
+ void handleUIEvent(boost::shared_ptr<UIEvent> event);
+
+ private:
+ std::map<JID, WhiteboardWindow*> whiteboardWindows_;
+ UIEventStream* uiEventStream_;
+ WhiteboardWindowFactory* whiteboardWindowFactory_;
+ boost::bsignals::scoped_connection uiEventConnection_;
+ StanzaChannel* stanzaChannel_;
+ };
+}