summaryrefslogtreecommitdiffstats
path: root/src/sdk/installerbase.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-06-02 12:31:17 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-06-03 13:04:53 +0200
commit05afd837fc336541ebdf772ab25347860782c02f (patch)
tree02abee082f58b4fb529be1ca83647b1a435a3332 /src/sdk/installerbase.cpp
parent7c07130119722e2e0afcf423f23a449f93931dfa (diff)
Replace client-server classes and update implementations.
Remove superfluous file engine tests. Introduce auto test for newly added client server classes. Fix some wrong implementations serverside for settings array handling and broken arguments in process wrapper. Replace all other parts that with new implementations. Remove now unused classes. Change-Id: I6f9e836993096a2c2c06b06f2b06d7aa4b287e56 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/sdk/installerbase.cpp')
-rw-r--r--src/sdk/installerbase.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp
index a3141def9..a46500ded 100644
--- a/src/sdk/installerbase.cpp
+++ b/src/sdk/installerbase.cpp
@@ -47,7 +47,7 @@
#include <binaryformat.h>
#include <errors.h>
#include <fileutils.h>
-#include <fsengineserver.h>
+#include <remoteserver.h>
#include <init.h>
#include <lib7z_facade.h>
#include <operationrunner.h>
@@ -163,10 +163,12 @@ int main(int argc, char *argv[])
// this is the FSEngineServer as an admin rights process upon request:
if (args.count() >= 3 && args[1] == QLatin1String("--startserver")) {
SDKApp<QCoreApplication> app(argc, argv);
- FSEngineServer* const server = new FSEngineServer(args[2].toInt());
+ RemoteServer *const server = new RemoteServer();
+ QObject::connect(server, SIGNAL(destroyed()), &app, SLOT(quit()));
+ server->init(args[2].toInt(), QHostAddress::LocalHost, RemoteServer::Release);
if (args.count() >= 4)
server->setAuthorizationKey(args[3]);
- QObject::connect(server, SIGNAL(destroyed()), &app, SLOT(quit()));
+ server->start();
return app.exec();
}