Pimcommon

checkedcollectionwidget.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 "pimcommonakonadi_export.h"
10#include <QWidget>
11
13class QTreeView;
15
16namespace Akonadi
17{
18class EntityTreeModel;
19class Collection;
20}
21
22namespace PimCommon
23{
24class CheckedCollectionWidgetPrivate;
25/**
26 * @brief The CheckedCollectionWidget class
27 * @author Laurent Montel <montel@kde.org>
28 */
29class PIMCOMMONAKONADI_EXPORT CheckedCollectionWidget : public QWidget
30{
31 Q_OBJECT
32public:
33 explicit CheckedCollectionWidget(const QString &mimetype, QWidget *parent = nullptr);
34 ~CheckedCollectionWidget() override;
35
36 [[nodiscard]] Akonadi::EntityTreeModel *entityTreeModel() const;
37
38 [[nodiscard]] QTreeView *folderTreeView() const;
39
40 [[nodiscard]] QItemSelectionModel *selectionModel() const;
41
42 [[nodiscard]] KCheckableProxyModel *checkableProxy() const;
43
44Q_SIGNALS:
45 void collectionAdded(const Akonadi::Collection &, const Akonadi::Collection &);
46 void collectionRemoved(const Akonadi::Collection &);
47
48private:
49 PIMCOMMONAKONADI_NO_EXPORT void slotSetCollectionFilter(const QString &filter);
50 std::unique_ptr<CheckedCollectionWidgetPrivate> const d;
51};
52}
The CheckedCollectionWidget class.
folderdialogacltab.h
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.