21#ifndef KORG_INCIDENCECHANGERBASE_H
22#define KORG_INCIDENCECHANGERBASE_H
24#include "korganizer/koglobals.h"
25#include <libkcal/scheduler.h>
26#include <libkcal/incidence.h>
39class IncidenceChangerBase :
public TQObject
44 IncidenceChangerBase( Calendar*cal, TQObject *parent = 0 ) :
45 TQObject( parent ), mCalendar( cal ) {}
46 virtual ~IncidenceChangerBase() {}
48 virtual bool sendGroupwareMessage( Incidence *incidence,
50 KOGlobals::HowChanged action,
51 TQWidget *parent ) = 0;
53 virtual bool beginChange( Incidence *incidence,
54 ResourceCalendar *res,
const TQString &subRes ) = 0;
55 virtual bool endChange( Incidence *incidence,
56 ResourceCalendar *res,
const TQString &subRes ) = 0;
58 virtual bool addIncidence( Incidence *incidence,
59 ResourceCalendar *res,
const TQString &subRes,
60 TQWidget *parent ) = 0;
61 virtual bool addIncidence( Incidence *incidence,
62 ResourceCalendar *res,
const TQString &subRes,
63 TQWidget *parent,
int dontAskForGroupware) = 0;
65 virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc,
66 KOGlobals::WhatChanged, TQWidget *parent ) = 0;
67 virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc,
68 KOGlobals::WhatChanged, TQWidget *parent,
int dontAskForGroupware ) = 0;
70 virtual bool deleteIncidence( Incidence *incidence, TQWidget *parent ) = 0;
72 virtual bool cutIncidences(
const Incidence::List &incidences, TQWidget *parent ) = 0;
73 virtual bool cutIncidence( Incidence *incidence, TQWidget *parent ) = 0;
76 void incidenceAdded( Incidence * );
77 void incidenceChanged( Incidence *oldInc, Incidence *newInc, KOGlobals::WhatChanged );
78 void incidenceToBeDeleted( Incidence * );
79 void incidenceDeleted( Incidence * );