MailImporter

filterbalsa.h
1 /*
2  SPDX-FileCopyrightText: 2012-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef FILTERBALSA_H
8 #define FILTERBALSA_H
9 
10 #include "filters.h"
11 namespace MailImporter {
12 class FilterBalsaPrivate;
17 class MAILIMPORTER_EXPORT FilterBalsa : public Filter
18 {
19 public:
20  FilterBalsa();
21  ~FilterBalsa() override;
22 
23  void import() override;
24  void importMails(const QString &maildir);
25  Q_REQUIRED_RESULT static QString defaultSettingsPath();
26  Q_REQUIRED_RESULT static QString isMailerFound();
27  QString localMailDirPath();
28 private:
29  void importDirContents(const QString &);
30  void importFiles(const QString &);
31  void processDirectory(const QString &path);
32 
33  MailImporter::MessageStatus statusFromFile(const QString &filename);
34  FilterBalsaPrivate *const d;
35 };
36 }
37 
38 #endif // FILTERBALSA_H
The Filter class.
Definition: filters.h:28
The MessageStatus class.
Definition: messagestatus.h:18
The FilterBalsa class.
Definition: filterbalsa.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 06:47:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.