forked from qt-creator/qt-creator
Android: Use new setup for a few factories
Change-Id: I4538a2839b995f7bc245ae1a91f1979cc8c0dfdc Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -19,8 +19,7 @@ namespace Android::Internal {
|
||||
class AndroidRunSupport final : public AndroidRunner
|
||||
{
|
||||
public:
|
||||
explicit AndroidRunSupport(ProjectExplorer::RunControl *runControl,
|
||||
const QString &intentName = QString());
|
||||
explicit AndroidRunSupport(RunControl *runControl, const QString &intentName = QString());
|
||||
~AndroidRunSupport() override;
|
||||
};
|
||||
|
||||
@@ -35,11 +34,20 @@ AndroidRunSupport::~AndroidRunSupport()
|
||||
stop();
|
||||
}
|
||||
|
||||
AndroidRunWorkerFactory::AndroidRunWorkerFactory()
|
||||
class AndroidRunWorkerFactory final : public RunWorkerFactory
|
||||
{
|
||||
setProduct<AndroidRunSupport>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::NORMAL_RUN_MODE);
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
public:
|
||||
AndroidRunWorkerFactory()
|
||||
{
|
||||
setProduct<AndroidRunSupport>();
|
||||
addSupportedRunMode(ProjectExplorer::Constants::NORMAL_RUN_MODE);
|
||||
addSupportedRunConfig(Constants::ANDROID_RUNCONFIG_ID);
|
||||
}
|
||||
};
|
||||
|
||||
void setupAndroidRunWorker()
|
||||
{
|
||||
static AndroidRunWorkerFactory theAndroidRunWorkerFactory;
|
||||
}
|
||||
|
||||
} // Android::Internal
|
||||
|
||||
Reference in New Issue
Block a user