KCal Library
calendarlocal.cpp
Go to the documentation of this file.
This file is part of the API for handling calendar data and defines the CalendarLocal class.
An abstract base class that provides an interface to various calendar formats.
Definition calformat.h:52
This class provides a calendar stored as a local file.
Definition calendarlocal.h:44
void incidenceUpdated(IncidenceBase *incidenceBase)
Notify the IncidenceBase::Observer that the incidence has been updated.
Definition calendarlocal.cpp:380
Journal::List rawJournalsForDate(const QDate &date)
Definition calendarlocal.cpp:629
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition calendarlocal.cpp:541
bool load(const QString &fileName, CalFormat *format=0)
Loads a calendar on disk in vCalendar or iCalendar format into the current calendar.
Definition calendarlocal.cpp:115
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition calendarlocal.cpp:297
CalendarLocal(const KDateTime::Spec &timeSpec)
Definition calendarlocal.cpp:97
void close()
Clears out the current calendar, freeing all used memory etc.
Definition calendarlocal.cpp:158
Todo::List rawTodosForDate(const QDate &date)
Definition calendarlocal.cpp:309
Alarm::List alarms(const KDateTime &from, const KDateTime &to)
Definition calendarlocal.cpp:329
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition calendarlocal.cpp:617
Event::List rawEventsForDate(const QDate &date, const KDateTime::Spec &timeSpec=KDateTime::Spec(), EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Returns an unfiltered list of all Events which occur on the given date.
Definition calendarlocal.cpp:417
Alarm::List alarmsTo(const KDateTime &to)
Return a list of Alarms that occur before the specified timestamp.
Definition calendarlocal.cpp:324
bool deleteJournal(Journal *journal)
Definition calendarlocal.cpp:583
static Todo::List sortTodos(Todo::List *todoList, TodoSortField sortField, SortDirection sortDirection)
Sort a list of Todos.
Definition calendar.cpp:712
void appendRecurringAlarms(Alarm::List &alarms, Incidence *incidence, const KDateTime &from, const KDateTime &to)
Appends alarms of recurring events in interval to list of alarms.
Definition calendar.cpp:1263
void appendAlarms(Alarm::List &alarms, Incidence *incidence, const KDateTime &from, const KDateTime &to)
Appends alarms of incidence in interval to list of alarms.
Definition calendar.cpp:1246
virtual void setupRelations(Incidence *incidence)
Setup Relations for an Incidence.
Definition calendar.cpp:951
void notifyIncidenceDeleted(Incidence *incidence)
Let Calendar subclasses notify that they removed an Incidence.
Definition calendar.cpp:1181
static Event::List sortEvents(Event::List *eventList, EventSortField sortField, SortDirection sortDirection)
Sort a list of Events.
Definition calendar.cpp:292
void notifyIncidenceChanged(Incidence *incidence)
Let Calendar subclasses notify that they modified an Incidence.
Definition calendar.cpp:1170
virtual void removeRelations(Incidence *incidence)
Removes all Relations from an Incidence.
Definition calendar.cpp:997
static Event::List sortEventsForDate(Event::List *eventList, const QDate &date, const KDateTime::Spec &timeSpec, EventSortField sortField, SortDirection sortDirection)
Sort a list of Events that occur on a specified date.
Definition calendar.cpp:395
void setObserversEnabled(bool enabled)
Let Calendar subclasses notify that they enabled an Observer.
Definition calendar.cpp:1241
void notifyIncidenceAdded(Incidence *incidence)
Let Calendar subclasses notify that they inserted an Incidence.
Definition calendar.cpp:1159
Incidence * incidence(const QString &uid)
Returns the Incidence associated with the given unique identifier.
Definition calendar.cpp:669
KDateTime::Spec timeSpec() const
Get the time specification (time zone etc.) used for creating or modifying incidences in the Calendar...
Definition calendar.cpp:145
static Journal::List sortJournals(Journal::List *journalList, JournalSortField sortField, SortDirection sortDirection)
Sort a list of Journals.
Definition calendar.cpp:871
bool isMultiDay(const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns true if the event spans multiple days, otherwise return false.
Definition event.cpp:231
An abstract class that provides a common base for all calendar incidence classes.
Definition incidencebase.h:103
void setLastModified(const KDateTime &lm)
Sets the time the incidence was last modified to lm.
Definition incidencebase.cpp:189
virtual QByteArray type() const =0
Prints the type of Incidence as a string.
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition incidencebase.cpp:248
void registerObserver(IncidenceObserver *observer)
Register observer.
Definition incidencebase.cpp:463
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition incidence.h:70
Recurrence * recurrence() const
Returns the recurrence rule associated with this incidence.
Definition incidence.cpp:545
int duration() const
Returns -1 if the event recurs infinitely, 0 if the end date is set, otherwise the total number of re...
Definition recurrence.cpp:485
bool hasDueDate() const
Returns true if the todo has a due date, otherwise return false.
Definition todo.cpp:252
This file is part of the API for handling calendar data and defines the Event class.
This file is part of the API for handling calendar data and defines the FileStorage class.
This file is part of the API for handling calendar data and defines the Incidence class.
This file is part of the API for handling calendar data and defines the Journal class.
This file is part of the API for handling calendar data and defines the Todo class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.