summaryrefslogtreecommitdiffstats
blob: c5c924b54701a1392a0c756a65197633645d1f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;
			boost::signal<void (boost::shared_ptr<MessageEvent>)> onEventQueueEventAdded;

		private:
			void handleEventRead(boost::shared_ptr<MessageEvent> event);
			std::vector<boost::shared_ptr<MessageEvent> > events_;
	};
}
#endif