4 #include <Eris/TimedEventService.h>
6 #include <sigc++/trackable.h>
7 #include <sigc++/signal.h>
34 void extend(
unsigned long msec);
41 void reset(
unsigned long msec);
54 virtual const WFMath::TimeStamp&
due()
const
Abstract interface for things which occur after a period of time.
Definition: TimedEventService.h:16
bool isExpired() const
test whether or not the timeout has fired or not
Definition: Timeout.cpp:38
sigc::signal< void > Expired
The timeout signal.
Definition: Timeout.h:50
Timeout & operator=(const Timeout &t)
assignment operator
void cancel()
cancel the Timeout immediately
Definition: Timeout.cpp:32
Definition: Account.cpp:35
bool _fired
flag if the timeout has expired
Definition: Timeout.h:60
virtual const WFMath::TimeStamp & due() const
The time value when this event is due.
Definition: Timeout.h:54
Timeout(unsigned long milli)
standard constructor for new timeouts
Definition: Timeout.cpp:20
Timeout.
Definition: Timeout.h:12
WFMath::TimeStamp _due
interval at which the timeout is due
Definition: Timeout.h:59
void extend(unsigned long msec)
Extend the timeout termination by the specified time.
Definition: Timeout.cpp:52
void reset(unsigned long msec)
reset the timeout to the specified time, and reset the 'expired' flag.
Definition: Timeout.cpp:43
virtual void expired()
Implement the expiry behaviour of this object.
Definition: Timeout.cpp:57