This module provides a simple storage abstraction which contains exactly nothing.
More...
|
| DummyStorage (const mKCal::ExtendedCalendar::Ptr &cal) |
|
void | calendarModified (bool, KCalendarCore::Calendar *) |
|
void | calendarIncidenceAdded (const KCalendarCore::Incidence::Ptr &) |
|
void | calendarIncidenceChanged (const KCalendarCore::Incidence::Ptr &) |
|
void | calendarIncidenceDeleted (const KCalendarCore::Incidence::Ptr &, const KCalendarCore::Calendar *) |
|
void | calendarIncidenceAdditionCanceled (const KCalendarCore::Incidence::Ptr &) |
|
bool | purgeDeletedIncidences (const KCalendarCore::Incidence::List &) |
| Remove from storage all incidences that have been previously marked as deleted and that matches the UID / RecID of the incidences in list. More...
|
|
bool | open () |
|
bool | load () |
|
bool | save () |
|
bool | save (DeleteAction) |
| This is an overload of save() method. More...
|
|
bool | close () |
|
bool | load (const QString &, const QDateTime &) |
| Load incidence by uid into the memory. More...
|
|
bool | load (const QDate &) |
| Load incidences at given date into the memory. More...
|
|
bool | load (const QDate &, const QDate &) |
| Load incidences between given dates into the memory. More...
|
|
bool | loadSeries (const QString &) |
| Load all incidences sharing the same uid into the memory. More...
|
|
bool | loadIncidenceInstance (const QString &) |
| Load the incidence matching the given identifier. More...
|
|
bool | loadNotebookIncidences (const QString &) |
| Load incidences of one notebook into the memory. More...
|
|
bool | loadJournals () |
| Load journal type entries. More...
|
|
bool | loadPlainIncidences () |
| Load plain incidences (no startdate and no enddate). More...
|
|
bool | loadRecurringIncidences () |
| Load recurring incidences. More...
|
|
bool | loadGeoIncidences () |
| Load incidences that have geo parameters. More...
|
|
bool | loadGeoIncidences (float, float, float, float) |
| Load incidences that have geo parameters inside given rectangle. More...
|
|
bool | loadAttendeeIncidences () |
| Load incidences that have attendee. More...
|
|
int | loadUncompletedTodos () |
| Load all uncompleted todos. More...
|
|
int | loadCompletedTodos (bool, int, QDateTime *) |
| Load completed todos based on parameters. More...
|
|
int | loadIncidences (bool, int, QDateTime *) |
| Load incidences based on start/due date or creation date. More...
|
|
int | loadFutureIncidences (int, QDateTime *) |
| Load future incidences based on start/due date. More...
|
|
int | loadGeoIncidences (bool, int, QDateTime *) |
| Load incidences that have location information based on parameters. More...
|
|
int | loadUnreadInvitationIncidences () |
| Load all unread incidences that are related to an invitation. More...
|
|
int | loadOldInvitationIncidences (int, QDateTime *) |
| Load incidences that are related to an invitation. More...
|
|
KCalendarCore::Person::List | loadContacts () |
| Load all contacts in the database. More...
|
|
int | loadContactIncidences (const KCalendarCore::Person &, int, QDateTime *) |
| Load all incidences that have the specified attendee. More...
|
|
int | loadJournals (int, QDateTime *) |
| Load journal entries based on parameters. More...
|
|
bool | notifyOpened (const KCalendarCore::Incidence::Ptr &) |
| Mark if supported by the storage that an incidence has been opened. More...
|
|
bool | cancel () |
| Cancel any ongoing action (load etc.). More...
|
|
void | calendarModified (bool, const KCalendarCore::Calendar *) const |
|
void | calendarIncidenceAdded (const KCalendarCore::Incidence::Ptr &) const |
|
void | calendarIncidenceChanged (const KCalendarCore::Incidence::Ptr &) const |
|
void | calendarIncidenceDeleted (const KCalendarCore::Incidence::Ptr &) const |
|
void | calendarIncidenceAdditionCanceled (const KCalendarCore::Incidence::Ptr &) const |
|
bool | insertedIncidences (KCalendarCore::Incidence::List *, const QDateTime &, const QString &) |
| Get inserted incidences from storage. More...
|
|
bool | modifiedIncidences (KCalendarCore::Incidence::List *, const QDateTime &, const QString &) |
| Get modified incidences from storage. More...
|
|
bool | deletedIncidences (KCalendarCore::Incidence::List *, const QDateTime &, const QString &) |
| Get deleted incidences from storage. More...
|
|
bool | allIncidences (KCalendarCore::Incidence::List *, const QString &) |
| Get all incidences from storage. More...
|
|
bool | duplicateIncidences (KCalendarCore::Incidence::List *, const KCalendarCore::Incidence::Ptr &, const QString &) |
| Get possible duplicates for given incidence. More...
|
|
bool | loadNotebooks () |
|
bool | reloadNotebooks () |
|
bool | modifyNotebook (const mKCal::Notebook::Ptr &, mKCal::DBOperation, bool) |
|
QDateTime | incidenceDeletedDate (const KCalendarCore::Incidence::Ptr &) |
| Get deletion time of incidence. More...
|
|
int | eventCount () |
| Get count of events. More...
|
|
int | todoCount () |
| Get count of todos. More...
|
|
int | journalCount () |
| Get count of journals. More...
|
|
void | virtual_hook (int, void *) |
| Standard trick to add virtuals later. More...
|
|
| ExtendedStorage (const ExtendedCalendar::Ptr &cal, bool validateNotebooks=true) |
| Constructs a new ExtendedStorage object. More...
|
|
virtual | ~ExtendedStorage () |
| Destructor. More...
|
|
virtual bool | open ()=0 |
|
virtual bool | load ()=0 |
|
virtual bool | load (const QString &uid, const QDateTime &recurrenceId=QDateTime())=0 |
| Load incidence by uid into the memory. More...
|
|
virtual bool | load (const QDate &date)=0 |
| Load incidences at given date into the memory. More...
|
|
virtual bool | load (const QDate &start, const QDate &end)=0 |
| Load incidences between given dates into the memory. More...
|
|
virtual bool | loadSeries (const QString &uid)=0 |
| Load all incidences sharing the same uid into the memory. More...
|
|
virtual bool | loadIncidenceInstance (const QString &instanceIdentifier)=0 |
| Load the incidence matching the given identifier. More...
|
|
virtual bool | loadNotebookIncidences (const QString ¬ebookUid)=0 |
| Load incidences of one notebook into the memory. More...
|
|
virtual bool | loadJournals ()=0 |
| Load journal type entries. More...
|
|
virtual bool | loadPlainIncidences ()=0 |
| Load plain incidences (no startdate and no enddate). More...
|
|
virtual bool | loadRecurringIncidences ()=0 |
| Load recurring incidences. More...
|
|
virtual bool | loadGeoIncidences ()=0 |
| Load incidences that have geo parameters. More...
|
|
virtual bool | loadGeoIncidences (float geoLatitude, float geoLongitude, float diffLatitude, float diffLongitude)=0 |
| Load incidences that have geo parameters inside given rectangle. More...
|
|
virtual bool | loadAttendeeIncidences ()=0 |
| Load incidences that have attendee. More...
|
|
virtual int | loadUncompletedTodos ()=0 |
| Load all uncompleted todos. More...
|
|
virtual int | loadCompletedTodos (bool hasDate, int limit, QDateTime *last)=0 |
| Load completed todos based on parameters. More...
|
|
virtual int | loadIncidences (bool hasDate, int limit, QDateTime *last)=0 |
| Load incidences based on start/due date or creation date. More...
|
|
virtual int | loadFutureIncidences (int limit, QDateTime *last)=0 |
| Load future incidences based on start/due date. More...
|
|
virtual int | loadGeoIncidences (bool hasDate, int limit, QDateTime *last)=0 |
| Load incidences that have location information based on parameters. More...
|
|
virtual int | loadUnreadInvitationIncidences ()=0 |
| Load all unread incidences that are related to an invitation. More...
|
|
virtual int | loadOldInvitationIncidences (int limit, QDateTime *last)=0 |
| Load incidences that are related to an invitation. More...
|
|
virtual KCalendarCore::Person::List | loadContacts ()=0 |
| Load all contacts in the database. More...
|
|
virtual int | loadContactIncidences (const KCalendarCore::Person &person, int limit, QDateTime *last)=0 |
| Load all incidences that have the specified attendee. More...
|
|
virtual int | loadJournals (int limit, QDateTime *last)=0 |
| Load journal entries based on parameters. More...
|
|
virtual bool | purgeDeletedIncidences (const KCalendarCore::Incidence::List &list)=0 |
| Remove from storage all incidences that have been previously marked as deleted and that matches the UID / RecID of the incidences in list. More...
|
|
virtual bool | save ()=0 |
|
virtual bool | save (DeleteAction deleteAction)=0 |
| This is an overload of save() method. More...
|
|
virtual bool | notifyOpened (const KCalendarCore::Incidence::Ptr &incidence)=0 |
| Mark if supported by the storage that an incidence has been opened. More...
|
|
virtual bool | cancel ()=0 |
| Cancel any ongoing action (load etc.). More...
|
|
virtual bool | close ()=0 |
|
virtual void | calendarModified (bool modified, KCalendarCore::Calendar *calendar)=0 |
|
virtual void | calendarIncidenceAdded (const KCalendarCore::Incidence::Ptr &incidence)=0 |
|
virtual void | calendarIncidenceChanged (const KCalendarCore::Incidence::Ptr &incidence)=0 |
|
virtual void | calendarIncidenceDeleted (const KCalendarCore::Incidence::Ptr &incidence, const KCalendarCore::Calendar *calendar)=0 |
|
virtual void | calendarIncidenceAdditionCanceled (const KCalendarCore::Incidence::Ptr &incidence)=0 |
|
virtual bool | insertedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after=QDateTime(), const QString ¬ebookUid=QString())=0 |
| Get inserted incidences from storage. More...
|
|
virtual bool | modifiedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after=QDateTime(), const QString ¬ebookUid=QString())=0 |
| Get modified incidences from storage. More...
|
|
virtual bool | deletedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after=QDateTime(), const QString ¬ebookUid=QString())=0 |
| Get deleted incidences from storage. More...
|
|
virtual bool | allIncidences (KCalendarCore::Incidence::List *list, const QString ¬ebookUid=QString())=0 |
| Get all incidences from storage. More...
|
|
virtual bool | duplicateIncidences (KCalendarCore::Incidence::List *list, const KCalendarCore::Incidence::Ptr &incidence, const QString ¬ebookUid=QString())=0 |
| Get possible duplicates for given incidence. More...
|
|
virtual QDateTime | incidenceDeletedDate (const KCalendarCore::Incidence::Ptr &incidence)=0 |
| Get deletion time of incidence. More...
|
|
virtual int | eventCount ()=0 |
| Get count of events. More...
|
|
virtual int | todoCount ()=0 |
| Get count of todos. More...
|
|
virtual int | journalCount ()=0 |
| Get count of journals. More...
|
|
void | registerObserver (ExtendedStorageObserver *observer) |
| Registers an Observer for this Storage. More...
|
|
void | unregisterObserver (ExtendedStorageObserver *observer) |
| Unregisters an Observer for this Storage. More...
|
|
bool | addNotebook (const Notebook::Ptr &nb, bool signal=true) |
| Add new notebook to the storage. More...
|
|
bool | updateNotebook (const Notebook::Ptr &nb) |
| Update notebook parameters. More...
|
|
bool | deleteNotebook (const Notebook::Ptr &nb, bool onlyMemory=false) |
| Delete notebook from storage. More...
|
|
bool | setDefaultNotebook (const Notebook::Ptr &nb) |
| setDefaultNotebook to the storage. More...
|
|
Notebook::Ptr | defaultNotebook () |
| defaultNotebook. More...
|
|
Notebook::Ptr | notebook (const QString &uid) |
| Search for notebook. More...
|
|
Notebook::Ptr | notebook (Notebook::List &list, const QString &uid) |
| Search for notebook in a list. More...
|
|
Notebook::List | notebooks () |
| List all notebooks. More...
|
|
void | setValidateNotebooks (bool validateNotebooks) |
| Determine if notebooks should be validated in saves and loads. More...
|
|
bool | validateNotebooks () |
| Returns true if notebooks should be validated in saves and loads. More...
|
|
bool | isValidNotebook (const QString ¬ebookUid) |
| Returns true if the given notebook is valid for the storage. More...
|
|
KCalendarCore::Incidence::Ptr | checkAlarm (const QString &uid, const QString &recurrenceId, bool loadAlways=false) |
| Checking if an incidence has active alarms. More...
|
|
Notebook::Ptr | createDefaultNotebook (QString name=QString(), QString color=QString()) |
| Creates and sets a default notebook. More...
|
|
virtual void | virtual_hook (int id, void *data)=0 |
| Standard trick to add virtuals later. More...
|
|