Mailcommon

collectiontemplateswidget.h
1 /*
2  SPDX-FileCopyrightText: 2020-2022 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 #include <Akonadi/Collection>
11 #include <QWidget>
12 class QCheckBox;
13 namespace TemplateParser
14 {
15 class TemplatesConfiguration;
16 }
17 
18 namespace MailCommon
19 {
20 /**
21  * @brief The CollectionTemplateWidget class
22  * @author Laurent Montel <[email protected]>
23  */
24 class MAILCOMMON_EXPORT CollectionTemplatesWidget : public QWidget
25 {
26  Q_OBJECT
27 public:
28  explicit CollectionTemplatesWidget(QWidget *parent = nullptr);
29  ~CollectionTemplatesWidget() override;
30  void save(Akonadi::Collection &);
31  void load(const Akonadi::Collection &col);
32 
33 private:
34  void slotCopyGlobal();
35  void slotChanged();
36  QCheckBox *mCustom = nullptr;
37  TemplateParser::TemplatesConfiguration *mWidget = nullptr;
38  QString mCollectionId;
39  uint mIdentity = 0;
40  bool mChanged = false;
41 };
42 }
The CollectionTemplateWidget class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.