gloox  1.0.28
eventhandler.h
1 /*
2  Copyright (c) 2008-2023 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__
An base class for event handlers.
Definition: eventhandler.h:29
virtual void handleEvent(const Event &event)=0
virtual ~EventHandler()
Definition: eventhandler.h:35
A base class for events.
Definition: event.h:29
The namespace for the gloox library.
Definition: adhoc.cpp:28