summaryrefslogtreecommitdiffstats
blob: ab161af1bf4e55a04f341580087ca4b03ee9f138 (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
#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