mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-03 23:02:11 +01:00
31 lines
461 B
C
31 lines
461 B
C
|
#ifndef JEZUK_EVENTS_EVENTLISTENER_H
|
||
|
#define JEZUK_EVENTS_EVENTLISTENER_H
|
||
|
////////////////////////////
|
||
|
// C++ DOM definition
|
||
|
//
|
||
|
// $Id$
|
||
|
////////////////////////////
|
||
|
|
||
|
namespace DOM
|
||
|
{
|
||
|
|
||
|
namespace Events
|
||
|
{
|
||
|
|
||
|
template<class stringT> class Event;
|
||
|
|
||
|
template<class stringT>
|
||
|
class EventListener
|
||
|
{
|
||
|
public:
|
||
|
void handleEvent(Event<stringT>& event) = 0;
|
||
|
|
||
|
protected:
|
||
|
virtual ~EventListener() { }
|
||
|
}; // class EventListener
|
||
|
|
||
|
} // namespace Events
|
||
|
|
||
|
} // namespace DOM
|
||
|
|
||
|
#endif
|