Mailcommon

collectionviewwidget.h
1 /*
2  SPDX-FileCopyrightText: 2020-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 #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  MAILCOMMON_NO_EXPORT void slotSelectFolderAggregation();
37  MAILCOMMON_NO_EXPORT void slotSelectFolderTheme();
38  MAILCOMMON_NO_EXPORT void slotThemeCheckboxChanged();
39  MAILCOMMON_NO_EXPORT void slotAggregationCheckboxChanged();
41  QComboBox *mShowSenderReceiverComboBox = nullptr;
42  QCheckBox *mUseDefaultAggregationCheckBox = nullptr;
43  MessageList::Utils::AggregationComboBox *mAggregationComboBox = nullptr;
44  QCheckBox *mUseDefaultThemeCheckBox = nullptr;
45  MessageList::Utils::ThemeComboBox *mThemeComboBox = nullptr;
46  QRadioButton *mPreferHtmlToText = nullptr;
47  QRadioButton *mPreferTextToHtml = nullptr;
48  QRadioButton *mUseGlobalSettings = nullptr;
49  Akonadi::Collection mCurrentCollection;
50  int mShowSenderReceiverValue = -1;
51 };
52 }
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
The filter dialog.
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 04:03:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.