Akonadi::ETMCalendar

Akonadi::ETMCalendar Class Reference

#include <etmcalendar.h>

Inheritance diagram for Akonadi::ETMCalendar:

Public Types

enum  CollectionColumn { CollectionTitle = 0, CollectionColumnCount }
 
typedef QSharedPointer< ETMCalendarPtr
 
- Public Types inherited from Akonadi::CalendarBase
typedef QSharedPointer< CalendarBasePtr
 
- Public Types inherited from KCalendarCore::MemoryCalendar
typedef QSharedPointer< MemoryCalendarPtr
 
- Public Types inherited from KCalendarCore::Calendar
typedef QSharedPointer< CalendarPtr
 

Signals

void calendarChanged ()
 
void collectionChanged (const Akonadi::Collection &collection, const QSet< QByteArray > &attributeNames)
 
void collectionsAdded (const Akonadi::Collection::List &collection)
 
void collectionsRemoved (const Akonadi::Collection::List &collection)
 
- Signals inherited from Akonadi::CalendarBase
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 filterChanged ()
 

Public Member Functions

 ETMCalendar (QObject *parent=nullptr)
 
 ETMCalendar (const QStringList &mimeTypes, QObject *parent=nullptr)
 
 ETMCalendar (ETMCalendar *calendar, QObject *parent=nullptr)
 
 ETMCalendar (Monitor *monitor, QObject *parent=nullptr)
 
 ~ETMCalendar () override
 
KCalendarCore::Alarm::List alarms (const QDateTime &from, const QDateTime &to, bool excludeBlockedAlarms=false) const override
 
KCheckableProxyModelcheckableProxyModel () const
 
Akonadi::Collection collection (Akonadi::Collection::Id) const
 
bool collectionFilteringEnabled () const
 
Akonadi::EntityTreeModelentityTreeModel () const
 
bool hasRight (const Akonadi::Item &item, Akonadi::Collection::Right right) const
 
bool hasRight (const QString &uid, Akonadi::Collection::Right right) const
 
bool isLoaded () const override
 
QAbstractItemModelmodel () const
 
void setCollectionFilteringEnabled (bool enable)
 
- Public Member Functions inherited from Akonadi::CalendarBase
 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 (const QString &uid) const
 
Akonadi::Item item (const KCalendarCore::Incidence::Ptr &incidence) const
 
Akonadi::Item item (Akonadi::Item::Id) 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 QTimeZone &timeZone)
 
 MemoryCalendar (const QByteArray &timeZoneId)
 
Alarm::List alarmsTo (const QDateTime &to) const
 
void close () override
 
Event::Ptr deletedEvent (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Event::List deletedEvents (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Journal::Ptr deletedJournal (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Journal::List deletedJournals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Todo::Ptr deletedTodo (const QString &uid, const QDateTime &recurrenceId={}) const override
 
Todo::List deletedTodos (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
bool deleteEventInstances (const Event::Ptr &event) override
 
bool deleteIncidenceInstances (const Incidence::Ptr &incidence) override
 
bool deleteJournalInstances (const Journal::Ptr &journal) 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 (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const override
 
Event::List rawEvents (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const override
 
Event::List rawEventsForDate (const QDateTime &dt) 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
 
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
 
- Public Member Functions inherited from KCalendarCore::Calendar
 Calendar (const QTimeZone &timeZone)
 
 Calendar (const QByteArray &timeZoneId)
 
bool addNotebook (const QString &notebook, bool isVisible)
 
bool batchAdding () const
 
virtual bool beginChange (const Incidence::Ptr &incidence)
 
QStringList categories () const
 
virtual void clearNotebookAssociations ()
 
QString defaultNotebook () const
 
Incidence::Ptr deleted (const QString &uid, const QDateTime &recurrenceId={}) const
 
bool deleteNotebook (const QString &notebook)
 
virtual Incidence::List duplicates (const Incidence::Ptr &incidence)
 
virtual bool endChange (const Incidence::Ptr &incidence)
 
virtual Event::List events (EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
Event::List events (const QDateTime &dt) const
 
Event::List events (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const
 
Event::List events (const QDate &date, const QTimeZone &timeZone={}, EventSortField sortField=EventSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
CalFilterfilter () const
 
bool hasValidNotebook (const QString &notebook) 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 incidences (const QString &notebook) const
 
virtual Incidence::List incidencesFromSchedulingID (const QString &sid) const
 
virtual Incidence::List instances (const Incidence::Ptr &incidence) const
 
bool isAncestorOf (const Incidence::Ptr &ancestor, const Incidence::Ptr &incidence) const
 
bool isModified () const
 
virtual bool isSaving () const
 
bool isVisible (const Incidence::Ptr &incidence) const
 
bool isVisible (const QString &notebook) const
 
virtual Journal::List journals (JournalSortField sortField=JournalSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
virtual Journal::List journals (const QDate &date) const
 
virtual QString notebook (const Incidence::Ptr &incidence) const
 
virtual QString notebook (const QString &uid) const
 
virtual QStringList notebooks () const
 
Person owner () const
 
QString productId () const
 
virtual Incidence::List rawIncidences () const
 
void registerObserver (CalendarObserver *observer)
 
Incidence::List relations (const QString &uid) const
 
virtual bool reload ()
 
virtual void removeRelations (const Incidence::Ptr &incidence)
 
virtual bool save ()
 
bool setDefaultNotebook (const QString &notebook)
 
void setFilter (CalFilter *filter)
 
void setModified (bool modified)
 
virtual bool setNotebook (const Incidence::Ptr &incidence, const QString &notebook)
 
void setOwner (const Person &owner)
 
void setProductId (const QString &id)
 
void setTimeZone (const QTimeZone &timeZone)
 
void setTimeZoneId (const QByteArray &timeZoneId)
 
virtual void setupRelations (const Incidence::Ptr &incidence)
 
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 (TodoSortField sortField=TodoSortUnsorted, SortDirection sortDirection=SortDirectionAscending) const
 
virtual Todo::List todos (const QDate &start, const QDate &end, const QTimeZone &timeZone={}, bool inclusive=false) const
 
void unregisterObserver (CalendarObserver *observer)
 
bool updateNotebook (const QString &notebook, bool isVisible)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
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 ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
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 QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
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_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 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
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, 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())
 

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 (const Event::List &eventList, EventSortField sortField, SortDirection sortDirection)
 
static Journal::List sortJournals (const Journal::List &journalList, JournalSortField sortField, SortDirection sortDirection)
 
static Todo::List sortTodos (const 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 *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
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, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (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)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from Akonadi::CalendarBase
 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
 
bool deletionTracking () const
 
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 setDeletionTracking (bool enable)
 
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 inherited from Akonadi::CalendarBase
QScopedPointer< CalendarBasePrivate > d_ptr
 

Detailed Description

A KCalendarCore::Calendar that uses an EntityTreeModel to populate itself.

All non-idempotent KCalendarCore::Calendar methods interact with Akonadi. If you need a need a non-persistent calendar use FetchJobCalendar.

ETMCalendar allows to be populated with only a subset of your calendar items, by using a KCheckableProxyModel to specify which collections to be used and/or by setting a KCalendarCore::CalFilter.

See also
FetchJobCalendar
CalendarBase
Author
Sérgio Martins iamse[email protected]rgio[email protected]@gmai[email protected]l.co[email protected]m
Since
4.11

Definition at line 40 of file etmcalendar.h.

Constructor & Destructor Documentation

ETMCalendar::ETMCalendar ( QObject parent = nullptr)
explicit

Constructs a new ETMCalendar.

Loading begins immediately, asynchronously.

Definition at line 438 of file etmcalendar.cpp.

ETMCalendar::ETMCalendar ( const QStringList mimeTypes,
QObject parent = nullptr 
)
explicit

Constructs a new ETMCalendar that will only load the specified mime types.

Use this ctor to ignore journals or to-dos for example. If no mime types are specified, all mime types will be used.

Definition at line 445 of file etmcalendar.cpp.

ETMCalendar::ETMCalendar ( ETMCalendar calendar,
QObject parent = nullptr 
)
explicit

Constructs a new ETMCalendar.

This overload exists for optimization reasons, it allows to share an EntityTreeModel across several ETMCalendars to save memory.

Usually when having many ETMCalendars, the only bit that's different is the collection selection. The memory hungry EntityTreeModel is the same, so should be shared.

Parameters
calendaran existing ETMCalendar who's EntityTreeModel is to be used.
Since
4.13

Definition at line 453 of file etmcalendar.cpp.

ETMCalendar::~ETMCalendar ( )
override

Destroys this ETMCalendar.

Definition at line 481 of file etmcalendar.cpp.

Member Function Documentation

KCalendarCore::Alarm::List ETMCalendar::alarms ( const QDateTime from,
const QDateTime to,
bool  excludeBlockedAlarms = false 
) const
overridevirtual

Returns all alarms occurring in a specified time interval.

Parameters
fromstart date of interval
toend data of interval
excludeBlockedAlarmsif true, alarms belonging to blocked collections aren't returned.

Reimplemented from KCalendarCore::MemoryCalendar.

Definition at line 518 of file etmcalendar.cpp.

void Akonadi::ETMCalendar::calendarChanged ( )
signal

Emitted whenever an Item is inserted, removed or modified.

KCheckableProxyModel * ETMCalendar::checkableProxyModel ( ) const

Returns the KCheckableProxyModel used to select from which collections should the calendar be populated from.

Definition at line 512 of file etmcalendar.cpp.

Akonadi::Collection ETMCalendar::collection ( Akonadi::Collection::Id  id) const

Returns the collection having id.

Use this instead of creating a new collection, the returned collection will have the correct right, name, display name, etc all set.

Definition at line 486 of file etmcalendar.cpp.

void Akonadi::ETMCalendar::collectionChanged ( const Akonadi::Collection collection,
const QSet< QByteArray > &  attributeNames 
)
signal

This signal is emitted if a collection has been changed (properties or attributes).

Parameters
collectionThe changed collection.
attributeNamesThe names of the collection attributes that have been changed.
bool ETMCalendar::collectionFilteringEnabled ( ) const

Returns whether collection filtering is enabled.

Default is true.

See also
setCollectionFilteringEnabled()

Definition at line 608 of file etmcalendar.cpp.

void Akonadi::ETMCalendar::collectionsAdded ( const Akonadi::Collection::List collection)
signal

This signal is emitted when one or more collections are added to the ETM.

Parameters
collectionnon empty list of collections
void Akonadi::ETMCalendar::collectionsRemoved ( const Akonadi::Collection::List collection)
signal

This signal is emitted when one or more collections are deleted from the ETM.

Parameters
collectionnon empty list of collections
Akonadi::EntityTreeModel * ETMCalendar::entityTreeModel ( ) const

Returns the underlying EntityTreeModel.

For most uses, you'll want model() or the KCalendarCore::Calendar interface instead.

It contains every item and collection with calendar mime type, doesn't have KCalendarCore filtering and doesn't honour any collection selection.

This method is exposed for performance reasons only, so you can reuse it, since it's resource savy.

See also
model()

Definition at line 584 of file etmcalendar.cpp.

bool ETMCalendar::hasRight ( const Akonadi::Item &  item,
Akonadi::Collection::Right  right 
) const

Returns true if the collection owning incidence has righ right.

Definition at line 497 of file etmcalendar.cpp.

bool ETMCalendar::hasRight ( const QString uid,
Akonadi::Collection::Right  right 
) const

This is an overloaded function.

Parameters
uidthe identifier for the incidence to check for rights
rightthe access right to check for
See also
hasRight()

Definition at line 492 of file etmcalendar.cpp.

bool ETMCalendar::isLoaded ( ) const
overridevirtual

Returns if the calendar already finished loading.

Reimplemented from Akonadi::CalendarBase.

Definition at line 614 of file etmcalendar.cpp.

QAbstractItemModel * ETMCalendar::model ( ) const

Convenience method to access the contents of this KCalendarCore::Calendar through a QAIM interface.

Like through calendar interface, the model only items of selected collections. To select or unselect collections, see checkableProxyModel().

See also
checkableProxyModel()
entityTreeModel()

Definition at line 506 of file etmcalendar.cpp.

void ETMCalendar::setCollectionFilteringEnabled ( bool  enable)

Enable or disable collection filtering.

If true, the calendar will only contain items of selected collections.

Parameters
enableenables collection filtering if set as true
See also
checkableProxyModel()
collectionFilteringEnabled()

Definition at line 590 of file etmcalendar.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 4 2020 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.