summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore.h
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2014-11-24 17:39:06 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-26 14:49:23 +0100
commit64d49f097f25dd019345a7e913e1c4cf8188e168 (patch)
treeda6670298b59bd04db7d1f5dc62a9ceb79082b7b /src/libs/installer/packagemanagercore.h
parentd18b9696e573aa7b3f38784f6c5764b9fe6fd81b (diff)
Implement a way to start the server in debug mode and API cleanup.
1; Passing debug as first argument to the starting server does not start the server side so the server keeps running in an endless loop. This makes it far easier to attach a debugger. 2; API cleanup and unify init function to take port, key, and mode. The address was never able to be changed anyway, so stop passing them around. Change-Id: I2a847f009ed1557a5e136e2b0006de5c62426da2 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/packagemanagercore.h')
-rw-r--r--src/libs/installer/packagemanagercore.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagercore.h b/src/libs/installer/packagemanagercore.h
index 10e39f0f8..df7ac5557 100644
--- a/src/libs/installer/packagemanagercore.h
+++ b/src/libs/installer/packagemanagercore.h
@@ -35,6 +35,7 @@
#define PACKAGEMANAGERCORE_H
#include "binaryformat.h"
+#include "protocol.h"
#include "repository.h"
#include "qinstallerglobal.h"
@@ -64,7 +65,10 @@ class INSTALLER_EXPORT PackageManagerCore : public QObject
public:
PackageManagerCore();
- PackageManagerCore(qint64 magicmaker, const QList<OperationBlob> &ops);
+ PackageManagerCore(qint64 magicmaker, const QList<OperationBlob> &ops,
+ quint16 port = Protocol::DefaultPort,
+ const QString &key = QLatin1String(Protocol::DefaultAuthorizationKey),
+ Protocol::Mode mode = Protocol::Mode::Production);
~PackageManagerCore();
// status