Go to the documentation of this file.
36 #ifndef ASYNC_AT_TIMER_INCLUDED
37 #define ASYNC_AT_TIMER_INCLUDED
47 #include <sigc++/sigc++.h>
135 class AtTimer :
public sigc::trackable
149 AtTimer(
struct tm &tm,
bool do_start=
true);
200 sigc::signal<void, AtTimer *>
expired;
206 struct timeval m_expire_at;
211 int msecToTimeout(
void);
212 void onTimerExpired(
Timer *t);
A timer that times out at a specified absolute time.
A class that produces timer events.
Contains a single shot or periodic timer that emits a signal on timeout.
bool start(void)
Start the timer.
~AtTimer(void)
Destructor.
bool setTimeout(time_t t)
Set the timeout time.
sigc::signal< void, AtTimer * > expired
A signal that is emitted when the timer expires.
Namespace for the asynchronous programming classes.
void stop(void)
Stop the timer.
void setExpireOffset(int offset_ms)
Set the expire offset.
AtTimer(void)
Default constructor.