fix(cpn): sounds processing extra files and cancel update processes earlier (#5354)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
Neil Horne
2024-08-01 22:59:22 +10:00
committed by GitHub
co-authored by elecpower
parent b2a603ed21
commit 4390e310d0
13 changed files with 443 additions and 210 deletions
+13 -1
View File
@@ -31,6 +31,16 @@ class UpdateCloudBuild: public UpdateInterface
Q_DECLARE_TR_FUNCTIONS(UpdateCloudBuild)
public:
enum ProcessStatus {
STATUS_UNKNOWN,
STATUS_WAITING,
STATUS_IN_PROGRESS,
STATUS_SUCCESS,
STATUS_ERROR,
STATUS_TIMEOUT,
STATUS_CANCELLED
};
Q_ENUM(ProcessStatus)
explicit UpdateCloudBuild(QWidget * parent);
virtual ~UpdateCloudBuild();
@@ -53,7 +63,7 @@ class UpdateCloudBuild: public UpdateInterface
QString m_logDir;
QString m_buildFlags;
QTime m_buildStartTime;
QString m_jobStatus;
int m_jobStatus;
QStringList m_profileOpts;
QString m_radio;
@@ -69,4 +79,6 @@ class UpdateCloudBuild: public UpdateInterface
bool isStatusInProgress();
bool setAssetDownload();
void waitForBuildFinish();
static QString statusToString(const int status);
static int cloudStatusToInt(const QString status);
};