KCal Library
calendarresources.cpp
Go to the documentation of this file.
193ResourceCalendar *CalendarResources::StandardDestinationPolicy::destination( Incidence *incidence )
This file is part of the API for handling calendar data and defines the CalendarResources class.
This class provides a Calendar which is composed of other Calendars known as "Resources".
Definition: calendarresources.h:59
bool hasCalendarResources()
Return true if we have resources configure.
Definition: calendarresources.cpp:619
int incrementChangeCount(ResourceCalendar *resource)
Increment the number of times this Resource has been changed by 1.
Definition: calendarresources.cpp:939
Journal * journal(const QString &uid)
Definition: calendarresources.cpp:714
bool deleteJournal(Journal *journal)
Definition: calendarresources.cpp:686
ResourceCalendar * resource(Incidence *incidence)
Returns the Resource associated with a specified Incidence.
Definition: calendarresources.cpp:782
void setDialogParentWidget(QWidget *parent)
Set the widget parent for new dialogs.
Definition: calendarresources.cpp:352
virtual void doSetTimeSpec(const KDateTime::Spec &timeSpec)
Definition: calendarresources.cpp:815
void slotSaveError(ResourceCalendar *resource, const QString &err)
Emits the signalErrorMessage signal with an error message when an error occurs saving a ResourceCalen...
Definition: calendarresources.cpp:976
Alarm::List alarmsTo(const KDateTime &to)
Return a list of Alarms that occur before the specified timestamp.
Definition: calendarresources.cpp:598
void signalResourceModified(ResourceCalendar *resource)
Signals that the Resource has been modified.
void resourceDeleted(ResourceCalendar *resource)
Emits the signalResourceDeleted signal for the specified resource.
Definition: calendarresources.cpp:810
void slotLoadError(ResourceCalendar *resource, const QString &err)
Emits the signalErrorMessage signal with an error message when an error occurs loading a ResourceCale...
Definition: calendarresources.cpp:970
Event * event(const QString &uid)
Definition: calendarresources.cpp:505
Journal::List rawJournalsForDate(const QDate &date)
Definition: calendarresources.cpp:741
void signalResourceDeleted(ResourceCalendar *resource)
Signals that an Incidence has been removed from the Resource.
Journal::List rawJournals(JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition: calendarresources.cpp:729
CalendarResourceManager * resourceManager() const
Returns the CalendarResourceManager used by this calendar.
Definition: calendarresources.cpp:332
int decrementChangeCount(ResourceCalendar *resource)
Decrement the number of times this Resource has been changed by 1.
Definition: calendarresources.cpp:952
void setStandardDestinationPolicy()
Set the destination policy such that Incidences are always added to the standard Resource.
Definition: calendarresources.cpp:337
void resourceModified(ResourceCalendar *resource)
Emits the signalResourceModified signal for the specified resource.
Definition: calendarresources.cpp:805
QWidget * dialogParentWidget()
Returns the current parent for new dialogs.
Definition: calendarresources.cpp:347
bool addIncidence(Incidence *incidence)
Inserts an Incidence into the calendar.
Definition: calendarresources.cpp:432
void endAddingIncidences()
Definition: calendarresources.cpp:933
Event::List rawEventsForDate(const KDateTime &dt)
Definition: calendarresources.cpp:652
Todo::List rawTodos(TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition: calendarresources.cpp:558
void beginAddingIncidences()
All addIncidence( Incidence * ), addTodo( Todo * ) addEvent( Event * ) and addJournal( Journal * ) ca...
Definition: calendarresources.cpp:928
bool addJournal(Journal *journal)
Definition: calendarresources.cpp:676
Ticket * requestSaveTicket(ResourceCalendar *resource)
Requests a ticket for saving the Calendar.
Definition: calendarresources.cpp:835
void signalErrorMessage(const QString &err)
Signals an error message.
Todo::List rawTodosForDate(const QDate &date)
Definition: calendarresources.cpp:586
Alarm::List alarms(const KDateTime &from, const KDateTime &to)
Definition: calendarresources.cpp:608
void readConfig(KConfig *config=0)
Reads the Resources settings from a config file.
Definition: calendarresources.cpp:275
bool beginChange(Incidence *incidence)
Definition: calendarresources.cpp:874
bool deleteEvent(Event *event)
Definition: calendarresources.cpp:474
void resourceAdded(ResourceCalendar *resource)
Add an active Resource to the Calendar, and loads that resource if it is open.
Definition: calendarresources.cpp:790
Event::List rawEvents(EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending)
Definition: calendarresources.cpp:664
CalendarResources(const KDateTime::Spec &timeSpec, const QString &family=QLatin1String("calendar"))
Construct CalendarResource object using a time specification (time zone, etc.) and a Family name.
Definition: calendarresources.cpp:234
ErrorFormat * exception()
Returns an exception, if there is any, containing information about the last error that occurred.
Definition: calendarresources.cpp:270
void setAskDestinationPolicy()
Set the destination policy such that Incidences are added to a Resource which is queried.
Definition: calendarresources.cpp:342
virtual void releaseSaveTicket(Ticket *ticket)
Releases the save Ticket.
Definition: calendarresources.cpp:868
void connectResource(ResourceCalendar *resource)
Connects all necessary signals and slots to the resource.
Definition: calendarresources.cpp:769
bool endChange(Incidence *incidence)
Definition: calendarresources.cpp:902
void signalResourceAdded(ResourceCalendar *resource)
Signals that an Incidence has been inserted to the Resource.
void deleteAllJournals()
Definition: calendarresources.cpp:706
static Todo::List sortTodos(Todo::List *todoList, TodoSortField sortField, SortDirection sortDirection)
Sort a list of Todos.
Definition: calendar.cpp:712
void calendarLoaded()
Signals that the calendar has been loaded into memory.
virtual Incidence::List incidences()
Returns a filtered list of all Incidences for this Calendar.
Definition: calendar.cpp:282
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
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 notifyIncidenceAdded(Incidence *incidence)
Let Calendar subclasses notify that they inserted an Incidence.
Definition: calendar.cpp:1159
void batchAddingEnds()
Incidence * incidence(const QString &uid)
Returns the Incidence associated with the given unique identifier.
Definition: calendar.cpp:669
void batchAddingBegins()
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
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
This class provides the interfaces for a calendar resource.
Definition: resourcecalendar.h:51
virtual bool addIncidence(Incidence *)
Add incidence to resource.
Definition: resourcecalendar.cpp:115
bool open()
bool isActive() const
static Resource * getResource(QList< Resource * > list, QWidget *parent=0)
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 KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.