summaryrefslogtreecommitdiff
path: root/migrationutility/kolabserver.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-10-04 09:13:13 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-10-04 09:13:13 (GMT)
commit295c5d4e2bd7cf415927b514fac18edc424a5f02 (patch)
tree2f16b23607c02fe1c692c9362e3e97d0bd6cd0e5 /migrationutility/kolabserver.cpp
parent143f8b8ecb35118c7ed19564dc36b2f7918be61f (diff)
downloadkolab-utils-295c5d4e2bd7cf415927b514fac18edc424a5f02.tar.gz
Added dry-run
Diffstat (limited to 'migrationutility/kolabserver.cpp')
-rw-r--r--migrationutility/kolabserver.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/migrationutility/kolabserver.cpp b/migrationutility/kolabserver.cpp
index fa7dd28..b4197c6 100644
--- a/migrationutility/kolabserver.cpp
+++ b/migrationutility/kolabserver.cpp
@@ -23,7 +23,8 @@ KolabServer::KolabServer(QObject* parent)
: QObject(parent),
mSession(0),
mEncryptionMode(KIMAP::LoginJob::TlsV1),
- mAuthenticationMode(KIMAP::LoginJob::Plain)
+ mAuthenticationMode(KIMAP::LoginJob::Plain),
+ mDryRun(false)
{
}
@@ -40,10 +41,17 @@ void KolabServer::setAdminCredentials(const QString& username, const QString& pw
mPw = pw;
}
+void KolabServer::setDryRun(bool enable)
+{
+ mDryRun = enable;
+}
+
+
KolabAccount* KolabServer::getAccount(const QString& user)
{
KolabAccount *account = new KolabAccount(this);
account->setHost(mHost, mPort);
account->setCredentials(user, mPw);
+ account->setDryRun(mDryRun);
return account;
}