From d1f795e2dbfba66452b1fd6c4f29b17490f9ce7c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 19 Oct 2023 13:38:16 +0200 Subject: [PATCH] Added helpers: bool isRepositoryCorrupted(); bool repairCorruptedRepository(); int sendCloneAndCheckoutSuccess(); int sendCloneAndCheckoutFailure(); int sendIsmasTriggerFailure(); and static variables static constexpr const int CLONE_AND_CHECKOUT_SUCCESS = 0; static constexpr const int CLONE_AND_CHECKOUT_FAILURE = -3; static constexpr const int ISMAS_TRIGGER_FAILURE = -5; --- worker.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/worker.h b/worker.h index 50ad513..2913a08 100644 --- a/worker.h +++ b/worker.h @@ -52,7 +52,8 @@ enum class UPDATE_STATUS : quint8 { PSA_UPDATE_FILES_FAILED, GIT_CHECK_FILES_TO_UPDATE_SUCCESS, ISMAS_SEND_LAST_VERSION_FAILED, - SAVE_LOG_FILES_FAILED + SAVE_LOG_FILES_FAILED, + REMOVE_GIT_REPOSITORY_FAILED }; struct UpdateStatus { @@ -128,6 +129,16 @@ class Worker : public QObject { QStringList getDCVersion() const; qint64 getFileSize(QString const &fileName) const; + bool isRepositoryCorrupted(); + bool repairCorruptedRepository(); + + int sendCloneAndCheckoutSuccess(); + int sendCloneAndCheckoutFailure(); + int sendIsmasTriggerFailure(); + + static constexpr const int CLONE_AND_CHECKOUT_SUCCESS = 0; + static constexpr const int CLONE_AND_CHECKOUT_FAILURE = -3; + static constexpr const int ISMAS_TRIGGER_FAILURE = -5; public: static QString getATBUpdateToolYoctoVersion();