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 TQt, and distribute the resulting executable, 00022 without including the source code for TQt in the source distribution. 00023 */ 00024 #ifndef _ARCHIVE_DLG 00025 #define _ARCHIVE_DLG 00026 00027 #include <kdialogbase.h> 00028 00029 class TQRadioButton; 00030 class TQComboBox; 00031 class KIntNumInput; 00032 class KURLRequester; 00033 class KDateEdit; 00034 class TQCheckBox; 00035 00036 namespace KCal { 00037 class Calendar; 00038 } 00039 using namespace KCal; 00040 00041 class ArchiveDialog : public KDialogBase 00042 { 00043 Q_OBJECT 00044 00045 public: 00046 ArchiveDialog(Calendar *calendar,TQWidget *parent=0, const char *name=0); 00047 virtual ~ArchiveDialog(); 00048 00049 signals: 00050 // connected by KODialogManager to CalendarView 00051 void eventsDeleted(); 00052 void autoArchivingSettingsModified(); 00053 00054 protected slots: 00055 void slotEventsDeleted(); 00056 void slotUser1(); 00057 void slotEnableUser1(); 00058 void slotActionChanged(); 00059 00060 private: 00061 KURLRequester *mArchiveFile; 00062 KDateEdit *mDateEdit; 00063 TQCheckBox *mDeleteCb; 00064 TQRadioButton *mArchiveOnceRB; 00065 TQRadioButton *mAutoArchiveRB; 00066 KIntNumInput *mExpiryTimeNumInput; 00067 TQComboBox *mExpiryUnitsComboBox; 00068 TQCheckBox *mEvents; 00069 TQCheckBox *mTodos; 00070 00071 Calendar *mCalendar; 00072 }; 00073 00074 #endif