gloox  1.0.16
eventhandler.h
1 /*
2  Copyright (c) 2008-2015 by Jakob Schröter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 #ifndef EVENTHANDLER_H__
15 #define EVENTHANDLER_H__
16 
17 namespace gloox
18 {
19 
20  class Event;
21 
29  {
30 
31  public:
35  virtual ~EventHandler() {}
36 
41  virtual void handleEvent( const Event& event ) = 0;
42 
43  };
44 
45 }
46 
47 #endif // EVENTHANDLER_H__
A base class for events.
Definition: event.h:28
An base class for event handlers.
Definition: eventhandler.h:28
The namespace for the gloox library.
Definition: adhoc.cpp:27
virtual ~EventHandler()
Definition: eventhandler.h:35
virtual void handleEvent(const Event &event)=0