MailImporter

filterbalsa.h
1 /*
2  Copyright (c) 2012-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef FILTERBALSA_H
20 #define FILTERBALSA_H
21 
22 #include "filters.h"
23 namespace MailImporter {
24 class FilterBalsaPrivate;
29 class MAILIMPORTER_EXPORT FilterBalsa : public Filter
30 {
31 public:
32  FilterBalsa();
33  ~FilterBalsa() override;
34 
35  void import() override;
36  void importMails(const QString &maildir);
37  Q_REQUIRED_RESULT static QString defaultSettingsPath();
38  Q_REQUIRED_RESULT static QString isMailerFound();
39  QString localMailDirPath();
40 private:
41  void importDirContents(const QString &);
42  void importFiles(const QString &);
43  void processDirectory(const QString &path);
44 
45  MailImporter::MessageStatus statusFromFile(const QString &filename);
46  FilterBalsaPrivate *const d;
47 };
48 }
49 
50 #endif // FILTERBALSA_H
The Filter class.
Definition: filters.h:39
The MessageStatus class.
Definition: messagestatus.h:30
The FilterBalsa class.
Definition: filterbalsa.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:02:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.