Mailcommon

filterimporterprocmail.h
1 /*
2  SPDX-FileCopyrightText: 2012-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 
11 #include <QTextStream>
12 
13 class QFile;
14 
15 namespace MailCommon
16 {
17 class MailFilter;
18 
19 class FilterImporterProcmail : public FilterImporterAbstract
20 {
21 public:
22  explicit FilterImporterProcmail(QFile *file);
23  FilterImporterProcmail(QString string);
24  ~FilterImporterProcmail();
25  static QString defaultFiltersSettingsPath();
26 
27 private:
28  Q_REQUIRED_RESULT MailCommon::MailFilter *parseLine(QTextStream &stream, QString line, MailCommon::MailFilter *filter);
29  void readStream(QTextStream &stream);
30  Q_REQUIRED_RESULT QString createUniqFilterName();
31  int mFilterCount = 0;
32 };
33 }
The MailFilter class.
Definition: mailfilter.h:30
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.