File indexing completed on 2025-03-09 04:51:26

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <KCModule>
0009 #include <KViewStateMaintainer>
0010 namespace Akonadi
0011 {
0012 class ETMViewStateSaver;
0013 }
0014 
0015 namespace PimCommon
0016 {
0017 class CheckedCollectionWidget;
0018 }
0019 
0020 class KCMKNotesSummary : public KCModule
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit KCMKNotesSummary(QObject *parent, const KPluginMetaData &data);
0026 
0027     void load() override;
0028     void save() override;
0029     void defaults() override;
0030 
0031 private Q_SLOTS:
0032     void modified();
0033 
0034 private:
0035     void initGUI();
0036     void initFolders();
0037     void loadFolders();
0038     void storeFolders();
0039 
0040     PimCommon::CheckedCollectionWidget *mCheckedCollectionWidget = nullptr;
0041     KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mModelState = nullptr;
0042 };