12345678910111213141516171819202122 |
- #pragma once
- #include "EventListener.h"
- #include <Trie.h>
- class EventThrower : public virtual Framework::ReferenceCounter
- {
- private:
- Framework::Trie<EventListener> *listeners;
- protected:
- void throwEvent( Event *event );
- public:
- EventThrower();
- ~EventThrower();
- void registerEventListener( Framework::Text eventName, EventListener *listener );
- void removeEventListener( Framework::Text eventName, EventListener *listener );
- void removeEventListener( EventListener *listener );
- };
|