akonadi
20 #ifndef AKONADI_HISTORY_H
21 #define AKONADI_HISTORY_H
23 #include "akonadi-calendar_export.h"
24 #include "incidencechanger.h"
26 #include <kcalcore/incidence.h>
27 #include <akonadi/item.h>
34 class IncidenceChanger;
58 class AKONADI_CALENDAR_EXPORT
History :
public QObject {
68 ResultCodeSuccess = 0,
88 void recordCreation(
const Akonadi::Item &item,
89 const QString &description,
90 const uint atomicOperationId = 0);
106 void recordModification(
const Akonadi::Item &oldItem,
107 const Akonadi::Item &newItem,
108 const QString &description,
109 const uint atomicOperationId = 0);
123 void recordDeletion(
const Akonadi::Item &item,
124 const QString &description,
125 const uint atomicOperationId = 0);
137 void recordDeletions(
const Akonadi::Item::List &items,
138 const QString &description,
139 const uint atomicOperationId = 0);
149 QString lastErrorString()
const;
157 void undoAll(QWidget *parent = 0);
162 bool undoAvailable()
const;
167 bool redoAvailable()
const;
177 QString nextUndoDescription()
const;
187 QString nextRedoDescription()
const;
211 void undo(QWidget *parent = 0);
226 void redo(QWidget *parent = 0);
250 friend class ::HistoryTest;
251 friend class IncidenceChanger;
255 explicit History(QObject *parent = 0);
258 Akonadi::IncidenceChanger* incidenceChanger()
const;
History class for implementing undo/redo of calendar operations.
ResultCode
This enum describes the possible result codes (success/error values) for an undo or redo operation...
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.