14 #ifndef EVENTDISPATCHER_H__
15 #define EVENTDISPATCHER_H__
55 void dispatch(
const Event& event,
const std::string& context,
bool remove );
78 typedef std::multimap<const std::string, EventHandler*> ContextHandlerMap;
79 typedef std::multimap<Event::EventType, EventHandler*> TypeHandlerMap;
81 ContextHandlerMap m_contextHandlers;
82 TypeHandlerMap m_typeHandlers;
88 #endif // EVENTDISPATCHER_H__
void registerEventHandler(EventHandler *eh, const std::string &context)
An base class for event handlers.
The namespace for the gloox library.
void removeEventHandler(EventHandler *eh)
void dispatch(const Event &event, const std::string &context, bool remove)
virtual ~EventDispatcher()