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 "korganizer/koglobals.h"
00025 #include <libkcal/scheduler.h>
00026 #include <qobject.h>
00027
00028 class QWidget;
00029 namespace KCal {
00030 class Calendar;
00031 class Incidence;
00032 class ResourceCalendar;
00033 }
00034 using namespace KCal;
00035
00036 namespace KOrg {
00037
00038 class IncidenceChangerBase : public QObject
00039 {
00040 Q_OBJECT
00041 public:
00042 IncidenceChangerBase( Calendar*cal, QObject *parent = 0 ) :
00043 QObject( parent ), mCalendar( cal ) {}
00044 virtual ~IncidenceChangerBase() {}
00045
00046 virtual bool sendGroupwareMessage( Incidence *incidence,
00047 KCal::Scheduler::Method method,
00048 KOGlobals::HowChanged action,
00049 QWidget *parent ) = 0;
00050
00051 virtual bool beginChange( Incidence *incidence,
00052 ResourceCalendar *res, const QString &subRes ) = 0;
00053 virtual bool endChange( Incidence *incidence,
00054 ResourceCalendar *res, const QString &subRes ) = 0;
00055
00056 virtual bool addIncidence( Incidence *incidence,
00057 ResourceCalendar *res, const QString &subRes,
00058 QWidget *parent ) = 0;
00059
00060 virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc,
00061 KOGlobals::WhatChanged, QWidget *parent ) = 0;
00062 virtual bool deleteIncidence( Incidence *incidence, QWidget *parent ) = 0;
00063 virtual bool cutIncidence( Incidence *incidence, QWidget *parent ) = 0;
00064
00065 signals:
00066 void incidenceAdded( Incidence * );
00067 void incidenceChanged( Incidence *oldInc, Incidence *newInc, KOGlobals::WhatChanged );
00068 void incidenceToBeDeleted( Incidence * );
00069 void incidenceDeleted( Incidence * );
00070
00071 void schedule( Scheduler::Method method, Incidence *incidence );
00072 protected:
00073 Calendar *mCalendar;
00074 };
00075
00076
00077
00078
00079 }
00080
00081 #endif
|