Mailcommon

filterimporterabstract.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 "mailcommon_export.h"
10 #include <QStringList>
11 #include <QVector>
12 
13 class QFile;
14 class QDomDocument;
15 
16 namespace MailCommon
17 {
18 class MailFilter;
19 
20 class MAILCOMMON_EXPORT FilterImporterAbstract
21 {
22 public:
23  explicit FilterImporterAbstract(bool interactive = true);
24  ~FilterImporterAbstract();
25  Q_REQUIRED_RESULT QVector<MailFilter *> importFilter() const;
26  Q_REQUIRED_RESULT QStringList emptyFilter() const;
27 
28 protected:
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  QVector<MailFilter *> mListMailFilter;
34  QStringList mEmptyFilter;
35 
36 private:
37  const bool mInteractive;
38 };
39 }
The MailFilter class.
Definition: mailfilter.h:28
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Oct 1 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.