Mailcommon

filterimporterthunderbird.h
1/*
2 SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "filter/filterimporter/filterimporterabstract.h"
10#include "mailcommon_export.h"
11#include <QTextStream>
12
13class QFile;
14
15namespace MailCommon
16{
17class MailFilter;
18/**
19 * @brief The FilterImporterThunderbird class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class MAILCOMMON_EXPORT FilterImporterThunderbird : public FilterImporterAbstract
23{
24public:
25 explicit FilterImporterThunderbird(QFile *file, bool interactive = true);
26 FilterImporterThunderbird(QString string, bool interactive = true);
28 [[nodiscard]] static QString defaultThunderbirdFiltersSettingsPath();
29
30 [[nodiscard]] static QString defaultIcedoveFiltersSettingsPath();
31 [[nodiscard]] static QString defaultSeaMonkeyFiltersSettingsPath();
32
33private:
34 MAILCOMMON_NO_EXPORT void readStream(QTextStream &stream);
35 [[nodiscard]] static MAILCOMMON_NO_EXPORT QString cleanArgument(const QString &line, const QString &removeStr);
36 MAILCOMMON_NO_EXPORT void extractConditions(const QString &line, MailCommon::MailFilter *filter);
37 [[nodiscard]] MAILCOMMON_NO_EXPORT QString extractActions(const QString &line, MailFilter *filter, QString &value);
38 MAILCOMMON_NO_EXPORT void extractType(const QString &line, MailCommon::MailFilter *filter);
39 [[nodiscard]] MAILCOMMON_NO_EXPORT bool splitConditions(const QString &cond, MailCommon::MailFilter *filter);
40 MAILCOMMON_NO_EXPORT MailFilter *parseLine(QTextStream &stream, QString line, MailCommon::MailFilter *filter);
41};
42}
The FilterImporterThunderbird class.
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 Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.