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;
			
			
This commit is contained in:
		
							
								
								
									
										13
									
								
								worker.h
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user