kcmknotessummary.h 840 Bytes
Newer Older
1
/*
Laurent Montel's avatar
Laurent Montel committed
2
   SPDX-FileCopyrightText: 2013-2021 Laurent Montel <montel@kde.org>
3
4

   SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#pragma once
7
8
9

#include <KCModule>
#include <KViewStateMaintainer>
Laurent Montel's avatar
Laurent Montel committed
10
11
namespace Akonadi
{
12
13
14
class ETMViewStateSaver;
}

Laurent Montel's avatar
Laurent Montel committed
15
16
namespace PimCommon
{
17
18
19
20
21
22
23
24
class CheckedCollectionWidget;
}

class KCMKNotesSummary : public KCModule
{
    Q_OBJECT

public:
25
    explicit KCMKNotesSummary(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
26

27
28
29
    void load() override;
    void save() override;
    void defaults() override;
30
31
32
33
34
35
36
37
38
39

private Q_SLOTS:
    void modified();

private:
    void initGUI();
    void initFolders();
    void loadFolders();
    void storeFolders();

Laurent Montel's avatar
Laurent Montel committed
40
41
    PimCommon::CheckedCollectionWidget *mCheckedCollectionWidget = nullptr;
    KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mModelState = nullptr;
42
43
};