KCalendarCore::MemoryCalendar
#include <memorycalendar.h>
Public Types | |
typedef QSharedPointer< MemoryCalendar > | Ptr |
Public Types inherited from KCalendarCore::Calendar | |
typedef QSharedPointer< Calendar > | Ptr |
Public Types inherited from QObject | |
typedef | QObjectList |
Additional Inherited Members | |
Properties inherited from KCalendarCore::Calendar | |
KCalendarCore::AccessMode | accessMode |
QIcon | icon |
QString | id |
bool | isLoading |
QString | name |
KCalendarCore::Person | owner |
QString | productId |
Properties inherited from QObject | |
objectName | |
Signals inherited from KCalendarCore::Calendar | |
void | accessModeChanged () |
void | filterChanged () |
void | iconChanged () |
void | idChanged () |
void | isLoadingChanged () |
void | nameChanged () |
void | ownerChanged () |
Static Public Member Functions inherited from KCalendarCore::Calendar | |
static Incidence::Ptr | createException (const Incidence::Ptr &incidence, const QDateTime &recurrenceId, bool thisAndFuture=false) |
static Incidence::List | mergeIncidenceList (const Event::List &events, const Todo::List &todos, const Journal::List &journals) |
static Event::List | sortEvents (Event::List &&eventList, EventSortField sortField, SortDirection sortDirection) |
static Journal::List | sortJournals (Journal::List &&journalList, JournalSortField sortField, SortDirection sortDirection) |
static Todo::List | sortTodos (Todo::List &&todoList, TodoSortField sortField, SortDirection sortDirection) |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Static Public Member Functions inherited from KCalendarCore::CustomProperties | |
static QByteArray | customPropertyName (const QByteArray &app, const QByteArray &key) |
Detailed Description
This class provides a calendar stored in memory.
Definition at line 31 of file memorycalendar.h.
Member Typedef Documentation
◆ Ptr
A shared pointer to a MemoryCalendar.
Definition at line 38 of file memorycalendar.h.
Constructor & Destructor Documentation
◆ MemoryCalendar() [1/2]
|
explicit |
Constructs a calendar with a specified time zone timeZone
.
The time zone is used as the default for creating or modifying incidences in the Calendar. The time zone does not alter existing incidences.
- Parameters
-
timeZone time specification
◆ MemoryCalendar() [2/2]
|
explicit |
◆ ~MemoryCalendar()
|
override |
Destroys the calendar.
Member Function Documentation
◆ addEvent()
|
overridevirtual |
Inserts an Event into the calendar.
- Parameters
-
event is a pointer to the Event to insert.
- Returns
- true if the Event was successfully inserted; false otherwise.
- See also
- deleteEvent()
Implements KCalendarCore::Calendar.
◆ addIncidence()
|
overridevirtual |
Inserts an Incidence into the calendar.
- Parameters
-
incidence is a pointer to the Incidence to insert.
- Returns
- true if the Incidence was successfully inserted; false otherwise.
- See also
- deleteIncidence()
Reimplemented from KCalendarCore::Calendar.
◆ addJournal()
|
overridevirtual |
Inserts a Journal into the calendar.
- Parameters
-
journal is a pointer to the Journal to insert.
- Returns
- true if the Journal was successfully inserted; false otherwise.
- See also
- deleteJournal()
Implements KCalendarCore::Calendar.
◆ addTodo()
|
overridevirtual |
Inserts a Todo into the calendar.
- Parameters
-
todo is a pointer to the Todo to insert.
- Returns
- true if the Todo was successfully inserted; false otherwise.
- See also
- deleteTodo()
Implements KCalendarCore::Calendar.
◆ alarms()
|
overridevirtual |
Returns a list of Alarms within a time range for this Calendar.
- Parameters
-
from is the starting timestamp. to is the ending timestamp. excludeBlockedAlarms if true, alarms belonging to blocked collections aren't returned.
- Returns
- the list of Alarms for the for the specified time range.
Implements KCalendarCore::Calendar.
◆ deleteEvent()
|
overridevirtual |
Removes an Event from the calendar.
- Parameters
-
event is a pointer to the Event to remove.
- Returns
- true if the Event was successfully remove; false otherwise.
- See also
- addEvent()
Implements KCalendarCore::Calendar.
◆ deleteEventInstances()
|
overridevirtual |
Delete all events that are instances of recurring event event
.
- Parameters
-
event is a pointer to a deleted Event
- Returns
- true if delete was successful; false otherwise
Implements KCalendarCore::Calendar.
◆ deleteIncidence()
|
overridevirtual |
Removes an Incidence from the calendar.
- Parameters
-
incidence is a pointer to the Incidence to remove.
- Returns
- true if the Incidence was successfully removed; false otherwise.
- See also
- addIncidence()
Reimplemented from KCalendarCore::Calendar.
◆ deleteIncidenceInstances()
|
overridevirtual |
Delete all incidences that are instances of recurring incidence incidence
.
- Parameters
-
incidence is a pointer to a deleted Incidence
- Returns
- true if delete was successful; false otherwise
Implements KCalendarCore::Calendar.
◆ deleteJournal()
|
overridevirtual |
Removes a Journal from the calendar.
- Parameters
-
journal is a pointer to the Journal to remove.
- Returns
- true if the Journal was successfully removed; false otherwise.
- See also
- addJournal()
Implements KCalendarCore::Calendar.
◆ deleteJournalInstances()
|
overridevirtual |
Delete all journals that are instances of recurring journal journal
.
- Parameters
-
journal is a pointer to a deleted Journal
- Returns
- true if delete was successful; false otherwise
Implements KCalendarCore::Calendar.
◆ deleteTodo()
|
overridevirtual |
Removes a Todo from the calendar.
- Parameters
-
todo is a pointer to the Todo to remove.
- Returns
- true if the Todo was successfully removed; false otherwise.
- See also
- addTodo()
Implements KCalendarCore::Calendar.
◆ deleteTodoInstances()
|
overridevirtual |
Delete all to-dos that are instances of recurring to-do todo
.
- Parameters
-
todo is a pointer to a deleted Todo
- Returns
- true if delete was successful; false otherwise
Implements KCalendarCore::Calendar.
◆ doSetTimeZone()
|
overridevirtual |
Let Calendar subclasses set the time specification.
- Parameters
-
timeZone is the time specification (time zone, etc.) for viewing Incidence dates.
Reimplemented from KCalendarCore::Calendar.
◆ event() [1/2]
|
overridevirtual |
Returns the Event associated with the given unique identifier.
- Parameters
-
uid is a unique identifier string. recurrenceId is possible recurrenceId of event, default is null
Implements KCalendarCore::Calendar.
◆ event() [2/2]
|
virtual |
Reimplemented from KCalendarCore::Calendar.
◆ eventInstances()
|
overridevirtual |
Returns a sorted, unfiltered list of all possible instances for this recurring Event.
- Parameters
-
event event to check for. Caller guarantees it's of type Event. sortField specifies the EventSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered event instances sorted as specified.
Implements KCalendarCore::Calendar.
◆ incidenceUpdate()
|
overridevirtual |
The IncidenceObserver interface.
This function is called before any changes are made.
- Parameters
-
uid is the string containing the incidence uid. recurrenceId is possible recurrenceid of incidence.
Implements KCalendarCore::IncidenceBase::IncidenceObserver.
◆ incidenceUpdated()
|
overridevirtual |
The Observer interface.
So far not implemented.
- Parameters
-
uid is the UID for the Incidence that has been updated. recurrenceId is possible recurrenceid of incidence.
Reimplemented from KCalendarCore::Calendar.
◆ instance()
Incidence::Ptr KCalendarCore::MemoryCalendar::instance | ( | const QString & | identifier | ) | const |
◆ journal()
|
overridevirtual |
Returns the Journal associated with the given unique identifier.
- Parameters
-
uid is a unique identifier string. recurrenceId is possible recurrenceId of journal, default is null
Implements KCalendarCore::Calendar.
◆ journalInstances()
|
overridevirtual |
Returns a sorted, unfiltered list of all instances for this recurring Journal.
- Parameters
-
journal journal to check for. Caller guarantees it's of type Journal. sortField specifies the JournalSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered journal instances sorted as specified.
Implements KCalendarCore::Calendar.
◆ rawEvents() [1/2]
|
overridevirtual |
Returns an unfiltered list of all Events occurring within a date range.
- Parameters
-
start is the starting date end is the ending date timeZone time zone to interpret start
andend
, or the calendar's default time zone if none is specifiedinclusive if true only Events which are completely included within the date range are returned.
- Returns
- the list of unfiltered Events occurring within the specified date range.
Implements KCalendarCore::Calendar.
◆ rawEvents() [2/2]
|
overridevirtual |
Returns a sorted, unfiltered list of all Events for this Calendar.
- Parameters
-
sortField specifies the EventSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered Events sorted as specified.
Implements KCalendarCore::Calendar.
◆ rawEventsForDate()
|
overridevirtual |
Returns an unfiltered list of all Events which occur on the given date.
- Parameters
-
date request unfiltered Event list for this QDate only. timeZone time zone to interpret date
, or the calendar's default time zone if none is specifiedsortField specifies the EventSortField. sortDirection specifies the SortDirection.
- Returns
- the list of unfiltered Events occurring on the specified QDate.
Implements KCalendarCore::Calendar.
◆ rawJournals()
|
overridevirtual |
Returns a sorted, unfiltered list of all Journals for this Calendar.
- Parameters
-
sortField specifies the JournalSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered Journals sorted as specified.
Implements KCalendarCore::Calendar.
◆ rawJournalsForDate()
|
overridevirtual |
Returns an unfiltered list of all Journals for on the specified date.
- Parameters
-
date request unfiltered Journals for this QDate only.
- Returns
- the list of unfiltered Journals for the specified date.
Implements KCalendarCore::Calendar.
◆ rawTodos() [1/2]
|
overridevirtual |
Returns an unfiltered list of all Todos occurring within a date range.
- Parameters
-
start is the starting date end is the ending date timeZone time zone to interpret start
andend
, or the calendar's default time zone if none is specifiedinclusive if true only Todos which are completely included within the date range are returned.
- Returns
- the list of unfiltered Todos occurring within the specified date range.
Implements KCalendarCore::Calendar.
◆ rawTodos() [2/2]
|
overridevirtual |
Returns a sorted, unfiltered list of all Todos for this Calendar.
- Parameters
-
sortField specifies the TodoSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered Todos sorted as specified.
Implements KCalendarCore::Calendar.
◆ rawTodosForDate()
|
overridevirtual |
Returns an unfiltered list of all Todos which due on the specified date.
- Parameters
-
date request unfiltered Todos due on this QDate.
- Returns
- the list of unfiltered Todos due on the specified date.
Implements KCalendarCore::Calendar.
◆ setUpdateLastModifiedOnChange()
void KCalendarCore::MemoryCalendar::setUpdateLastModifiedOnChange | ( | bool | update | ) |
Govern if the memory calendar is changing the lastModified field of incidence it owns, on incidence updates.
- Parameters
-
update,when true, the lastModified field of an incidence owned by the calendar is set to the current date time on any change of the incidence.
- Since
- 5.80
◆ todo()
|
overridevirtual |
Returns the Todo associated with the given unique identifier.
- Parameters
-
uid is a unique identifier string. recurrenceId is possible recurrenceId of todo, default is null
Implements KCalendarCore::Calendar.
◆ todoInstances()
|
overridevirtual |
Returns a sorted, unfiltered list of all possible instances for this recurring Todo.
- Parameters
-
todo todo to check for. Caller guarantees it's of type Todo. sortField specifies the TodoSortField. sortDirection specifies the SortDirection.
- Returns
- the list of all unfiltered todo instances sorted as specified.
Implements KCalendarCore::Calendar.
◆ updateLastModifiedOnChange()
bool KCalendarCore::MemoryCalendar::updateLastModifiedOnChange | ( | ) | const |
Return true if the memory calendar is updating the lastModified field of incidence owned by the calendar on any incidence change.
- Since
- 5.80
◆ virtual_hook()
|
overrideprotectedvirtual |
Standard trick to add virtuals later.
- Parameters
-
id is any integer unique to this class which we will use to identify the method to be called. data is a pointer to some glob of data, typically a struct.
Reimplemented from KCalendarCore::Calendar.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.