SVN_SILENT made messages (.desktop file)
[kdepim.git] / mailimporter / filter_thunderbird.h
blob37f421474b30f623754654abb0910321d559e24d
1 /***************************************************************************
2 filter_thunderbird.h - Thunderbird mail import
3 -------------------
4 begin : Januar 26 2005
5 copyright : (C) 2005 by Danny Kukawka
6 email : danny.kukawka@web.de
7 ***************************************************************************/
8 /* Copyright (c) 2012 Montel Laurent <montel@kde.org> */
10 /***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
19 #ifndef MAILIMPORTER_FILTER_THUNDERBIRD_HXX
20 #define MAILIMPORTER_FILTER_THUNDERBIRD_HXX
22 #include "filters.h"
24 /**
25 * Imports Thinderbird mail folder recursively, keeping the folder structure.
26 * @author Danny Kukawka
28 namespace MailImporter
30 class MAILIMPORTER_EXPORT FilterThunderbird : public Filter
32 public:
33 explicit FilterThunderbird();
34 ~FilterThunderbird();
36 void import();
37 void importMails(const QString &maildir);
39 static QString defaultSettingsPath();
40 static QString defaultProfile(QWidget *parent = Q_NULLPTR);
41 static QMap<QString, QString> listProfile(QString &currentProfile);
43 private:
44 void importDirContents(const QString &, const QString &, const QString &);
45 void importMBox(const QString &, const QString &, const QString &);
46 bool excludeFiles(const QString &file);
50 #endif