datechecker.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef DATECHECKER_H
00026
#define DATECHECKER_H
00027
00028
#include <qobject.h>
00029
#include <qdatetime.h>
00030
00031
class QTimer;
00032
00033
class KCalendarSystem;
00034
00035
class NavigatorBar;
00036
00037
class DateChecker:
public QObject
00038 {
00039 Q_OBJECT
00040
public:
00041 DateChecker(
QObject *parent = 0,
const char *name = 0 );
00042 ~DateChecker();
00043
00055
enum RolloverType { None, FollowDay, FollowMonth };
00056
void enableRollover( RolloverType );
00057
00058 signals:
00059
00060
void dayPassed(
QDate );
00061
void monthPassed(
QDate );
00062
00063
protected slots:
00073
void possiblyPastMidnight();
00074
00078
void passedMidnight();
00079
00080
private:
00081
QTimer *mUpdateTimer;
00082
QDate mLastDayChecked;
00083 RolloverType mUpdateRollover;
00084 };
00085
00086
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.