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/EventController.h | |
parent | 5d9a6702c244eb4ab30ce96465d9deceedfe955a (diff) | |
download | swift-contrib-580d3d49ea3df7bb1c00cb1052203d17ccaa9a8e.zip swift-contrib-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/EventController.h')
-rw-r--r-- | Swift/Controllers/EventController.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Swift/Controllers/EventController.h b/Swift/Controllers/EventController.h index c5c924b..482be58 100644 --- a/Swift/Controllers/EventController.h +++ b/Swift/Controllers/EventController.h @@ -6,18 +6,20 @@ #include <boost/shared_ptr.hpp> #include <vector> +#include "Swiften/Events/Event.h" #include "Swiften/Events/MessageEvent.h" namespace Swift { class EventController { public: - void handleIncomingEvent(boost::shared_ptr<MessageEvent> event); + EventController(); + void handleIncomingEvent(boost::shared_ptr<Event> sourceEvent); boost::signal<void (int)> onEventQueueLengthChange; - boost::signal<void (boost::shared_ptr<MessageEvent>)> onEventQueueEventAdded; + boost::signal<void (boost::shared_ptr<Event>)> onEventQueueEventAdded; private: - void handleEventRead(boost::shared_ptr<MessageEvent> event); - std::vector<boost::shared_ptr<MessageEvent> > events_; + void handleEventConcluded(boost::shared_ptr<Event> event); + std::vector<boost::shared_ptr<Event> > events_; }; } #endif |