MailCommon::FilterImporterExporter
#include <filterimporterexporter.h>
Public Member Functions | |
FilterImporterExporter (QWidget *parent=nullptr) | |
virtual | ~FilterImporterExporter () |
void | exportFilters (const QList< MailFilter * > &filters, const QUrl &fileName=QUrl(), bool saveAll=false) |
QList< MailFilter * > | importFilters (bool &canceled, FilterImporterExporter::FilterType type=FilterImporterExporter::KMailFilter, const QString &filename=QString()) |
Static Public Member Functions | |
static QList< MailFilter * > | readFiltersFromConfig (const KSharedConfig::Ptr &config, QStringList &emptyFilter) |
static void | writeFiltersToConfig (const QList< MailFilter * > &filters, KSharedConfig::Ptr config, bool exportFilter=false) |
Detailed Description
Utility class that provides persisting of filters to/from KConfig.
Definition at line 29 of file filterimporterexporter.h.
Member Enumeration Documentation
◆ FilterType
enum MailCommon::FilterImporterExporter::FilterType |
Definition at line 32 of file filterimporterexporter.h.
Constructor & Destructor Documentation
◆ FilterImporterExporter()
|
explicit |
Creates a new filter importer/exporter.
- Parameters
-
parent The parent widget.
Definition at line 120 of file filterimporterexporter.cpp.
◆ ~FilterImporterExporter()
|
virtualdefault |
Destroys the filter importer/exporter.
Member Function Documentation
◆ exportFilters()
void FilterImporterExporter::exportFilters | ( | const QList< MailFilter * > & | filters, |
const QUrl & | fileName = QUrl(), | ||
bool | saveAll = false ) |
Exports the given filters
to a file which is asked from the user.
The list to export is also presented for confirmation/selection.
Definition at line 311 of file filterimporterexporter.cpp.
◆ importFilters()
|
nodiscard |
Imports filters.
Ask the user where to import them from and which filters to import.
Definition at line 127 of file filterimporterexporter.cpp.
◆ readFiltersFromConfig()
|
static |
Reads a list of filters from the given config
file.
Return list of empty filter
Definition at line 33 of file filterimporterexporter.cpp.
◆ writeFiltersToConfig()
|
static |
Writes the given list of filters
to the given config
file.
Definition at line 70 of file filterimporterexporter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:54:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.