kalarm Library API Documentation

deferdlg.h

00001 /*
00002  *  deferdlg.h  -  dialogue to defer an alarm
00003  *  Program:  kalarm
00004  *  (C) 2002 by David Jarvie  software@astrojar.org.uk
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef DEFERDLG_H
00022 #define DEFERDLG_H
00023 
00024 #include <qdatetime.h>
00025 #include <kdialogbase.h>
00026 
00027 class AlarmTimeWidget;
00028 
00029 
00030 class DeferAlarmDlg : public KDialogBase
00031 {
00032                 Q_OBJECT
00033         public:
00034                 DeferAlarmDlg(const QString& caption, const QDateTime& initialDT, const QDateTime& limitDT,
00035                               bool cancelButton, QWidget* parent = 0, const char* name = 0);
00036                 virtual ~DeferAlarmDlg();
00037 
00038                 const QDateTime&  getDateTime() const  { return alarmDateTime; }
00039 
00040         protected slots:
00041                 virtual void slotOk();
00042                 virtual void slotCancel();
00043                 virtual void slotUser1();
00044 
00045         private:
00046                 AlarmTimeWidget* timeWidget;
00047                 QDateTime        limitDateTime;
00048                 QDateTime        alarmDateTime;
00049 };
00050 
00051 #endif // DEFERDLG_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:02 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001