32 #ifndef KCALCORE_MEMORYCALENDAR_H
33 #define KCALCORE_MEMORYCALENDAR_H
35 #include "kcalcore_export.h"
53 typedef QSharedPointer<MemoryCalendar>
Ptr;
105 bool deleteEventInstances(
const Event::Ptr &event);
110 void deleteAllEvents();
122 Event::List rawEvents(
const QDate &start,
const QDate &end,
123 const KDateTime::Spec &timeSpec = KDateTime::Spec(),
124 bool inclusive =
false)
const;
138 const QDate &date,
const KDateTime::Spec &timeSpec = KDateTime::Spec(),
145 Event::List rawEventsForDate(
const KDateTime &dt)
const;
159 const KDateTime &recurrenceId = KDateTime())
const;
165 const QString &uid,
const KDateTime &recurrenceId = KDateTime())
const;
197 bool deleteTodoInstances(
const Todo::Ptr &todo);
202 void deleteAllTodos();
215 const QDate &start,
const QDate &end,
216 const KDateTime::Spec ×pec = KDateTime::Spec(),
217 bool inclusive =
false)
const;
222 Todo::List rawTodosForDate(
const QDate &date)
const;
228 const KDateTime &recurrenceId = KDateTime())
const;
233 Todo::Ptr deletedTodo(
const QString &uid,
const KDateTime &recurrenceId = KDateTime())
const;
264 bool deleteJournalInstances(
const Journal::Ptr &journal);
269 void deleteAllJournals();
287 const KDateTime &recurrenceId = KDateTime())
const;
293 const KDateTime &recurrenceId = KDateTime())
const;
315 Alarm::List alarms(
const KDateTime &from,
const KDateTime &to)
const;
328 void incidenceUpdate(
const QString &uid,
const KDateTime &recurrenceId);
333 void incidenceUpdated(
const QString &uid,
const KDateTime &recurrenceId);
335 using QObject::event;
341 virtual void virtual_hook(
int id,
void *data);
JournalSortField
Calendar Journal sort keys.
QVector< Ptr > List
List of journals.
QSharedPointer< Event > Ptr
A shared pointer to an Event object.
QVector< Ptr > List
List of alarms.
EventSortField
Calendar Event sort keys.
QSharedPointer< Incidence > Ptr
A shared pointer to an Incidence.
QVector< Ptr > List
List of events.
This class provides a calendar stored in memory.
SortDirection
Calendar Incidence sort directions.
QSharedPointer< MemoryCalendar > Ptr
A shared pointer to a MemoryCalendar.
This file is part of the API for handling calendar data and defines the Calendar class.
Sort in ascending order (first to last)
TodoSortField
Calendar Todo sort keys.
QVector< Ptr > List
List of to-dos.
Represents the main calendar class.
QSharedPointer< Todo > Ptr
A shared pointer to a Todo object.
QSharedPointer< Journal > Ptr
A shared pointer to a Journal object.