mailcommon
Go to the documentation of this file.
21 #ifndef MAILCOMMON_BACKUPJOB_H
22 #define MAILCOMMON_BACKUPJOB_H
25 #include "progresswidget/progressmanager.h"
27 #include <Akonadi/Collection>
28 #include <Akonadi/Item>
45 namespace MailCommon {
70 void setRootFolder(
const Akonadi::Collection &rootFolder );
71 void setSaveLocation(
const KUrl &savePath );
72 void setArchiveType( ArchiveType type );
73 void setDeleteFoldersAfterCompletion(
bool deleteThem );
74 void setRecursive(
bool recursive );
75 void setDisplayMessageBox(
bool display);
76 void setRealPath(
const QString &path);
81 void backupDone(
const QString&);
85 void itemFetchJobResult( KJob *job );
87 void archiveNextFolder();
88 void onArchiveNextFolderDone( KJob *job );
89 void archiveNextMessage();
92 bool queueFolders(
const Akonadi::Collection &root );
93 void processMessage(
const Akonadi::Item &item );
94 QString pathForCollection(
const Akonadi::Collection &collection )
const;
95 QString subdirPathForCollection(
const Akonadi::Collection &collection )
const;
96 bool hasChildren(
const Akonadi::Collection &collection )
const;
98 void abort(
const QString &errorMessage );
99 bool writeDirHelper(
const QString &directoryPath );
105 QString collectionName(
const Akonadi::Collection &collection )
const;
108 KUrl mMailArchivePath;
110 ArchiveType mArchiveType;
111 Akonadi::Collection mRootFolder;
114 int mArchivedMessages;
118 bool mDeleteFoldersAfterCompletion;
121 Akonadi::Collection::List mPendingFolders;
122 Akonadi::Collection::List mAllFolders;
123 Akonadi::Collection mCurrentFolder;
124 Akonadi::Item::List mPendingMessages;
125 Akonadi::ItemFetchJob *mCurrentJob;
126 bool mDisplayMessageBox;
Writes an entire folder structure to an archive file.
#define MAILCOMMON_EXPORT
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.