Akonadi::CollectionCalendar Class
| Header: | #include <collectioncalendar.h> |
| CMake: | find_package(KPim6AkonadiCalendar REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCalendar) |
| Inherits: | Akonadi::CalendarBase |
Public Functions
| CollectionCalendar(const Akonadi::Collection &col, QObject *parent = nullptr) | |
| CollectionCalendar(QAbstractItemModel *model, const Akonadi::Collection &col, QObject *parent = nullptr) | |
| virtual | ~CollectionCalendar() override |
| Akonadi::Collection | collection() const |
| bool | hasRight(Akonadi::Collection::Right right) const |
| Akonadi::EntityTreeModel * | model() const |
| void | setCollection(const Akonadi::Collection &c) |
Reimplemented Public Functions
| virtual bool | addEvent(const KCalendarCore::Event::Ptr &event) override |
| virtual bool | addJournal(const KCalendarCore::Journal::Ptr &journal) override |
| virtual bool | addTodo(const KCalendarCore::Todo::Ptr &todo) override |
Signals
| void | calendarChanged() |
Detailed Description
Calendar representing a single Akonadi::Collection.
Member Function Documentation
[explicit] CollectionCalendar::CollectionCalendar(const Akonadi::Collection &col, QObject *parent = nullptr)
Creates a new CollectionCalendar for the given collection.
CollectionCalendar::CollectionCalendar(QAbstractItemModel *model, const Akonadi::Collection &col, QObject *parent = nullptr)
Creates a new CollectionCalendar for the given collection using the specified model.
[override virtual noexcept] CollectionCalendar::~CollectionCalendar()
Destroys the CollectionCalendar.
[override virtual] bool CollectionCalendar::addEvent(const KCalendarCore::Event::Ptr &event)
Reimplements: CalendarBase::addEvent(const KCalendarCore::Event::Ptr &event).
Adds an event to the calendar.
[override virtual] bool CollectionCalendar::addJournal(const KCalendarCore::Journal::Ptr &journal)
Reimplements: CalendarBase::addJournal(const KCalendarCore::Journal::Ptr &journal).
Adds a journal to the calendar.
[override virtual] bool CollectionCalendar::addTodo(const KCalendarCore::Todo::Ptr &todo)
Reimplements: CalendarBase::addTodo(const KCalendarCore::Todo::Ptr &todo).
Adds a todo to the calendar.
[signal] void CollectionCalendar::calendarChanged()
Emitted whenever an incidence is added, removed or changed
Akonadi::Collection CollectionCalendar::collection() const
Returns the collection associated with this calendar.
See also setCollection().
bool CollectionCalendar::hasRight(Akonadi::Collection::Right right) const
Returns whether the calendar has the given right.
Akonadi::EntityTreeModel *CollectionCalendar::model() const
Returns the model associated with this calendar.
void CollectionCalendar::setCollection(const Akonadi::Collection &c)
Sets the collection associated with this calendar.
See also collection().