forked from qt-creator/qt-creator
Change-Id: I4538a2839b995f7bc245ae1a91f1979cc8c0dfdc Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
// Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#include "androidruncontrol.h"
|
|
|
|
#include "androidconstants.h"
|
|
#include "androidglobal.h"
|
|
#include "androidrunconfiguration.h"
|
|
#include "androidrunner.h"
|
|
|
|
#include <utils/utilsicons.h>
|
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
|
|
|
using namespace ProjectExplorer;
|
|
|
|
namespace Android::Internal {
|
|
|
|
class AndroidRunSupport final : public AndroidRunner
|
|
{
|
|
public:
|
|
explicit AndroidRunSupport(RunControl *runControl, const QString &intentName = QString());
|
|
~AndroidRunSupport() override;
|
|
};
|
|
|
|
AndroidRunSupport::AndroidRunSupport(RunControl *runControl, const QString &intentName)
|
|
: AndroidRunner(runControl, intentName)
|
|
{
|
|
runControl->setIcon(Utils::Icons::RUN_SMALL_TOOLBAR);
|
|
}
|
|
|
|
AndroidRunSupport::~AndroidRunSupport()
|
|
{
|
|
stop();
|
|
}
|
|
|
|
class AndroidRunWorkerFactory final : public RunWorkerFactory
|
|
{
|
|
public:
|
|
AndroidRunWorkerFactory()
|
|
{
|
|
setProduct<AndroidRunSupport>();
|
|
addSupportedRunMode(ProjectExplorer::Constants::NORMAL_RUN_MODE);
|
|
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
|
}
|
|
};
|
|
|
|
void setupAndroidRunWorker()
|
|
{
|
|
static AndroidRunWorkerFactory theAndroidRunWorkerFactory;
|
|
}
|
|
|
|
} // Android::Internal
|