Mailcommon

collectiongeneralpage.h
1 /*
2  SPDX-FileCopyrightText: 2009-2023 Laurent Montel <[email protected]>
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 
13 class QLineEdit;
14 
15 class QCheckBox;
16 
17 template<typename T>
18 class QSharedPointer;
19 namespace PimCommon
20 {
21 class IncidencesForWidget;
22 class ContentTypeWidget;
23 }
24 namespace KIdentityManagementCore
25 {
26 }
27 namespace MailCommon
28 {
29 class FolderSettings;
30 class CollectionGeneralWidget;
31 /**
32  * @brief The CollectionGeneralPage class
33  * @author Laurent Montel <[email protected]>
34  */
36 {
37  Q_OBJECT
38 
39 public:
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 
46 protected:
47  void init(const Akonadi::Collection &);
48 
49 private:
50  MAILCOMMON_NO_EXPORT void slotFolderContentsSelectionChanged(int);
51  MAILCOMMON_NO_EXPORT void slotNameChanged(const QString &name);
52 
53 private:
54  QString mColorName;
55 
56  CollectionGeneralWidget *mCollectionGeneralWidget = nullptr;
57  PimCommon::ContentTypeWidget *mContentsComboBox = nullptr;
58  PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr;
59  QCheckBox *mSharedSeenFlagsCheckBox = nullptr;
60  QLineEdit *mNameEdit = nullptr;
62  bool mIsLocalSystemFolder = false;
63  bool mIsResourceFolder = false;
64 };
65 
66 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage)
67 }
The CollectionGeneralPage class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:00:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.