summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/XMPPEvents/EventController.h')
-rw-r--r--Swift/Controllers/XMPPEvents/EventController.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/Swift/Controllers/XMPPEvents/EventController.h b/Swift/Controllers/XMPPEvents/EventController.h
index 026d03e..35938ac 100644
--- a/Swift/Controllers/XMPPEvents/EventController.h
+++ b/Swift/Controllers/XMPPEvents/EventController.h
@@ -1,27 +1,26 @@
1/* 1/*
2 * Copyright (c) 2010 Isode Limited. 2 * Copyright (c) 2010-2015 Isode Limited.
3 * All rights reserved. 3 * All rights reserved.
4 * See the COPYING file for more information. 4 * See the COPYING file for more information.
5 */ 5 */
6 6
7#ifndef SWIFTEN_EventController_H 7#pragma once
8#define SWIFTEN_EventController_H
9 8
9#include <vector>
10 10
11#include "Swiften/Base/boost_bsignals.h"
12#include <boost/shared_ptr.hpp> 11#include <boost/shared_ptr.hpp>
13#include <vector>
14 12
15#include "Swift/Controllers/XMPPEvents/StanzaEvent.h" 13#include <Swiften/Base/boost_bsignals.h>
16#include "Swift/Controllers/XMPPEvents/MessageEvent.h" 14
15#include <Swift/Controllers/XMPPEvents/MessageEvent.h>
16#include <Swift/Controllers/XMPPEvents/StanzaEvent.h>
17 17
18namespace Swift { 18namespace Swift {
19 typedef std::vector<boost::shared_ptr<StanzaEvent> > EventList; 19 typedef std::vector<boost::shared_ptr<StanzaEvent> > EventList;
20 class EventController { 20 class EventController {
21 public: 21 public:
22
23 EventController(); 22 EventController();
24 ~EventController(); 23 ~EventController();
25 24
26 void handleIncomingEvent(boost::shared_ptr<StanzaEvent> sourceEvent); 25 void handleIncomingEvent(boost::shared_ptr<StanzaEvent> sourceEvent);
27 boost::signal<void (int)> onEventQueueLengthChange; 26 boost::signal<void (int)> onEventQueueLengthChange;
@@ -33,8 +32,5 @@ namespace Swift {
33 private: 32 private:
34 void handleEventConcluded(boost::shared_ptr<StanzaEvent> event); 33 void handleEventConcluded(boost::shared_ptr<StanzaEvent> event);
35 EventList events_; 34 EventList events_;
36 }; 35 };
37} 36}
38#endif
39
40