File indexing completed on 2024-11-24 04:43:56
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "folderarchiveaccountinfo.h" 0010 #include "folderarchivesettings_export.h" 0011 #include <QComboBox> 0012 #include <QWidget> 0013 0014 class QCheckBox; 0015 namespace Akonadi 0016 { 0017 class CollectionRequester; 0018 } 0019 0020 class FolderArchiveAccountInfo; 0021 class FolderArchiveComboBox; 0022 class FOLDERARCHIVESETTINGS_EXPORT FolderArchiveSettingPage : public QWidget 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit FolderArchiveSettingPage(const QString &instanceName, QWidget *parent = nullptr); 0027 ~FolderArchiveSettingPage() override; 0028 0029 void loadSettings(); 0030 void writeSettings(); 0031 0032 private: 0033 FOLDERARCHIVESETTINGS_NO_EXPORT void slotEnableChanged(bool enabled); 0034 const QString mInstanceName; 0035 QCheckBox *const mEnabled; 0036 FolderArchiveComboBox *mArchiveNamed = nullptr; 0037 Akonadi::CollectionRequester *const mArchiveFolder; 0038 FolderArchiveAccountInfo *mInfo = nullptr; 0039 };