akonadi
21 #ifndef _AKONADI_CALENDARBASE_H_
22 #define _AKONADI_CALENDARBASE_H_
24 #include "akonadi-calendar_export.h"
26 #include <akonadi/item.h>
27 #include <kcalcore/memorycalendar.h>
28 #include <kcalcore/incidence.h>
33 class CalendarBasePrivate;
34 class IncidenceChanger;
49 class AKONADI_CALENDAR_EXPORT
CalendarBase :
public KCalCore::MemoryCalendar
53 typedef QSharedPointer<CalendarBase> Ptr;
85 KCalCore::Incidence::List childIncidences(
const QString &parentUid )
const;
91 KCalCore::Incidence::List childIncidences(
const Akonadi::Item::Id &parentId )
const;
116 void setWeakPointer(
const QWeakPointer<Akonadi::CalendarBase> &pointer );
123 QWeakPointer<CalendarBase> weakPointer()
const;
124 bool addEvent(
const KCalCore::Event::Ptr &event );
130 bool deleteEvent(
const KCalCore::Event::Ptr &event );
136 void deleteAllEvents();
142 bool addTodo(
const KCalCore::Todo::Ptr &todo );
148 bool deleteTodo(
const KCalCore::Todo::Ptr &todo );
154 void deleteAllTodos();
160 bool addJournal(
const KCalCore::Journal::Ptr &journal );
166 bool deleteJournal(
const KCalCore::Journal::Ptr &journal );
172 void deleteAllJournals();
178 bool addIncidence(
const KCalCore::Incidence::Ptr &incidence );
184 bool deleteIncidence(
const KCalCore::Incidence::Ptr & );
190 void startBatchAdding();
198 void endBatchAdding();
209 Akonadi::IncidenceChanger *incidenceChanger()
const;
216 bool modifyIncidence(
const KCalCore::IncidenceBase::Ptr &newIncidence );
225 void createFinished(
bool success,
const QString &errorMessage );
233 void deleteFinished(
bool success,
const QString &errorMessage );
241 void modifyFinished(
bool success,
const QString &errorMessage );
245 QScopedPointer<CalendarBasePrivate> d_ptr;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:32 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.