summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-05-24 16:29:25 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:45:27 (GMT)
commitc09901d69a0b606d8f16a3496c0c4f24c3c7aa1b (patch)
treedc6b472d914413b372a6cefdab4cef2eae25aafb /Swift/Controllers/HistoryController.h
parentf799cce739f89225258dfbd2e0099e8a71d99af4 (diff)
downloadswift-contrib-c09901d69a0b606d8f16a3496c0c4f24c3c7aa1b.zip
swift-contrib-c09901d69a0b606d8f16a3496c0c4f24c3c7aa1b.tar.bz2
Added History window based code: controller, events, interface and menu entry.
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r--Swift/Controllers/HistoryController.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h
new file mode 100644
index 0000000..465b037
--- /dev/null
+++ b/Swift/Controllers/HistoryController.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Catalin Badea
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swiften/Base/boost_bsignals.h"
+#include <boost/bind.hpp>
+#include <boost/shared_ptr.hpp>
+
+#include "Swift/Controllers/UIEvents/UIEventStream.h"
+
+namespace Swift {
+ class HistoryWindowFactory;
+ class HistoryWindow;
+
+ class HistoryController {
+ public:
+ HistoryController(UIEventStream* uiEventStream, HistoryWindowFactory* historyWindowFactory);
+ ~HistoryController();
+
+ private:
+ void handleUIEvent(boost::shared_ptr<UIEvent> event);
+
+ private:
+ HistoryWindowFactory* historyWindowFactory_;
+ HistoryWindow* historyWindow_;
+ };
+}