Android: Use specific classes for run worker factories

Slimmer file interfaces.

Change-Id: I2cf846c04000eb29fe53219db9a97088b6b9a1aa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
hjk
2023-01-05 10:34:21 +01:00
parent 9c57ed6bd2
commit 978639b995
11 changed files with 191 additions and 188 deletions

View File

@@ -3,26 +3,14 @@
#pragma once
#include "androidrunner.h"
#include <debugger/debuggerruncontrol.h>
#include <projectexplorer/runcontrol.h>
namespace Android {
namespace Internal {
namespace Android::Internal {
class AndroidDebugSupport : public Debugger::DebuggerRunTool
class AndroidDebugWorkerFactory final : public ProjectExplorer::RunWorkerFactory
{
Q_OBJECT
public:
AndroidDebugSupport(ProjectExplorer::RunControl *runControl,
const QString &intentName = QString());
void start() override;
void stop() override;
private:
AndroidRunner *m_runner = nullptr;
AndroidDebugWorkerFactory();
};
} // namespace Internal
} // namespace Android
} // Android::Internal