Mailcommon

collectiongeneralpage.h
1/*
2 SPDX-FileCopyrightText: 2009-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailcommon_export.h"
10
11#include <Akonadi/CollectionPropertiesPage>
12
13class QLineEdit;
14
15class QCheckBox;
16
17template<typename T>
18class QSharedPointer;
19namespace PimCommon
20{
21class IncidencesForWidget;
22class ContentTypeWidget;
23}
24namespace KIdentityManagementCore
25{
26}
27namespace MailCommon
28{
29class FolderSettings;
30class CollectionGeneralWidget;
31/**
32 * @brief The CollectionGeneralPage class
33 * @author Laurent Montel <montel@kde.org>
34 */
36{
37 Q_OBJECT
38
39public:
40 explicit CollectionGeneralPage(QWidget *parent = nullptr);
41 ~CollectionGeneralPage() override;
42
43 void load(const Akonadi::Collection &collection) override;
44 void save(Akonadi::Collection &collection) override;
45
46protected:
47 void init(const Akonadi::Collection &);
48
49private:
50 MAILCOMMON_NO_EXPORT void slotFolderContentsSelectionChanged(int);
51 MAILCOMMON_NO_EXPORT void slotNameChanged(const QString &name);
52
53 QString mColorName;
54
55 CollectionGeneralWidget *mCollectionGeneralWidget = nullptr;
56 PimCommon::ContentTypeWidget *mContentsComboBox = nullptr;
57 PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr;
58 QCheckBox *mSharedSeenFlagsCheckBox = nullptr;
59 QLineEdit *mNameEdit = nullptr;
61 bool mIsLocalSystemFolder = false;
62 bool mIsResourceFolder = false;
63};
64
65AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage)
66}
The CollectionGeneralPage class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.