kalarm/lib
DailyTimer Class Reference
#include <synchtimer.h>
Inheritance diagram for DailyTimer:

Detailed Description
DailyTimer is an application-wide timer synchronised to a specified time of day, local time.Daily timers come in two flavours: fixed, which can only be accessed through static methods, and variable, whose time can be adjusted and which are accessed through non-static methods.
- Author:
- David Jarvie <software@astrojar.org.uk>
Definition at line 115 of file synchtimer.h.
Public Member Functions | |
void | changeTime (const QTime &newTimeOfDay, bool triggerMissed=true) |
QTime | timeOfDay () const |
Static Public Member Functions | |
static void | connect (const QTime &timeOfDay, QObject *receiver, const char *member) |
static void | disconnect (const QTime &timeOfDay, QObject *receiver, const char *member=0) |
Protected Slots | |
virtual void | slotTimer () |
Protected Member Functions | |
DailyTimer (const QTime &, bool fixed) | |
virtual void | start () |
Static Protected Member Functions | |
static DailyTimer * | fixedInstance (const QTime &timeOfDay, bool create=true) |
Constructor & Destructor Documentation
|
Construct an instance. The constructor is protected to ensure that for variable timers, only derived classes can construct instances. This ensures that multiple timers are not created for the same use. Definition at line 124 of file synchtimer.cpp. |
Member Function Documentation
|
Change the time at which this variable timer triggers.
Definition at line 163 of file synchtimer.cpp. |
|
Connect to the timer signal which triggers at the given fixed time of day. A new timer is created if necessary.
Definition at line 126 of file synchtimer.h. |
|
Disconnect from the timer signal which triggers at the given fixed time of day. If there are no remaining connections to that timer, it is destroyed.
Definition at line 150 of file synchtimer.cpp. |
|
Return the instance which triggers at the specified fixed time of day, optionally creating a new instance if necessary.
Definition at line 138 of file synchtimer.cpp. |
|
Return the current time of day at which this variable timer triggers.
Definition at line 144 of file synchtimer.h. |
The documentation for this class was generated from the following files: