diff options
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 |