![]() |
IEventHandler Class ReferenceTimer event handler pure virtual base class.
More...
|
Public Member Functions | |
virtual | ~IEventHandler () |
virtual bool | GetTimeUntilNextEvent (struct timeval *)=0 |
Return time left until next event. | |
virtual void | CheckEvents ()=0 |
Will fire events whose time has come. | |
virtual long | AddEvent (IEventOwner *, long sec, long usec)=0 |
Schedule event for an owner. | |
virtual void | ClearEvents (IEventOwner *)=0 |
Clear all events for a specific owner. | |
virtual void | RemoveEvent (IEventOwner *, long)=0 |
Remove one specific event for an event owner. |
Definition at line 46 of file IEventHandler.h.
virtual IEventHandler::~IEventHandler | ( | ) | [inline, virtual] |
virtual bool IEventHandler::GetTimeUntilNextEvent | ( | struct timeval * | ) | [pure virtual] |
Return time left until next event.
tv | Time struct that will be filled by method |
Implemented in EventHandler.
virtual void IEventHandler::CheckEvents | ( | ) | [pure virtual] |
virtual long IEventHandler::AddEvent | ( | IEventOwner * | , | |
long | sec, | |||
long | usec | |||
) | [pure virtual] |
Schedule event for an owner.
from | Event owner | |
sec | Seconds until event | |
usec | Microseconds until event |
Implemented in EventHandler.
Referenced by IEventOwner::AddEvent().
virtual void IEventHandler::ClearEvents | ( | IEventOwner * | ) | [pure virtual] |
Clear all events for a specific owner.
Implemented in EventHandler.
Referenced by IEventOwner::ClearEvents(), and IEventOwner::~IEventOwner().
virtual void IEventHandler::RemoveEvent | ( | IEventOwner * | , | |
long | ||||
) | [pure virtual] |
Remove one specific event for an event owner.
Implemented in EventHandler.
Referenced by IEventOwner::RemoveEvent().