Mailcommon

filterimporterabstract.h
1/*
2 SPDX-FileCopyrightText: 2012-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 <QList>
11#include <QStringList>
12
13class QFile;
14class QDomDocument;
15
16namespace MailCommon
17{
18class MailFilter;
19
20class MAILCOMMON_EXPORT FilterImporterAbstract
21{
22public:
23 explicit FilterImporterAbstract(bool interactive = true);
24 ~FilterImporterAbstract();
25 [[nodiscard]] QList<MailFilter *> importFilter() const;
26 [[nodiscard]] QStringList emptyFilter() const;
27
28protected:
29 void appendFilter(MailCommon::MailFilter *filter);
30 void createFilterAction(MailCommon::MailFilter *filter, const QString &actionName, const QString &value);
31 bool loadDomElement(QDomDocument &doc, QFile *file);
32
33 QList<MailFilter *> mListMailFilter;
34 QStringList mEmptyFilter;
35
36private:
37 const bool mInteractive;
38};
39}
The MailFilter class.
Definition mailfilter.h:29
The filter dialog.
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.