Mailcommon

filterselectiondialog.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10
11#include <QList>
12
13class QPushButton;
14
15class QListWidget;
16class QWidget;
17
18namespace MailCommon
19{
20class MailFilter;
21
22class FilterSelectionDialog : public QDialog
23{
25
26public:
27 explicit FilterSelectionDialog(QWidget *parent = nullptr);
28 ~FilterSelectionDialog() override;
29 void setFilters(const QList<MailFilter *> &filters);
30 [[nodiscard]] QList<MailFilter *> selectedFilters() const;
31
32public Q_SLOTS:
33 void slotUnselectAllButton();
34 void slotSelectAllButton();
35 void reject() override;
36
37private:
38 void writeConfig();
39 void readConfig();
40 QListWidget *const filtersListWidget;
41 QList<MailFilter *> originalFilters;
42 QPushButton *const selectAllButton;
43 QPushButton *const unselectAllButton;
44 QPushButton *mOkButton = nullptr;
45};
46}
The filter dialog.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.