summaryrefslogtreecommitdiff
path: root/migrationutility/kolabserver.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-03-13 12:51:15 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-03-13 12:51:15 (GMT)
commit0c6eaf53efac8916ec7b7de288c63b426f374fbe (patch)
treeb101d8cb8c89e9028f8da0205bc9936d8c7aa033 /migrationutility/kolabserver.cpp
parent549fa26a274f62e6c63241e408428a536aa457d0 (diff)
downloadkolab-utils-0c6eaf53efac8916ec7b7de288c63b426f374fbe.tar.gz
Made wiping of target folders optional.
Diffstat (limited to 'migrationutility/kolabserver.cpp')
-rw-r--r--migrationutility/kolabserver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/migrationutility/kolabserver.cpp b/migrationutility/kolabserver.cpp
index 76b3180..4b7c9b9 100644
--- a/migrationutility/kolabserver.cpp
+++ b/migrationutility/kolabserver.cpp
@@ -25,6 +25,7 @@ KolabServer::KolabServer(QObject* parent)
mEncryptionMode(KIMAP::LoginJob::TlsV1),
mAuthenticationMode(KIMAP::LoginJob::Plain),
mDryRun(false),
+ mWipeTargetFolders(false),
mVersion(Kolab::KolabV3)
{
@@ -67,6 +68,11 @@ void KolabServer::setDryRun(bool enable)
mDryRun = enable;
}
+void KolabServer::setWipeTargetFolders(bool enable)
+{
+ mWipeTargetFolders = enable;
+}
+
KolabAccount* KolabServer::getAccount(const QString& user)
{
KolabAccount *account = new KolabAccount(this);
@@ -78,6 +84,7 @@ KolabAccount* KolabServer::getAccount(const QString& user)
}
account->setCredentials(targetUser, mPw, mUsername);
account->setDryRun(mDryRun);
+ account->setWipeTargetFolders(mWipeTargetFolders);
account->setVersion(mVersion);
if (!account->init()) {
account->deleteLater();