37 #ifndef ASYNC_TIMER_INCLUDED 38 #define ASYNC_TIMER_INCLUDED 47 #include <sigc++/sigc++.h> 116 class Timer :
public sigc::trackable
173 int timeout(
void)
const {
return m_timeout_ms; }
sigc::signal< void, Timer * > expired
A signal that is emitted when the timer expires.
void reset(void)
Reset (restart) the timer.
void setEnable(bool do_enable)
Enable or disable the timer.
int timeout(void) const
Return the setting of the timeout value.
A timer that restarts itself every time it expires.
A class that produces timer events.
A timer that expires once.
Timer(int timeout_ms=0, Type type=TYPE_ONESHOT, bool enabled=true)
Constructor.
Namespace for the asynchronous programming classes.
Type type(void) const
Return the type of this timer.
Type
The type of the timer.
void setTimeout(int timeout_ms)
Set (change) the timeout value.
bool isEnabled(void) const
Check if the timer is enabled.