summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-09-26 10:06:32 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-09-26 10:06:32 (GMT)
commitf8fc27d068aee9cd75ce25fa721f5e7120ba7fcd (patch)
treef823b2d344b46524707e6dd84d7821281eeb50c7
parent40c2ccd47eb90437c9e9889f1b8dce5b0a7f499a (diff)
downloadkolab-utils-f8fc27d068aee9cd75ce25fa721f5e7120ba7fcd.tar.gz
use commandline arguments
-rw-r--r--migrationutility/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/migrationutility/main.cpp b/migrationutility/main.cpp
index 79365cf..9d166e8 100644
--- a/migrationutility/main.cpp
+++ b/migrationutility/main.cpp
@@ -51,10 +51,10 @@ int main(int argc, char *argv[])
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
KolabSourceServer *sourceServer = new KolabSourceServer(&app);
-// sourceServer->setHost(args->getOption("from"), args->getOption("from-port").toInt());
- sourceServer->setHost("test.kolab.org", 143);
- sourceServer->setAdminCredentials("admin@kolab.org", "pw");
- sourceServer->setSingleUser("user@kolab.org");
+ sourceServer->setHost(args->getOption("from"), args->getOption("from-port").toInt());
+ sourceServer->setAdminCredentials(args->getOption("from-proxyauth"), args->getOption("from-password"));
+ sourceServer->setSingleUser(args->getOption("from-user"));
+
CoordinationJob *job = new CoordinationJob(sourceServer, &app);
QObject::connect(job, SIGNAL(result(KJob*)), &app, SLOT(quit()));
job->start();