Fix clean build.
[kdepim.git] / mailimporter / filter_kmail_archive.h
blobbf45980fc25c0129b7e34514a50feb05b840419d
1 /* Copyright 2009,2010 Klarälvdalens Datakonsult AB
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License as
5 published by the Free Software Foundation; either version 2 of
6 the License or (at your option) version 3 or any later version
7 accepted by the membership of KDE e.V. (or its successor approved
8 by the membership of KDE e.V.), which shall act as a proxy
9 defined in Section 14 of version 3 of the license.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef MAILIMPORTER_FILTER_KMAIL_ARCHIVE_HXX
20 #define MAILIMPORTER_FILTER_KMAIL_ARCHIVE_HXX
22 #include "filters.h"
24 class KArchiveFile;
25 class KArchiveDirectory;
27 namespace MailImporter
30 class MAILIMPORTER_EXPORT FilterKMailArchive : public Filter
32 public:
33 explicit FilterKMailArchive();
34 ~FilterKMailArchive();
36 void import();
37 void importMails(const QString &archiveFile);
38 private:
40 bool importDirectory(const KArchiveDirectory *directory, const QString &folderPath);
41 bool importFolder(const KArchiveDirectory *folder, const QString &folderPath);
42 bool importMessage(const KArchiveFile *file, const QString &folderPath);
44 int countFiles(const KArchiveDirectory *directory) const;
46 int mTotalFiles;
47 int mFilesDone;
51 #endif