AndroidDeployQtStep: Make it cancelable

And use QFutureInterface for it.

Change-Id: I1145b70b119d92af7316977c813f4f29b1f20b74
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-11-09 16:05:25 +01:00
parent 038771051d
commit 1e632d0c25
5 changed files with 34 additions and 23 deletions

View File

@@ -4,8 +4,7 @@
#pragma once
#include "androidbuildapkstep.h"
#include "androidconfigurations.h"
#include "androiddeviceinfo.h"
#include <projectexplorer/abstractprocessstep.h>
#include <qtsupport/baseqtversion.h>
@@ -49,11 +48,12 @@ private:
bool init() override;
void doRun() override;
void doCancel() override;
void gatherFilesToPull();
DeployErrorCode runDeploy();
void slotAskForUninstall(DeployErrorCode errorCode);
bool runImpl();
void runImpl(QFutureInterface<bool> &fi);
QWidget *createConfigWidget() override;