Pimcommon

selectmulticollectionwidget.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <Akonadi/Collection>
10#include <QModelIndex>
11#include <QWidget>
12
13namespace PimCommon
14{
15class CheckedCollectionWidget;
16class SelectMultiCollectionWidget : public QWidget
17{
19public:
20 explicit SelectMultiCollectionWidget(const QString &mimetype, const QList<Akonadi::Collection::Id> &selectedCollection, QWidget *parent = nullptr);
21 explicit SelectMultiCollectionWidget(const QString &mimetype, QWidget *parent = nullptr);
22 ~SelectMultiCollectionWidget() override;
23
24 [[nodiscard]] QList<Akonadi::Collection> selectedCollection(const QModelIndex &parent = QModelIndex()) const;
25
26private:
27 void slotCollectionsTreeFetched();
28 void initialize(const QString &mimetype);
29 void updateStatus(const QModelIndex &parent);
30 PimCommon::CheckedCollectionWidget *mCheckedCollectionWidget = nullptr;
31 QList<Akonadi::Collection::Id> mListCollection;
32};
33}
The CheckedCollectionWidget class.
folderdialogacltab.h
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.