akonadi
20 #ifndef AKONADI_CALENDARBASE_P_H
21 #define AKONADI_CALENDARBASE_P_H
23 #include "calendarbase.h"
24 #include "incidencechanger.h"
33 class CalendarBasePrivate :
public QObject
38 explicit CalendarBasePrivate(CalendarBase *qq);
39 ~CalendarBasePrivate();
41 void internalInsert(
const Akonadi::Item &item);
42 void internalRemove(
const Akonadi::Item &item);
44 void deleteAllIncidencesOfType(
const QString &mimeType);
46 void handleUidChange(
const Akonadi::Item &oldItem,
const Akonadi::Item &newItem,
const QString &newUid);
49 void handleParentChanged(
const KCalCore::Incidence::Ptr &incidence);
52 void slotDeleteFinished(
int changeId,
53 const QVector<Akonadi::Item::Id> &,
54 Akonadi::IncidenceChanger::ResultCode,
55 const QString &errorMessage);
57 void slotCreateFinished(
int changeId,
58 const Akonadi::Item &,
59 Akonadi::IncidenceChanger::ResultCode,
60 const QString &errorMessage);
62 void slotModifyFinished(
int changeId,
63 const Akonadi::Item &,
64 Akonadi::IncidenceChanger::ResultCode,
65 const QString &errorMessage);
68 QMultiHash<Akonadi::Collection::Id, Akonadi::Item> mItemsByCollection;
69 QHash<QString,Akonadi::Item::Id> mItemIdByUid;
70 QHash<Akonadi::Item::Id, Akonadi::Item> mItemById;
71 Akonadi::IncidenceChanger *mIncidenceChanger;
72 QHash<QString,QStringList> mParentUidToChildrenUid;
73 QWeakPointer<CalendarBase> mWeakPointer;
75 bool mBatchInsertionCancelled;
76 bool mListensForNewItems;
77 bool mLastCreationCancelled;
83 QHash<QString,QString> mUidToParent;
86 CalendarBase *
const q;
Represents a collection of PIM items.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.