1 #ifndef ERIS_TIMED_EVENT_SERVICE_H
2 #define ERIS_TIMED_EVENT_SERVICE_H
4 #include <wfmath/timestamp.h>
6 #include <sigc++/signal.h>
34 virtual const WFMath::TimeStamp&
due()
const = 0;
42 return a->
due() < b->
due();
58 unsigned long tick(
bool idle =
false);
77 typedef std::set<TimedEvent*, EventsByDueOrdering> TimedEventsByDue;
78 TimedEventsByDue m_events;
83 #endif // of ERIS_TIMED_EVENT_SERVICE_H
Abstract interface for things which occur after a period of time.
Definition: TimedEventService.h:16
Definition: TimedEventService.h:37
virtual void expired()=0
Implement the expiry behaviour of this object.
virtual const WFMath::TimeStamp & due() const =0
The time value when this event is due.
sigc::signal< void > Idle
Signal emitted when tick is idle.
Definition: TimedEventService.h:71
unsigned long tick(bool idle=false)
Tick all the timed events registered with the service instance.
Definition: TimedEventService.cpp:39
Definition: TimedEventService.h:46