korganizer
incidencechangerbase.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KORG_INCIDENCECHANGERBASE_H
00022 #define KORG_INCIDENCECHANGERBASE_H
00023
00024 #include <libkcal/scheduler.h>
00025 #include <qobject.h>
00026
00027 namespace KCal {
00028 class Calendar;
00029 class Incidence;
00030 }
00031 using namespace KCal;
00032
00033 namespace KOrg {
00034
00035 class IncidenceChangerBase : public QObject
00036 {
00037 Q_OBJECT
00038 public:
00039 IncidenceChangerBase( Calendar*cal, QObject *parent = 0 ) :
00040 QObject( parent ), mCalendar( cal ) {}
00041 virtual ~IncidenceChangerBase() {}
00042
00043 virtual bool sendGroupwareMessage( Incidence *incidence,
00044 KCal::Scheduler::Method method, bool deleting = false ) = 0;
00045
00046 virtual bool beginChange( Incidence * incidence ) = 0;
00047 virtual bool endChange( Incidence *incidence ) = 0;
00048
00049 virtual bool addIncidence( Incidence *incidence ) = 0;
00050 virtual bool changeIncidence( Incidence *newinc, Incidence *oldinc,
00051 int action = -1 ) = 0;
00052 virtual bool deleteIncidence( Incidence *incidence ) = 0;
00053 virtual bool cutIncidence( Incidence *incidence ) = 0;
00054
00055
00056
00057
00058
00059 signals:
00060 void incidenceAdded( Incidence * );
00061 void incidenceChanged( Incidence *oldInc, Incidence *newInc, int );
00062 void incidenceChanged( Incidence *oldInc, Incidence *newInc );
00063 void incidenceToBeDeleted( Incidence * );
00064 void incidenceDeleted( Incidence * );
00065
00066 void schedule( Scheduler::Method method, Incidence *incidence );
00067 protected:
00068 Calendar *mCalendar;
00069 };
00070
00071
00072
00073
00074 }
00075
00076 #endif
|