26#include <KCalendarCore/Incidence>
27#include <extendedcalendar.h>
28#include <extendedstorage.h>
57 bool init(
const QString& aNotebookName,
const QString& aUid,
const QString &aMimeType );
85 bool getNewNotes( QList<Buteo::StorageItem*>& aNewItems,
const QDateTime& aTime );
101 bool getModifiedNotes( QList<Buteo::StorageItem*>& aModifiedItems,
const QDateTime& aTime );
130 Buteo::StorageItem*
getItem(
const QString& aItemId );
138 bool addNote( Buteo::StorageItem& aItem,
bool commitNow );
146 bool modifyNote( Buteo::StorageItem& aItem,
bool commitNow );
166 void retrieveNoteItems( KCalendarCore::Incidence::List& aIncidences, QList<Buteo::StorageItem*>& aItems );
168 void retrieveNoteIds( KCalendarCore::Incidence::List& aIncidences, QList<QString>& aIds );
170 void filterIncidences( KCalendarCore::Incidence::List& aIncidences );
173 QString iNotebookName;
176 mKCal::ExtendedCalendar::Ptr iCalendar;
177 mKCal::ExtendedStorage::Ptr iStorage;
Notes Calendar backend proxy.
Definition NotesBackend.h:40
bool getNewNotes(QList< Buteo::StorageItem * > &aNewItems, const QDateTime &aTime)
get all new notes from a timestamp
virtual ~NotesBackend()
Destructor.
Buteo::StorageItem * getItem(const QString &aItemId)
get an item
bool getModifiedNoteIds(QList< QString > &aModifiedIds, const QDateTime &aTime)
get all modified notes ids from the backend
bool uninit()
Uninitializes backend.
bool addNote(Buteo::StorageItem &aItem, bool commitNow)
Uninitializes backend.
Buteo::StorageItem * newItem()
fetch a new StorageItem
bool deleteNote(const QString &aId, bool commitNow)
Uninitializes backend.
bool init(const QString &aNotebookName, const QString &aUid, const QString &aMimeType)
Initializes backend.
bool getAllNoteIds(QList< QString > &aIds)
gets are note ids from the backend
bool getDeletedNoteIds(QList< QString > &aDeletedIds, const QDateTime &aTime)
gets all deleted note ids
bool commitChanges()
Persist notes db.
bool getNewNoteIds(QList< QString > &aNewIds, const QDateTime &aTime)
get all new note ids from a timestamp
NotesBackend()
Constructor.
bool getAllNotes(QList< Buteo::StorageItem * > &aItems)
retrieves all Notes from the backend
bool getModifiedNotes(QList< Buteo::StorageItem * > &aModifiedItems, const QDateTime &aTime)
get all modified notes from the backend
bool modifyNote(Buteo::StorageItem &aItem, bool commitNow)
Uninitializes backend.