CalendarSupport::CollectionSelection Class

The CollectionSelection class. More...

Header: #include <CalendarSupport/CollectionSelection>
CMake: find_package(KPim6CalendarSupport REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::CalendarSupport)
Inherits: QObject

Public Functions

CollectionSelection(QItemSelectionModel *selectionModel, QObject *parent = nullptr)
virtual ~CollectionSelection() override
bool contains(Akonadi::Collection::Id id) const
bool contains(const Akonadi::Collection &c) const
bool hasSelection() const
QItemSelectionModel *model() const
QList<Akonadi::Collection::Id> selectedCollectionIds() const
Akonadi::Collection::List selectedCollections() const

Signals

void collectionDeselected(const Akonadi::Collection &)
void collectionSelected(const Akonadi::Collection &)
void selectionChanged(const Akonadi::Collection::List &, const Akonadi::Collection::List &)

Detailed Description

Member Function Documentation

[explicit] CollectionSelection::CollectionSelection(QItemSelectionModel *selectionModel, QObject *parent = nullptr)

[override virtual noexcept] CollectionSelection::~CollectionSelection()

[signal] void CollectionSelection::collectionDeselected(const Akonadi::Collection &)

[signal] void CollectionSelection::collectionSelected(const Akonadi::Collection &)

bool CollectionSelection::contains(Akonadi::Collection::Id id) const

bool CollectionSelection::contains(const Akonadi::Collection &c) const

bool CollectionSelection::hasSelection() const

QItemSelectionModel *CollectionSelection::model() const

QList<Akonadi::Collection::Id> CollectionSelection::selectedCollectionIds() const

Akonadi::Collection::List CollectionSelection::selectedCollections() const

[signal] void CollectionSelection::selectionChanged(const Akonadi::Collection::List &, const Akonadi::Collection::List &)