diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-05-24 16:29:25 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-06-19 20:21:53 (GMT) |
commit | 250ba9152e6b09e1654e18040cffa0d1c31434ec (patch) | |
tree | 8ad0a61f60705a4ea59bb8d75bf83fc0d545986f /Swift/Controllers/HistoryController.h | |
parent | 6080dd4915801b45598268c805b62aa6c723a3a3 (diff) | |
download | swift-contrib-250ba9152e6b09e1654e18040cffa0d1c31434ec.zip swift-contrib-250ba9152e6b09e1654e18040cffa0d1c31434ec.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.h | 31 |
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_; + }; +} |