New Appointment -> New Task
[kdepim.git] / kmailcvt / filter_kmail_archive.hxx
blob9543d2eb0bb14e3bfcfaba4dfa15c406df63724f
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 FILTER_KMAIL_ARCHIVE_HXX
20 #define FILTER_KMAIL_ARCHIVE_HXX
22 #include "filters.hxx"
24 class KArchiveFile;
25 class KArchiveDirectory;
27 class FilterKMailArchive : public Filter
29 public:
30 FilterKMailArchive();
31 ~FilterKMailArchive();
32 void import( FilterInfo *info );
33 virtual bool needsSecondPage() { return true; }
35 private:
37 bool importDirectory( const KArchiveDirectory *directory, const QString &folderPath );
38 bool importFolder( const KArchiveDirectory *folder, const QString &folderPath );
39 bool importMessage( const KArchiveFile *file, const QString &folderPath );
41 int countFiles( const KArchiveDirectory *directory ) const;
43 FilterInfo *mFilterInfo;
44 int mTotalFiles;
45 int mFilesDone;
48 #endif