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