diff options
Diffstat (limited to 'Swift/Controllers/EventController.h')
-rw-r--r-- | Swift/Controllers/EventController.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Swift/Controllers/EventController.h b/Swift/Controllers/EventController.h new file mode 100644 index 0000000..ab161af --- /dev/null +++ b/Swift/Controllers/EventController.h @@ -0,0 +1,24 @@ +#ifndef SWIFTEN_EventController_H +#define SWIFTEN_EventController_H + + +#include <boost/signals.hpp> +#include <boost/shared_ptr.hpp> +#include <vector> + +#include "Swiften/Events/MessageEvent.h" + +namespace Swift { + class EventController { + public: + void handleIncomingEvent(boost::shared_ptr<MessageEvent> event); + boost::signal<void (int)> onEventQueueLengthChange; + + private: + void handleEventRead(boost::shared_ptr<MessageEvent> event); + std::vector<boost::shared_ptr<MessageEvent> > events_; + }; +} +#endif + + |