Line | |
---|
1 | /*! |
---|
2 | * @file event_listener.h |
---|
3 | * Definition of an event listener base class |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _EVENT_LISTENER_H |
---|
8 | #define _EVENT_LISTENER_H |
---|
9 | |
---|
10 | #include "base_object.h" |
---|
11 | #include "event.h" |
---|
12 | #include "event_def.h" |
---|
13 | |
---|
14 | |
---|
15 | //! A class for event listener |
---|
16 | class EventListener : virtual public BaseObject { |
---|
17 | |
---|
18 | public: |
---|
19 | EventListener(); |
---|
20 | virtual ~EventListener(); |
---|
21 | |
---|
22 | /** |
---|
23 | * abstract function that processes events from the handler |
---|
24 | * @param event: the event |
---|
25 | */ |
---|
26 | virtual void process(const Event &event) = NULL; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif /* _EVENT_LISTENER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.