Mailcommon

filterimporterthunderbird.h
1 /*
2  SPDX-FileCopyrightText: 2011-2022 Laurent Montel <[email protected]>
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 
13 class QFile;
14 
15 namespace MailCommon
16 {
17 class MailFilter;
18 /**
19  * @brief The FilterImporterThunderbird class
20  * @author Laurent Montel <[email protected]>
21  */
22 class MAILCOMMON_EXPORT FilterImporterThunderbird : public FilterImporterAbstract
23 {
24 public:
25  explicit FilterImporterThunderbird(QFile *file, bool interactive = true);
26  FilterImporterThunderbird(QString string, bool interactive = true);
28  static QString defaultThunderbirdFiltersSettingsPath();
29 
30  static QString defaultIcedoveFiltersSettingsPath();
31  static QString defaultSeaMonkeyFiltersSettingsPath();
32 
33 private:
34  void readStream(QTextStream &stream);
35  static QString cleanArgument(const QString &line, const QString &removeStr);
36  void extractConditions(const QString &line, MailCommon::MailFilter *filter);
37  Q_REQUIRED_RESULT QString extractActions(const QString &line, MailFilter *filter, QString &value);
38  void extractType(const QString &line, MailCommon::MailFilter *filter);
39  Q_REQUIRED_RESULT bool splitConditions(const QString &cond, MailCommon::MailFilter *filter);
40  MailFilter *parseLine(QTextStream &stream, QString line, MailCommon::MailFilter *filter);
41 };
42 }
The MailFilter class.
Definition: mailfilter.h:30
The FilterImporterThunderbird class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.