• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

datechecker.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2002 Adriaan de Groot <groot@kde.org>
00005   Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 #ifndef DATECHECKER_H
00026 #define DATECHECKER_H
00027 
00028 #include <QObject>
00029 #include <QDate>
00030 
00031 class QTimer;
00032 
00033 class DateChecker: public QObject
00034 {
00035   Q_OBJECT
00036   public:
00037     DateChecker( QObject *parent = 0 );
00038     ~DateChecker();
00039 
00051     enum RolloverType {
00052       None,
00053       FollowDay,
00054       FollowMonth
00055     };
00056     void enableRollover( RolloverType );
00057 
00058   signals:
00059     // Signals emitted at midnight carrying the new date.
00060     void dayPassed( const QDate & );
00061     void monthPassed( const 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

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal