korganizer

archivedialog.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00004     Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef _ARCHIVE_DLG
00025 #define _ARCHIVE_DLG
00026 
00027 #include <kdialogbase.h>
00028 
00029 class QRadioButton;
00030 class QComboBox;
00031 class KIntNumInput;
00032 class KURLRequester;
00033 class KDateEdit;
00034 class QCheckBox;
00035 
00036 namespace KCal {
00037 class Calendar;
00038 }
00039 using namespace KCal;
00040 
00041 class ArchiveDialog : public KDialogBase
00042 {
00043     Q_OBJECT
00044   public:
00045     ArchiveDialog(Calendar *calendar,QWidget *parent=0, const char *name=0);
00046     virtual ~ArchiveDialog();
00047 
00048   signals:
00049     // connected by KODialogManager to CalendarView
00050     void eventsDeleted();
00051     void autoArchivingSettingsModified();
00052 
00053   protected slots:
00054     void slotEventsDeleted();
00055     void slotUser1();
00056     void slotEnableUser1();
00057     void slotActionChanged();
00058 
00059   private:
00060     KURLRequester *mArchiveFile;
00061     KDateEdit *mDateEdit;
00062     QCheckBox *mDeleteCb;
00063     QRadioButton *mArchiveOnceRB;
00064     QRadioButton *mAutoArchiveRB;
00065     KIntNumInput *mExpiryTimeNumInput;
00066     QComboBox *mExpiryUnitsComboBox;
00067     QCheckBox *mEvents;
00068     QCheckBox *mTodos;
00069 
00070     Calendar *mCalendar;
00071 };
00072 
00073 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys