Mailcommon

collectionviewwidget.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 <MailCommon/FolderSettings>
11 #include <QSharedPointer>
12 #include <QWidget>
13 class QCheckBox;
14 class QComboBox;
15 class QRadioButton;
16 namespace MessageList
17 {
18 namespace Utils
19 {
20 class AggregationComboBox;
21 class ThemeComboBox;
22 }
23 }
24 namespace MailCommon
25 {
26 class MAILCOMMON_EXPORT CollectionViewWidget : public QWidget
27 {
28  Q_OBJECT
29 public:
30  explicit CollectionViewWidget(QWidget *parent = nullptr);
31  ~CollectionViewWidget() override;
32  void load(const Akonadi::Collection &col);
33  void save(Akonadi::Collection &col);
34 
35 private:
36  void slotSelectFolderAggregation();
37  void slotSelectFolderTheme();
38  void slotThemeCheckboxChanged();
39  void slotAggregationCheckboxChanged();
41  QCheckBox *mIconsCheckBox = nullptr;
42  QComboBox *mShowSenderReceiverComboBox = nullptr;
43  QCheckBox *mUseDefaultAggregationCheckBox = nullptr;
44  MessageList::Utils::AggregationComboBox *mAggregationComboBox = nullptr;
45  QCheckBox *mUseDefaultThemeCheckBox = nullptr;
46  MessageList::Utils::ThemeComboBox *mThemeComboBox = nullptr;
47  QRadioButton *mPreferHtmlToText = nullptr;
48  QRadioButton *mPreferTextToHtml = nullptr;
49  QRadioButton *mUseGlobalSettings = nullptr;
50  Akonadi::Collection mCurrentCollection;
51  int mShowSenderReceiverValue = -1;
52 };
53 }
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
const QList< QKeySequence > & save()
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.