summaryrefslogtreecommitdiff
path: root/migrationutility/kolabserver.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2014-01-16 22:17:23 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2014-01-16 22:17:23 (GMT)
commitc20c1408c4abace04b469509a2ffe0f1f1bc3845 (patch)
tree3b84848204c6a30e0e91299ef74624924b73d32e /migrationutility/kolabserver.cpp
parent34d3e8edb4c655360e8c464819d1c438ac23b2f9 (diff)
downloadkolab-utils-c20c1408c4abace04b469509a2ffe0f1f1bc3845.tar.gz
A simple regextrans2 option to translate target names.
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 01a54b0..927eec9 100644
--- a/migrationutility/kolabserver.cpp
+++ b/migrationutility/kolabserver.cpp
@@ -72,6 +72,12 @@ void KolabServer::setWipeTargetFolders(bool enable)
mWipeTargetFolders = enable;
}
+void KolabServer::setRegextrans(const QStringList &regextrans)
+{
+ Debug() << "Regextrans: " << regextrans;
+ mRegextrans = regextrans;
+}
+
KolabAccount* KolabServer::getAccount(const QString& user)
{
KolabAccount *account = new KolabAccount(this);
@@ -85,6 +91,7 @@ KolabAccount* KolabServer::getAccount(const QString& user)
account->setDryRun(mDryRun);
account->setWipeTargetFolders(mWipeTargetFolders);
account->setVersion(mVersion);
+ account->setRegextrans(mRegextrans);
if (!account->init()) {
account->deleteLater();
return 0;