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/remoteclient.h | |
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/remoteclient.h')
-rw-r--r-- | src/libs/installer/remoteclient.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/libs/installer/remoteclient.h b/src/libs/installer/remoteclient.h index 84def80da..1c3b2f2ce 100644 --- a/src/libs/installer/remoteclient.h +++ b/src/libs/installer/remoteclient.h @@ -43,6 +43,7 @@ #define REMOTECLIENT_H #include "installer_global.h" +#include "protocol.h" #include <QObject> @@ -63,19 +64,10 @@ class INSTALLER_EXPORT RemoteClient : public QObject friend class RemoteClientGuard; public: - enum Mode { - Debug, - Release - }; - - enum StartAs { - User, - Administrator - }; static RemoteClient &instance(); bool connect(QTcpSocket *socket) const; - void init(quint16 port, const QHostAddress &address, Mode mode); + void init(quint16 port, const QHostAddress &address, Protocol::Mode mode); QString authorizationKey() const; void setAuthorizationKey(const QString &key); @@ -83,8 +75,9 @@ public: bool isActive() const; void setActive(bool active); - void setStartServerCommand(const QString &command, StartAs startAs); - void setStartServerCommand(const QString &command, const QStringList &arguments, StartAs start); + void setStartServerCommand(const QString &command, Protocol::StartAs startAs); + void setStartServerCommand(const QString &command, const QStringList &arguments, + Protocol::StartAs start); private: RemoteClient(); |