|
| | SqliteStorage (const ExtendedCalendar::Ptr &cal, const QString &databaseName, bool validateNotebooks=true) |
| | Constructs a new SqliteStorage object for Calendar calendar with format format, and storage to file fileName. More...
|
| |
| virtual | ~SqliteStorage () |
| | Destructor. More...
|
| |
| QString | databaseName () const |
| | Returns a string containing the name of the calendar database. More...
|
| |
| bool | open () |
| |
| bool | load () |
| |
| bool | load (const QString &uid, const QDateTime &recurrenceId=QDateTime()) |
| |
| bool | load (const QDate &date) |
| |
| bool | load (const QDate &start, const QDate &end) |
| |
| bool | loadSeries (const QString &uid) |
| |
| bool | loadIncidenceInstance (const QString &instanceIdentifier) |
| |
| bool | loadNotebookIncidences (const QString ¬ebookUid) |
| |
| bool | loadJournals () |
| |
| bool | loadPlainIncidences () |
| |
| bool | loadRecurringIncidences () |
| |
| bool | loadGeoIncidences () |
| |
| bool | loadGeoIncidences (float geoLatitude, float geoLongitude, float diffLatitude, float diffLongitude) |
| |
| bool | loadAttendeeIncidences () |
| |
| int | loadUncompletedTodos () |
| |
| int | loadCompletedTodos (bool hasDate, int limit, QDateTime *last) |
| |
| int | loadIncidences (bool hasDate, int limit, QDateTime *last) |
| |
| int | loadFutureIncidences (int limit, QDateTime *last) |
| |
| int | loadGeoIncidences (bool hasDate, int limit, QDateTime *last) |
| |
| int | loadUnreadInvitationIncidences () |
| |
| int | loadOldInvitationIncidences (int limit, QDateTime *last) |
| |
| KCalendarCore::Person::List | loadContacts () |
| |
| int | loadContactIncidences (const KCalendarCore::Person &person, int limit, QDateTime *last) |
| |
| int | loadJournals (int limit, QDateTime *last) |
| |
| bool | notifyOpened (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| bool | purgeDeletedIncidences (const KCalendarCore::Incidence::List &list) |
| |
| bool | save () |
| |
| bool | save (ExtendedStorage::DeleteAction deleteAction) |
| |
| bool | cancel () |
| |
| bool | close () |
| |
| void | calendarModified (bool modified, KCalendarCore::Calendar *calendar) |
| |
| void | calendarIncidenceCreated (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| void | calendarIncidenceAdded (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| void | calendarIncidenceChanged (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| void | calendarIncidenceDeleted (const KCalendarCore::Incidence::Ptr &incidence, const KCalendarCore::Calendar *calendar) |
| |
| void | calendarIncidenceAdditionCanceled (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| bool | insertedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after, const QString ¬ebookUid=QString()) |
| |
| bool | modifiedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after, const QString ¬ebookUid=QString()) |
| |
| bool | deletedIncidences (KCalendarCore::Incidence::List *list, const QDateTime &after=QDateTime(), const QString ¬ebookUid=QString()) |
| |
| bool | allIncidences (KCalendarCore::Incidence::List *list, const QString ¬ebookUid=QString()) |
| |
| bool | duplicateIncidences (KCalendarCore::Incidence::List *list, const KCalendarCore::Incidence::Ptr &incidence, const QString ¬ebookUid=QString()) |
| |
| QDateTime | incidenceDeletedDate (const KCalendarCore::Incidence::Ptr &incidence) |
| |
| int | eventCount () |
| |
| int | todoCount () |
| |
| int | journalCount () |
| |
| virtual void | virtual_hook (int id, void *data) |
| |
| sqlite3_int64 | toOriginTime (const QDateTime &dt) |
| | Convert datetime to seconds relative to the origin. More...
|
| |
| sqlite3_int64 | toLocalOriginTime (const QDateTime &dt) |
| | Convert local datetime to seconds relative to the origin. More...
|
| |
| QDateTime | fromLocalOriginTime (sqlite3_int64 seconds) |
| | Convert seconds from the origin to clock time. More...
|
| |
| QDateTime | fromOriginTime (sqlite3_int64 seconds) |
| | Convert seconds from the origin to UTC datetime. More...
|
| |
| QDateTime | fromOriginTime (sqlite3_int64 seconds, const QByteArray &zonename) |
| | Convert seconds from the origin to datetime in given timezone. 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...
|
| |