korganizer
DateChecker Class Reference
List of all members.Detailed Description
Definition at line 37 of file datechecker.h.
Public Types | |
enum | RolloverType { None, FollowDay, FollowMonth } |
Signals | |
void | dayPassed (const QDate &) |
void | monthPassed (const QDate &) |
Public Member Functions | |
DateChecker (QObject *parent=0, const char *name=0) | |
~DateChecker () | |
void | enableRollover (RolloverType) |
Protected Slots | |
void | possiblyPastMidnight () |
void | passedMidnight () |
Member Enumeration Documentation
The DateChecker automatically checks for the passage of midnight.
If rollover type is set to None, no signals are emitted and no processing is done. With rollover set to FollowDay, the day highlighter changes at midnight and dayPassed() is emitted. With FollowMonth, it has the same effect as FollowDay but also adjusts the month that is visible and emits monthPassed() when the month changes.
Definition at line 55 of file datechecker.h.
Member Function Documentation
void DateChecker::possiblyPastMidnight | ( | ) | [protected, slot] |
Called regularly to see if we need to update the view wrt.
the today box and the month box. Only important if you leave KOrganizer idle for long periods of time.
Until we have a reliable way of setting QTimers to go off at a particular wall-clock time, we need this, which calls passedMidnight() at the right moments.
Definition at line 79 of file datechecker.cpp.
void DateChecker::passedMidnight | ( | ) | [protected, slot] |
Handles updating the view when midnight has come by due to idle time.
Definition at line 67 of file datechecker.cpp.
The documentation for this class was generated from the following files: