Akonadi::CalendarBase

Search for usage in LXR

#include <calendarbase.h>

Inheritance diagram for Akonadi::CalendarBase:

Public Types

using Ptr = QSharedPointer<CalendarBase>
 
- Public Types inherited from KCalendarCore::MemoryCalendar
typedef QSharedPointer< MemoryCalendarPtr
 
- Public Types inherited from KCalendarCore::Calendar
typedef QSharedPointer< CalendarPtr
 
- Public Types inherited from QObject
typedef  QObjectList
 

Signals

void createFinished (bool success, const QString &errorMessage)
 
void deleteFinished (bool success, const QString &errorMessage)
 
void modifyFinished (bool success, const QString &errorMessage)
 
- Signals inherited from KCalendarCore::Calendar
void accessModeChanged ()
 
void filterChanged ()
 
void iconChanged ()
 
void idChanged ()
 
void isLoadingChanged ()
 
void nameChanged ()
 
void ownerChanged ()
 

Public Member Functions

 CalendarBase (QObject *parent=nullptr)
 
 ~CalendarBase () override
 
bool addEvent (const KCalendarCore::Event::Ptr &event) override
 
bool addIncidence (const KCalendarCore::Incidence::Ptr &incidence) override
 
bool addJournal (const KCalendarCore::Journal::Ptr &journal) override
 
bool addTodo (const KCalendarCore::Todo::Ptr &todo) override
 
KCalendarCore::Incidence::List childIncidences (const QString &parentUid) const
 
KCalendarCore::Incidence::List childIncidences (Item::Id parentId) const
 
Akonadi::Item::List childItems (const QString &parentUid) const
 
Akonadi::Item::List childItems (Item::Id parentId) const
 
bool deleteEvent (const KCalendarCore::Event::Ptr &event) override
 
bool deleteIncidence (const KCalendarCore::Incidence::Ptr &incidence) override
 
bool deleteJournal (const KCalendarCore::Journal::Ptr &journal) override
 
bool deleteTodo (const KCalendarCore::Todo::Ptr &todo) override
 
void endBatchAdding () override
 
Akonadi::IncidenceChanger * incidenceChanger () const
 
Akonadi::Item item (Akonadi::Item::Id) const
 
Akonadi::Item item (const KCalendarCore::Incidence::Ptr &incidence) const
 
Akonadi::Item item (const QString &uid) const
 
Akonadi::Item::List itemList (const KCalendarCore::Incidence::List &incidenceList) const
 
Akonadi::Item::List items (Akonadi::Collection::Id=-1) const
 
bool modifyIncidence (const KCalendarCore::Incidence::Ptr &newIncidence)
 
void startBatchAdding () override
 
- Public Member Functions inherited from KCalendarCore::MemoryCalendar
 MemoryCalendar (const QByteArray &timeZoneId)
 
 MemoryCalendar (const QTimeZone &timeZone)
 
bool addEvent (const Event::Ptr &event) override
 
bool addIncidence (const Incidence::Ptr &incidence) override
 
bool addJournal (const Journal::Ptr &journal) override
 
bool addTodo (const Todo::Ptr &todo) override
 
Alarm::List alarms (const QDateTime &from, const QDateTime &to, bool excludeBlockedAlarms=false) const override
 
bool deleteEvent (const Event::Ptr &event) override
 
bool deleteEventInstances (const Event::Ptr &event) override
 
bool deleteIncidence (const Incidence::Ptr &incidence) override
 
bool deleteIncidenceInstances (const Incidence::Ptr &incidence) override
 
bool deleteJournal (const Journal::Ptr &journal) override
 
bool deleteJournalInstances (const Journal::Ptr &journal) override
 
bool deleteTodo (const Todo::Ptr &todo) override
 
bool deleteTodoInstances (const Todo::Ptr &todo) override
 
void doSetTimeZone (const QTimeZone &timeZone) override
 
Event::Ptr event (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Event::List eventInstances (const Incidence::Ptr &event, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
void incidenceUpdate (const QString &uid, const QDateTime &recurrenceId) override
 
void incidenceUpdated (const QString &uid, const QDateTime &recurrenceId) override
 
Incidence::Ptr instance (const QString &identifier) const
 
Journal::Ptr journal (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Journal::List journalInstances (const Incidence::Ptr &journal, JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Event::List rawEvents (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const override
 
Event::List rawEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Event::List rawEventsForDate (const QDate &date, const QTimeZone &timeZone={}, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Journal::List rawJournals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Journal::List rawJournalsForDate (const QDate &date) const override
 
Todo::List rawTodos (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const override
 
Todo::List rawTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Todo::List rawTodosForDate (const QDate &date) const override
 
void setUpdateLastModifiedOnChange (bool update)
 
Todo::Ptr todo (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Todo::List todoInstances (const Incidence::Ptr &todo, TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
bool updateLastModifiedOnChange () const
 
- Public Member Functions inherited from KCalendarCore::Calendar
 Calendar (const QByteArray &timeZoneId)
 
 Calendar (const QTimeZone &timeZone)
 
AccessMode accessMode () const
 
Alarm::List alarmsTo (const QDateTime &to) const
 
bool batchAdding () const
 
virtual bool beginChange (const Incidence::Ptr &incidence)
 
QStringList categories () const
 
virtual bool endChange (const Incidence::Ptr &incidence)
 
Event::List events (const QDate &date, const QTimeZone &timeZone={}, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
Event::List events (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const
 
Event::List events (const QDateTime &dt) const
 
virtual Event::List events (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
CalFilterfilter () const
 
QIcon icon () const
 
QString id () const
 
Incidence::Ptr incidence (const QString &uid, const QDateTime &recurrenceId={}) const
 
virtual Incidence::Ptr incidenceFromSchedulingID (const QString &sid) const
 
virtual Incidence::List incidences () const
 
virtual Incidence::List incidences (const QDate &date) const
 
virtual Incidence::List incidencesFromSchedulingID (const QString &sid) const
 
virtual Incidence::List instances (const Incidence::Ptr &incidence) const
 
bool isLoading () const
 
bool isModified () const
 
virtual Journal::List journals (const QDate &date) const
 
virtual Journal::List journals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
QString name () const
 
Person owner () const
 
QString productId () const
 
virtual Incidence::List rawIncidences () const
 
void registerObserver (CalendarObserver *observer)
 
void setAccessMode (const AccessMode mode)
 
void setFilter (CalFilter *filter)
 
void setIcon (const QIcon &icon)
 
void setId (const QString &id)
 
void setModified (bool modified)
 
void setName (const QString &name)
 
void setOwner (const Person &owner)
 
void setProductId (const QString &id)
 
void setTimeZone (const QTimeZone &timeZone)
 
void setTimeZoneId (const QByteArray &timeZoneId)
 
void shiftTimes (const QTimeZone &oldZone, const QTimeZone &newZone)
 
QTimeZone timeZone () const
 
QByteArray timeZoneId () const
 
virtual Todo::List todos (const QDate &date) const
 
virtual Todo::List todos (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const
 
virtual Todo::List todos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
void unregisterObserver (CalendarObserver *observer)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from KCalendarCore::CustomProperties
 CustomProperties (const CustomProperties &other)
 
QMap< QByteArray, QStringcustomProperties () const
 
QString customProperty (const QByteArray &app, const QByteArray &key) const
 
QString nonKDECustomProperty (const QByteArray &name) const
 
QString nonKDECustomPropertyParameters (const QByteArray &name) const
 
CustomPropertiesoperator= (const CustomProperties &other)
 
bool operator== (const CustomProperties &properties) const
 
void removeCustomProperty (const QByteArray &app, const QByteArray &key)
 
void removeNonKDECustomProperty (const QByteArray &name)
 
void setCustomProperties (const QMap< QByteArray, QString > &properties)
 
void setCustomProperty (const QByteArray &app, const QByteArray &key, const QString &value)
 
void setNonKDECustomProperty (const QByteArray &name, const QString &value, const QString &parameters=QString())
 
- Public Member Functions inherited from KCalendarCore::IncidenceBase::IncidenceObserver

Protected Member Functions

 CalendarBase (CalendarBasePrivate *const d, QObject *parent)
 
- Protected Member Functions inherited from KCalendarCore::MemoryCalendar
void virtual_hook (int id, void *data) override
 
- Protected Member Functions inherited from KCalendarCore::Calendar
void appendAlarms (Alarm::List &alarms, const Incidence::Ptr &incidence, const QDateTime &from, const QDateTime &to) const
 
void appendRecurringAlarms (Alarm::List &alarms, const Incidence::Ptr &incidence, const QDateTime &from, const QDateTime &to) const
 
void customPropertyUpdated () override
 
void notifyIncidenceAboutToBeDeleted (const Incidence::Ptr &incidence)
 
void notifyIncidenceAdded (const Incidence::Ptr &incidence)
 
void notifyIncidenceAdditionCanceled (const Incidence::Ptr &incidence)
 
void notifyIncidenceChanged (const Incidence::Ptr &incidence)
 
void notifyIncidenceDeleted (const Incidence::Ptr &incidence)
 
void setIsLoading (bool isLoading)
 
void setObserversEnabled (bool enabled)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from KCalendarCore::CustomProperties
virtual void customPropertyUpdate ()
 

Protected Attributes

std::unique_ptr< CalendarBasePrivate > const d_ptr
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- 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

The base class for all akonadi aware calendars.

Because it inherits KCalendarCore::Calendar, it provides seamless integration with KCalendarCore and KCalUtils libraries eliminating any need for adapter ( akonadi<->KCalendarCore ) classes.

See also
ETMCalendar
FetchJobCalendar
Author
Sérgio Martins sergi.nosp@m.o.ma.nosp@m.rtins.nosp@m.@kda.nosp@m.b.com
Since
4.11

Definition at line 37 of file calendarbase.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ CalendarBase() [1/2]

CalendarBase::CalendarBase ( QObject * parent = nullptr)
explicit

Constructs a CalendarBase object.

Definition at line 378 of file calendarbase.cpp.

◆ ~CalendarBase()

CalendarBase::~CalendarBase ( )
overridedefault

Destroys the calendar.

◆ CalendarBase() [2/2]

CalendarBase::CalendarBase ( CalendarBasePrivate *const d,
QObject * parent )
protected

Definition at line 385 of file calendarbase.cpp.

Member Function Documentation

◆ addEvent()

bool CalendarBase::addEvent ( const KCalendarCore::Event::Ptr & event)
overridevirtual

Adds an Event to the calendar.

It's added to akonadi in the background

See also
createFinished().
Parameters
eventthe event to be added

Implements KCalendarCore::Calendar.

Reimplemented in Akonadi::CollectionCalendar.

Definition at line 543 of file calendarbase.cpp.

◆ addIncidence()

bool CalendarBase::addIncidence ( const KCalendarCore::Incidence::Ptr & incidence)
overridevirtual

Adds an incidence to the calendar.

It's added to akonadi in the background

See also
createFinished().
Parameters
incidencethe incidence to add

Reimplemented from KCalendarCore::Calendar.

Definition at line 573 of file calendarbase.cpp.

◆ addJournal()

bool CalendarBase::addJournal ( const KCalendarCore::Journal::Ptr & journal)
overridevirtual

Adds a Journal to the calendar.

It's added to akonadi in the background

See also
createFinished().
Parameters
journalthe journal to add

Implements KCalendarCore::Calendar.

Reimplemented in Akonadi::CollectionCalendar.

Definition at line 563 of file calendarbase.cpp.

◆ addTodo()

bool CalendarBase::addTodo ( const KCalendarCore::Todo::Ptr & todo)
overridevirtual

Adds a Todo to the calendar.

It's added to akonadi in the background

See also
createFinished().
Parameters
todothe todo to add

Implements KCalendarCore::Calendar.

Reimplemented in Akonadi::CollectionCalendar.

Definition at line 553 of file calendarbase.cpp.

◆ childIncidences() [1/2]

KCalendarCore::Incidence::List CalendarBase::childIncidences ( const QString & parentUid) const
nodiscard

Returns the child incidences of the parent identified by parentUid.

Only the direct children are returned

Parameters
parentUididentifier of the parent incidence

Definition at line 491 of file calendarbase.cpp.

◆ childIncidences() [2/2]

KCalendarCore::Incidence::List CalendarBase::childIncidences ( Item::Id parentId) const
nodiscard

Returns the child incidences of the parent identified by parentId.

Only the direct children are returned

Parameters
parentIdidentifier of the parent item

Definition at line 471 of file calendarbase.cpp.

◆ childItems() [1/2]

Akonadi::Item::List CalendarBase::childItems ( const QString & parentUid) const
nodiscard

Returns the child items of the parent identified by parentUid.

Only the direct children are returned

Parameters
parentUididentifier of the parent incidence

Definition at line 527 of file calendarbase.cpp.

◆ childItems() [2/2]

Akonadi::Item::List CalendarBase::childItems ( Item::Id parentId) const
nodiscard

Returns the child items of the parent identified by parentId.

Only the direct children are returned

Parameters
parentIdidentifier of the parent item

Definition at line 507 of file calendarbase.cpp.

◆ createFinished

void Akonadi::CalendarBase::createFinished ( bool success,
const QString & errorMessage )
signal

This signal is emitted when an incidence is created in akonadi through add{Incidence,Event,Todo,Journal}.

Parameters
successthe success of the operation
errorMessageif success is false, contains the error message

◆ deleteEvent()

bool CalendarBase::deleteEvent ( const KCalendarCore::Event::Ptr & event)
overridevirtual

Deletes an Event from the calendar.

It's removed from akonadi in the background

See also
deleteFinished().
Parameters
eventthe event to be deleted

Implements KCalendarCore::Calendar.

Definition at line 548 of file calendarbase.cpp.

◆ deleteFinished

void Akonadi::CalendarBase::deleteFinished ( bool success,
const QString & errorMessage )
signal

This signal is emitted when an incidence is deleted in akonadi through delete{Incidence,Event,Todo,Journal}.

Parameters
successthe success of the operation
errorMessageif success is false, contains the error message

◆ deleteIncidence()

bool CalendarBase::deleteIncidence ( const KCalendarCore::Incidence::Ptr & incidence)
overridevirtual

Deletes an incidence from the calendar.

It's removed from akonadi in the background

See also
deleteFinished().
Parameters
incidencethe incidence to delete

Reimplemented from KCalendarCore::Calendar.

Definition at line 613 of file calendarbase.cpp.

◆ deleteJournal()

bool CalendarBase::deleteJournal ( const KCalendarCore::Journal::Ptr & journal)
overridevirtual

Deletes a Journal from the calendar.

It's removed from akonadi in the background

See also
deleteFinished().
Parameters
journalthe journal to delete

Implements KCalendarCore::Calendar.

Definition at line 568 of file calendarbase.cpp.

◆ deleteTodo()

bool CalendarBase::deleteTodo ( const KCalendarCore::Todo::Ptr & todo)
overridevirtual

Deletes a Todo from the calendar.

It's removed from akonadi in the background

See also
deleteFinished().
Parameters
todothe todo to delete

Implements KCalendarCore::Calendar.

Definition at line 558 of file calendarbase.cpp.

◆ endBatchAdding()

void CalendarBase::endBatchAdding ( )
overridevirtual

Tells the Calendar that you stopped adding a batch of incidences.

See also
startBatchAdding()

Reimplemented from KCalendarCore::Calendar.

Definition at line 644 of file calendarbase.cpp.

◆ incidenceChanger()

IncidenceChanger * CalendarBase::incidenceChanger ( ) const
nodiscard

Returns the IncidenceChanger used by this calendar to make changes in akonadi.

Use this if you need the defaults used by CalendarBase.

Definition at line 633 of file calendarbase.cpp.

◆ item() [1/3]

Akonadi::Item CalendarBase::item ( Akonadi::Item::Id id) const
nodiscard

Returns the Item with id or an invalid Item if not found.

Definition at line 394 of file calendarbase.cpp.

◆ item() [2/3]

Item CalendarBase::item ( const KCalendarCore::Incidence::Ptr & incidence) const
nodiscard

Returns the Item containing incidence or an invalid Item if the incidence isn't found.

Definition at line 432 of file calendarbase.cpp.

◆ item() [3/3]

Akonadi::Item CalendarBase::item ( const QString & uid) const
nodiscard

Returns the Item containing the incidence with uid uid or an invalid Item if the incidence isn't found.

See also
Use item(Incidence::Ptr) instead where possible. This function doesn't take exceptions (recurrenceId) into account (and thus always returns the main event).

Definition at line 407 of file calendarbase.cpp.

◆ itemList()

Akonadi::Item::List CalendarBase::itemList ( const KCalendarCore::Incidence::List & incidenceList) const
nodiscard

Returns the item list that corresponds to the incidenceList.

Definition at line 455 of file calendarbase.cpp.

◆ items()

Akonadi::Item::List CalendarBase::items ( Akonadi::Collection::Id id = -1) const
nodiscard

Returns the list of items contained in this calendar that belong to the specified collection.

See also
incidences()
Since
4.12

Definition at line 437 of file calendarbase.cpp.

◆ modifyFinished

void Akonadi::CalendarBase::modifyFinished ( bool success,
const QString & errorMessage )
signal

This signal is emitted when an incidence is modified in akonadi through modifyIncidence().

Parameters
successthe success of the operation
errorMessageif success is false, contains the error message

◆ modifyIncidence()

bool CalendarBase::modifyIncidence ( const KCalendarCore::Incidence::Ptr & newIncidence)

Modifies an incidence.

The incidence with the same uid as newIncidence will be updated with the contents of

Parameters
newIncidencethe incidence to modify

Definition at line 624 of file calendarbase.cpp.

◆ startBatchAdding()

void CalendarBase::startBatchAdding ( )
overridevirtual

Call this to tell the calendar that you're adding a batch of incidences.

So it doesn't, for example, ask the destination for each incidence.

See also
endBatchAdding()

Reimplemented from KCalendarCore::Calendar.

Definition at line 639 of file calendarbase.cpp.

Member Data Documentation

◆ d_ptr

std::unique_ptr<CalendarBasePrivate> const Akonadi::CalendarBase::d_ptr
protected

Definition at line 221 of file calendarbase.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.