PimCommon::SelectMultiCollectionDialog Class

class PimCommon::SelectMultiCollectionDialog

The SelectMultiCollectionDialog class provides a dialog for selecting multiple Akonadi collections Author: Laurent Montel <montel@kde.org>. More...

Header: #include <PimCommonAkonadi/SelectMultiCollectionDialog>
CMake: find_package(KPim6PimCommonAkonadi REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::PimCommonAkonadi)

Public Functions

SelectMultiCollectionDialog(const QString &mimetype, QWidget *parent = nullptr)
SelectMultiCollectionDialog(const QString &mimetype, const QList<Akonadi::Collection::Id> &selectedCollection, QWidget *parent = nullptr)
virtual ~SelectMultiCollectionDialog() override
QList<Akonadi::Collection> selectedCollection() const

Detailed Description

Member Function Documentation

[explicit] SelectMultiCollectionDialog::SelectMultiCollectionDialog(const QString &mimetype, QWidget *parent = nullptr)

Constructs a SelectMultiCollectionDialog. @param mimetype The MIME type to filter collections @param parent The parent widget

[explicit] SelectMultiCollectionDialog::SelectMultiCollectionDialog(const QString &mimetype, const QList<Akonadi::Collection::Id> &selectedCollection, QWidget *parent = nullptr)

Constructs a SelectMultiCollectionDialog with preselected collections. @param mimetype The MIME type to filter collections @param selectedCollection The list of preselected collection IDs @param parent The parent widget

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

Destructs the SelectMultiCollectionDialog.

QList<Akonadi::Collection> SelectMultiCollectionDialog::selectedCollection() const

Returns the list of selected collections. @return A list of selected Akonadi collections