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