Files
qt-creator/src/plugins/android/androidqmltoolingsupport.cpp
Jarek Kobus bd493d7e5a Android: Get rid of intentName arg
It's always empty string.

Change-Id: Id270e7fb128bfac414929e3eb611eb26beeb3624
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-29 15:05:04 +00:00

54 lines
1.5 KiB
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "androidqmltoolingsupport.h"
#include "androidconstants.h"
#include "androidrunner.h"
using namespace ProjectExplorer;
namespace Android::Internal {
class AndroidQmlToolingSupport final : public RunWorker
{
public:
explicit AndroidQmlToolingSupport(RunControl *runControl) : RunWorker(runControl)
{
setId("AndroidQmlToolingSupport");
auto runner = new AndroidRunner(runControl);
addStartDependency(runner);
auto worker = runControl->createWorker(QmlDebug::runnerIdForRunMode(runControl->runMode()));
worker->addStartDependency(this);
connect(runner, &AndroidRunner::qmlServerReady, this, [this, worker](const QUrl &server) {
worker->recordData("QmlServerUrl", server);
reportStarted();
});
}
private:
void start() override {}
void stop() override { reportStopped(); }
};
class AndroidQmlToolingSupportFactory final : public RunWorkerFactory
{
public:
AndroidQmlToolingSupportFactory()
{
setProduct<AndroidQmlToolingSupport>();
addSupportedRunMode(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
}
};
void setupAndroidQmlToolingSupport()
{
static AndroidQmlToolingSupportFactory theAndroidQmlToolingSupportFactory;
}
} // Android::Internal