IEventRouter Class

class IEventRouter: public IRefCount, public IQueryGuid

Interface for routing events to event listeners. The RouteEvent method takes a pointer to an event and returns TRUE if the event was handled by one or more listeners or FALSE if the event was not handled.

Defined in: EventRouter.h

Class Members

virtual bool  RouteEvent(IEvent* pIEvent)

Routes event objects to event listeners.

virtual bool  AddListener(IEventListener* pIListener)

Add an event listener to the router.

virtual bool  RemoveListener(IEventListener* pIListener)

Remove an event listener from the router.