Warning, file /pim/mailcommon/src/collectionpage/collectionviewwidget.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "mailcommon_export.h" 0010 #include <MailCommon/FolderSettings> 0011 #include <QSharedPointer> 0012 #include <QWidget> 0013 class QCheckBox; 0014 class QComboBox; 0015 class QRadioButton; 0016 namespace MessageList 0017 { 0018 namespace Utils 0019 { 0020 class AggregationComboBox; 0021 class ThemeComboBox; 0022 } 0023 } 0024 namespace MailCommon 0025 { 0026 class MAILCOMMON_EXPORT CollectionViewWidget : public QWidget 0027 { 0028 Q_OBJECT 0029 public: 0030 explicit CollectionViewWidget(QWidget *parent = nullptr); 0031 ~CollectionViewWidget() override; 0032 void load(const Akonadi::Collection &col); 0033 void save(Akonadi::Collection &col); 0034 0035 private: 0036 MAILCOMMON_NO_EXPORT void slotSelectFolderAggregation(); 0037 MAILCOMMON_NO_EXPORT void slotSelectFolderTheme(); 0038 MAILCOMMON_NO_EXPORT void slotThemeCheckboxChanged(); 0039 MAILCOMMON_NO_EXPORT void slotAggregationCheckboxChanged(); 0040 QSharedPointer<MailCommon::FolderSettings> mFolderCollection; 0041 QComboBox *mShowSenderReceiverComboBox = nullptr; 0042 QCheckBox *mUseDefaultAggregationCheckBox = nullptr; 0043 MessageList::Utils::AggregationComboBox *mAggregationComboBox = nullptr; 0044 QCheckBox *mUseDefaultThemeCheckBox = nullptr; 0045 MessageList::Utils::ThemeComboBox *mThemeComboBox = nullptr; 0046 QRadioButton *mPreferHtmlToText = nullptr; 0047 QRadioButton *mPreferTextToHtml = nullptr; 0048 QRadioButton *mUseGlobalSettings = nullptr; 0049 Akonadi::Collection mCurrentCollection; 0050 int mShowSenderReceiverValue = -1; 0051 }; 0052 }