Mailcommon

collectionviewwidget.h
1/*
2 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
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>
13class QCheckBox;
14class QComboBox;
15class QRadioButton;
16namespace MessageList
17{
18namespace Utils
19{
20class AggregationComboBox;
21class ThemeComboBox;
22}
23}
24namespace MailCommon
25{
26class MAILCOMMON_EXPORT CollectionViewWidget : public QWidget
27{
28 Q_OBJECT
29public:
30 explicit CollectionViewWidget(QWidget *parent = nullptr);
31 ~CollectionViewWidget() override;
32 void load(const Akonadi::Collection &col);
33 void save(Akonadi::Collection &col);
34
35private:
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 *const mShowSenderReceiverComboBox;
42 QCheckBox *const mUseDefaultAggregationCheckBox;
43 MessageList::Utils::AggregationComboBox *const mAggregationComboBox;
44 QCheckBox *const mUseDefaultThemeCheckBox;
45 MessageList::Utils::ThemeComboBox *const mThemeComboBox;
46 QRadioButton *const mPreferHtmlToText;
47 QRadioButton *const mPreferTextToHtml;
48 QRadioButton *const mUseGlobalSettings;
49 Akonadi::Collection mCurrentCollection;
50 int mShowSenderReceiverValue = -1;
51};
52}
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
KGuiItem save()
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.