summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/WhiteboardController.h')
-rw-r--r--Swift/Controllers/WhiteboardController.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Swift/Controllers/WhiteboardController.h b/Swift/Controllers/WhiteboardController.h
new file mode 100644
index 0000000..aa1ace3
--- /dev/null
+++ b/Swift/Controllers/WhiteboardController.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Mateusz Piękos
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <boost/shared_ptr.hpp>
+
+#include <Swiften/Client/StanzaChannel.h>
+#include "Swiften/JID/JID.h"
+#include "Swift/Controllers/XMPPEvents/MessageEvent.h"
+
+namespace Swift {
+ class WhiteboardWindow;
+ class WhiteboardWindowFactory;
+
+ class WhiteboardController {
+ public:
+ WhiteboardController(StanzaChannel* stanzaChannel, const JID& toJID, WhiteboardWindowFactory* whiteboardWindowFactory);
+ ~WhiteboardController();
+ void handleIncomingMessage(boost::shared_ptr<MessageEvent> message);
+ private:
+ void handleItemChange(std::string item);
+ WhiteboardWindow* whiteboardWindow_;
+ StanzaChannel* stanzaChannel_;
+ JID toJID_;
+ };
+}
+