2
Copyright (c) 2012 Montel Laurent <montel@kde.org>
4
This program is free software; you can redistribute it and/or modify it
5
under the terms of the GNU General Public License, version 2, as
6
published by the Free Software Foundation.
8
This program is distributed in the hope that it will be useful, but
9
WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
General Public License for more details.
13
You should have received a copy of the GNU General Public License along
14
with this program; if not, write to the Free Software Foundation, Inc.,
15
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
#ifndef ExportMailJob_H
19
#define ExportMailJob_H
21
#include "abstractimportexportjob.h"
22
#include <KSharedConfig>
30
class ExportMailJob : public AbstractImportExportJob
33
explicit ExportMailJob(QWidget *parent, BackupMailUtil::BackupTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
39
KUrl subdirPath(const KUrl &url ) const;
41
void backupTransports();
42
void backupResources();
45
void backupIdentity();
46
void backupAkonadiDb();
48
void writeDirectory(QString path, const QString &relativePath, KZip *mailArchive);
49
void storeResources(const QString&identifier, const QString& path);
50
KUrl resourcePath(const Akonadi::AgentInstance& agent) const;
51
void backupFile(const QString&filename, const QString& path, const QString&storedName);
52
bool backupMailData(const KUrl& url, const QString& archivePath);
56
#endif // ExportMailJob_H