korganizer
eventarchiver.h00001
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 EVENTARCHIVER_H
00026 #define EVENTARCHIVER_H
00027
00028 #include <qobject.h>
00029 #include <qdatetime.h>
00030 #include <libkcal/event.h>
00031
00032 namespace KCal {
00033 class Calendar;
00034 class Event;
00035 }
00036 using namespace KCal;
00037
00047 class EventArchiver : public QObject
00048 {
00049 Q_OBJECT
00050
00051 public:
00052 EventArchiver( QObject* parent = 0, const char* name = 0 );
00053 virtual ~EventArchiver();
00054
00062 void runOnce( Calendar* calendar, const QDate& limitDate, QWidget* widget );
00063
00072 void runAuto( Calendar* calendar, QWidget* widget, bool withGUI );
00073
00074 signals:
00075 void eventsDeleted();
00076
00077 private:
00078 void run( Calendar* calendar, const QDate& limitDate, QWidget* widget, bool withGUI, bool errorIfNone );
00079
00080 void deleteIncidences( Calendar* calendar, const QDate& limitDate, QWidget* widget, const Incidence::List& incidences, bool withGUI );
00081 void archiveIncidences( Calendar* calendar, const QDate& limitDate, QWidget* widget, const Incidence::List& incidences, bool withGUI );
00082 };
00083
00084 #endif
|