File indexing completed on 2025-01-19 04:46:52

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "folderconfiguresettings_private_export.h"
0010 #include <Akonadi/Collection>
0011 #include <QWidget>
0012 class FolderSettingFilterProxyModel;
0013 namespace MailCommon
0014 {
0015 class FolderTreeWidget;
0016 }
0017 class QPushButton;
0018 class LIBFOLDERCONFIGURESETTINGS_TESTS_EXPORT FolderConfigureTreeWidget : public QWidget
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit FolderConfigureTreeWidget(QWidget *parent = nullptr);
0023     ~FolderConfigureTreeWidget() override;
0024     [[nodiscard]] Akonadi::Collection::List listCollections() const;
0025 
0026 private:
0027     void changeFolderSelection(bool select);
0028     void slotSelectionChanged();
0029     FolderSettingFilterProxyModel *const mFolderSettingFilterProxyModel;
0030     MailCommon::FolderTreeWidget *const mFolderTreeWidget;
0031     QPushButton *mSelectFolder = nullptr;
0032     QPushButton *mUnSelectFolder = nullptr;
0033 };