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