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 *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)
const QList< QKeySequence > & save()
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.