Mailcommon

collectiongeneralpage.h
1/*
2 SPDX-FileCopyrightText: 2009-2025 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{
23}
24namespace MailCommon
25{
26class FolderSettings;
27class CollectionGeneralWidget;
28/**
29 * @brief The CollectionGeneralPage class
30 * @author Laurent Montel <montel@kde.org>
31 */
32class MAILCOMMON_EXPORT CollectionGeneralPage : public Akonadi::CollectionPropertiesPage
33{
35
36public:
37 explicit CollectionGeneralPage(QWidget *parent = nullptr);
38 ~CollectionGeneralPage() override;
39
40 void load(const Akonadi::Collection &collection) override;
41 void save(Akonadi::Collection &collection) override;
42
43protected:
44 void init(const Akonadi::Collection &);
45
46private:
47 MAILCOMMON_NO_EXPORT void slotFolderContentsSelectionChanged(int);
48 MAILCOMMON_NO_EXPORT void slotNameChanged(const QString &name);
49
50 QString mColorName;
51
52 CollectionGeneralWidget *mCollectionGeneralWidget = nullptr;
53 PimCommon::ContentTypeWidget *mContentsComboBox = nullptr;
54 PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr;
55 QCheckBox *mSharedSeenFlagsCheckBox = nullptr;
56 QLineEdit *mNameEdit = nullptr;
58 bool mIsLocalSystemFolder = false;
59 bool mIsResourceFolder = false;
60};
61
62AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage)
63}
The CollectionGeneralPage class.
The FolderSettings class.
The filter dialog.
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:58:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.