192#ifndef MKCAL_EXTENDEDCALENDAR_H
193#define MKCAL_EXTENDEDCALENDAR_H
197#include <KCalendarCore/MemoryCalendar>
208class MKCAL_EXPORT ExtendedCalendar :
public KCalendarCore::MemoryCalendar
214 typedef QSharedPointer<ExtendedCalendar> Ptr;
220 explicit ExtendedCalendar(
const QTimeZone &timeZone);
226 explicit ExtendedCalendar(
const QByteArray &timeZoneId);
246#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
264 KCalendarCore::Incidence::Ptr dissociateSingleOccurrence(
const KCalendarCore::Incidence::Ptr &incidence,
265 const QDateTime &dateTime);
271 bool addIncidence(
const KCalendarCore::Incidence::Ptr &incidence);
282 bool addIncidence(
const KCalendarCore::Incidence::Ptr &incidence,
const QString ¬ebookUid);
290 bool addEvent(
const KCalendarCore::Event::Ptr &event);
301 bool addEvent(
const KCalendarCore::Event::Ptr &event,
const QString ¬ebookUid);
309 bool addTodo(
const KCalendarCore::Todo::Ptr &todo);
320 bool addTodo(
const KCalendarCore::Todo::Ptr &todo,
const QString ¬ebookUid);
328 bool addJournal(
const KCalendarCore::Journal::Ptr &journal);
339 bool addJournal(
const KCalendarCore::Journal::Ptr &journal,
const QString ¬ebookUid);
341 using KCalendarCore::Calendar::journals;
350 KCalendarCore::Journal::List journals(
const QDate &start,
const QDate &end);
352 using KCalendarCore::Calendar::incidences;
363 KCalendarCore::Incidence::List incidences(
const QDate &start,
const QDate &end);
374 static QSharedPointer<ExtendedStorage> defaultStorage(
const ExtendedCalendar::Ptr
377#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
383 void clearNotebookAssociations();
393 bool setNotebook(
const KCalendarCore::Incidence::Ptr &incidence,
const QString ¬ebook);
402 QString notebook(
const KCalendarCore::Incidence::Ptr &incidence)
const;
411 QString notebook(
const QString &uid)
const;
418 QStringList notebooks()
const;
427 Q_REQUIRED_RESULT
bool hasValidNotebook(
const QString ¬ebook)
const;
438 Q_REQUIRED_RESULT
bool addNotebook(
const QString ¬ebook,
bool isVisible);
449 Q_REQUIRED_RESULT
bool updateNotebook(
const QString ¬ebook,
bool isVisible);
459 Q_REQUIRED_RESULT
bool deleteNotebook(
const QString ¬ebook);
467 Q_REQUIRED_RESULT
bool setDefaultNotebook(
const QString ¬ebook);
474 Q_REQUIRED_RESULT QString defaultNotebook()
const;
481 Q_REQUIRED_RESULT
bool isVisible(
const KCalendarCore::Incidence::Ptr &incidence)
const;
488 Q_REQUIRED_RESULT
bool isVisible(
const QString ¬ebook)
const;
496 KCalendarCore::Incidence::List incidences(
const QString ¬ebook)
const;
504 KCalendarCore::Incidence::List duplicates(
const KCalendarCore::Incidence::Ptr &incidence);
509 Q_DISABLE_COPY(ExtendedCalendar)
This class provides a calendar storage interface.
Definition extendedstorage.h:67
Placeholder for Notebook parameters.
Definition notebook.h:46
#define MKCAL_EXPORT
Definition mkcal_export.h:29
Definition extendedstorage.h:49