diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-19 09:17:18 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-19 15:10:33 (GMT) |
commit | 580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e (patch) | |
tree | c823ef404a7a70c261248c41530827caab07fc52 /Swift/Controllers/UIInterfaces | |
parent | 5d9a6702c244eb4ab30ce96465d9deceedfe955a (diff) | |
download | swift-580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e.zip swift-580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e.tar.bz2 |
Start of event viewer.
Creates a basic event viewer framework, and plugs it into the Swift controllers, so that messages are displayed (in a very ugly way). Still a long way to go.
Diffstat (limited to 'Swift/Controllers/UIInterfaces')
-rw-r--r-- | Swift/Controllers/UIInterfaces/EventWindow.h | 12 | ||||
-rw-r--r-- | Swift/Controllers/UIInterfaces/EventWindowFactory.h | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Swift/Controllers/UIInterfaces/EventWindow.h b/Swift/Controllers/UIInterfaces/EventWindow.h new file mode 100644 index 0000000..6cc5bbd --- /dev/null +++ b/Swift/Controllers/UIInterfaces/EventWindow.h @@ -0,0 +1,12 @@ +#pragma once + +#include "boost/shared_ptr.hpp" +#include "Swiften/Events/Event.h" + +namespace Swift { + class EventWindow { + public: + virtual void addEvent(boost::shared_ptr<Event> event, bool active) = 0; + virtual void removeEvent(boost::shared_ptr<Event> event) = 0; + }; +} diff --git a/Swift/Controllers/UIInterfaces/EventWindowFactory.h b/Swift/Controllers/UIInterfaces/EventWindowFactory.h new file mode 100644 index 0000000..3dcc30a --- /dev/null +++ b/Swift/Controllers/UIInterfaces/EventWindowFactory.h @@ -0,0 +1,17 @@ +#pragma once + +namespace Swift { + class EventWindow; + + class EventWindowFactory { + public: + virtual ~EventWindowFactory() {}; + /** + * Transfers ownership of result. + */ + virtual EventWindow* createEventWindow() = 0; + + }; +} + + |