diff options
Diffstat (limited to 'korganizer/interfaces/korganizer/incidencechangerbase.h')
-rw-r--r-- | korganizer/interfaces/korganizer/incidencechangerbase.h | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/korganizer/interfaces/korganizer/incidencechangerbase.h b/korganizer/interfaces/korganizer/incidencechangerbase.h index f482388c..e7c13305 100644 --- a/korganizer/interfaces/korganizer/incidencechangerbase.h +++ b/korganizer/interfaces/korganizer/incidencechangerbase.h @@ -21,13 +21,16 @@ #ifndef KORG_INCIDENCECHANGERBASE_H #define KORG_INCIDENCECHANGERBASE_H +#include "korganizer/koglobals.h" #include <libkcal/scheduler.h> +#include <libkcal/incidence.h> #include <tqobject.h> class TQWidget; namespace KCal { -class Calendar; -class Incidence; + class Calendar; + class Incidence; + class ResourceCalendar; } using namespace KCal; @@ -42,25 +45,29 @@ public: virtual ~IncidenceChangerBase() {} virtual bool sendGroupwareMessage( Incidence *incidence, - KCal::Scheduler::Method method, bool deleting = false ) = 0; + KCal::Scheduler::Method method, + KOGlobals::HowChanged action, + TQWidget *parent ) = 0; - virtual bool beginChange( Incidence * incidence ) = 0; - virtual bool endChange( Incidence *incidence ) = 0; + virtual bool beginChange( Incidence *incidence, + ResourceCalendar *res, const TQString &subRes ) = 0; + virtual bool endChange( Incidence *incidence, + ResourceCalendar *res, const TQString &subRes ) = 0; - virtual bool addIncidence( Incidence *incidence, TQWidget *parent = 0 ) = 0; - virtual bool changeIncidence( Incidence *newinc, Incidence *oldinc, - int action = -1 ) = 0; - virtual bool deleteIncidence( Incidence *incidence ) = 0; - virtual bool cutIncidence( Incidence *incidence ) = 0; + virtual bool addIncidence( Incidence *incidence, + ResourceCalendar *res, const TQString &subRes, + TQWidget *parent ) = 0; + + virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc, + KOGlobals::WhatChanged, TQWidget *parent ) = 0; + virtual bool deleteIncidence( Incidence *incidence, TQWidget *parent ) = 0; + + virtual bool cutIncidences( const Incidence::List &incidences, TQWidget *parent ) = 0; + virtual bool cutIncidence( Incidence *incidence, TQWidget *parent ) = 0; -/* - static bool incidencesEqual( Incidence *inc1, Incidence *inc2 ); - static bool assignIncidence( Incidence *inc1, Incidence *inc2 ); -*/ signals: void incidenceAdded( Incidence * ); - void incidenceChanged( Incidence *oldInc, Incidence *newInc, int ); - void incidenceChanged( Incidence *oldInc, Incidence *newInc ); + void incidenceChanged( Incidence *oldInc, Incidence *newInc, KOGlobals::WhatChanged ); void incidenceToBeDeleted( Incidence * ); void incidenceDeleted( Incidence * ); |