summaryrefslogtreecommitdiffstats
path: root/qdb/server/hostserver.h
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2016-11-11 15:47:51 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2016-11-21 11:24:30 +0000
commit539ae0096ebd6123632685a69fc554ec6ba8c33b (patch)
treeea5038a1da62c24dbafd3cafc7962d80e9f63c1c /qdb/server/hostserver.h
parent9f8a4a7898e6de5ab53d496bb322170c57605835 (diff)
Start host server automatically from qdb
Log to a file from the host server process. This can be prevented by setting the environment variable QDB_LOGGING_TO_CONSOLE=1. Add `qdb stop-server` for shutting down a host server process. Task-number: QTBUG-56070 Change-Id: Ie6455c7a2517df90a3e7c42f0256cbbdd31b6cff Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'qdb/server/hostserver.h')
-rw-r--r--qdb/server/hostserver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qdb/server/hostserver.h b/qdb/server/hostserver.h
index 007c8ff..d6b161e 100644
--- a/qdb/server/hostserver.h
+++ b/qdb/server/hostserver.h
@@ -31,7 +31,7 @@ class QCoreApplication;
class QCommandLineParser;
QT_END_NAMESPACE
-int hostServer(QCoreApplication &app, const QCommandLineParser &parser);
+int execHostServer(const QCoreApplication &app, const QCommandLineParser &parser);
class HostServer : public QObject
{
@@ -55,6 +55,7 @@ private slots:
private:
void replyDeviceInformation();
+ void stopServer();
QLocalServer m_localServer;
QLocalSocket *m_client; // owned by this class, deleted in handleDisconnection()