diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-06-19 13:10:57 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-06-23 15:08:05 +0200 |
commit | aca0e939b35053db96391629783d991a2e930b4f (patch) | |
tree | 8cdd3fa796a43ac76887952b12dcee11873ff9a7 /src/libs/installer/remoteserver.cpp | |
parent | b3f0887216226dd641e4297ac660f49a5e97c57d (diff) |
Initialize both client and server with default values.
Change-Id: I51934b0de77b1062153f5f60be44d4bcf4be5ee5
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/remoteserver.cpp')
-rw-r--r-- | src/libs/installer/remoteserver.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/installer/remoteserver.cpp b/src/libs/installer/remoteserver.cpp index 2bd74c03a..3233e92ca 100644 --- a/src/libs/installer/remoteserver.cpp +++ b/src/libs/installer/remoteserver.cpp @@ -40,8 +40,6 @@ **************************************************************************/ #include "remoteserver.h" - -#include "protocol.h" #include "remoteserver_p.h" namespace QInstaller { @@ -75,11 +73,9 @@ void RemoteServer::start() connect (d->m_tcpServer, SIGNAL(newIncommingConnection()), this, SLOT(restartWatchdog())); d->m_thread.start(); - if (d->m_mode == RemoteServer::Release) { + if (d->m_mode == Protocol::Mode::Release) { connect(d->m_watchdog.data(), SIGNAL(timeout()), this, SLOT(deleteLater())); d->m_watchdog->start(); - } else { - setAuthorizationKey(QLatin1String(Protocol::DebugAuthorizationKey)); } } @@ -101,7 +97,7 @@ void RemoteServer::setAuthorizationKey(const QString &authorizationKey) d->m_key = authorizationKey; } -void RemoteServer::init(quint16 port, const QHostAddress &address, Mode mode) +void RemoteServer::init(quint16 port, const QHostAddress &address, Protocol::Mode mode) { Q_D(RemoteServer); d->m_port = port; |