2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-05-03 12:41:58 +02:00
|
|
|
|
2017-11-07 10:26:52 +01:00
|
|
|
#include "androidqmltoolingsupport.h"
|
2013-05-03 12:41:58 +02:00
|
|
|
#include "androidrunner.h"
|
2017-03-30 11:54:23 +02:00
|
|
|
|
2013-05-03 12:41:58 +02:00
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
|
|
|
|
|
namespace Android {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2018-07-31 12:21:47 +02:00
|
|
|
AndroidQmlToolingSupport::AndroidQmlToolingSupport(RunControl *runControl,
|
2018-08-02 11:00:06 +02:00
|
|
|
const QString &intentName)
|
2017-05-19 14:40:49 +02:00
|
|
|
: RunWorker(runControl)
|
2013-05-03 12:41:58 +02:00
|
|
|
{
|
2018-08-21 08:28:27 +02:00
|
|
|
setId("AndroidQmlToolingSupport");
|
2013-05-03 12:41:58 +02:00
|
|
|
|
2018-08-02 11:00:06 +02:00
|
|
|
auto runner = new AndroidRunner(runControl, intentName);
|
2017-08-08 14:09:50 +02:00
|
|
|
addStartDependency(runner);
|
2014-09-15 15:43:24 +02:00
|
|
|
|
2019-08-27 10:01:24 +02:00
|
|
|
auto worker = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode()));
|
|
|
|
|
worker->addStartDependency(this);
|
2014-09-15 15:43:24 +02:00
|
|
|
|
2019-08-27 10:01:24 +02:00
|
|
|
connect(runner, &AndroidRunner::qmlServerReady, this, [this, worker](const QUrl &server) {
|
|
|
|
|
worker->recordData("QmlServerUrl", server);
|
2017-06-14 14:59:23 +02:00
|
|
|
reportStarted();
|
|
|
|
|
});
|
|
|
|
|
}
|
2014-09-15 15:43:24 +02:00
|
|
|
|
2017-11-07 10:26:52 +01:00
|
|
|
void AndroidQmlToolingSupport::start()
|
2017-06-14 14:59:23 +02:00
|
|
|
{
|
|
|
|
|
}
|
2014-09-15 15:43:24 +02:00
|
|
|
|
2017-11-07 10:26:52 +01:00
|
|
|
void AndroidQmlToolingSupport::stop()
|
2017-06-14 14:59:23 +02:00
|
|
|
{
|
|
|
|
|
reportStopped();
|
2013-07-22 16:10:27 +02:00
|
|
|
}
|
|
|
|
|
|
2013-05-03 12:41:58 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Android
|