diff --git a/UpdatePTUDevCtrl/ismas/ismas_client.h b/UpdatePTUDevCtrl/ismas/ismas_client.h index 1811463..bff1f03 100644 --- a/UpdatePTUDevCtrl/ismas/ismas_client.h +++ b/UpdatePTUDevCtrl/ismas/ismas_client.h @@ -145,13 +145,47 @@ public: DIRECT_PORT = 7778 }; - enum RESULT_CODE { SUCCESS=0, + // if between 00:00 - 04:00 Wait-button state not WAIT, then we assume + // that's an automatic nightly (not-necessary) update NO_UPDATE_NECESSARY=1, - BACKUP_FAILED=2, - WRONG_PACKAGE=3, - INSTALL_ERROR=4}; + // if APISM reports the ISMAS is not available (15x, 6s delay each) + ISMAS_NO_CONNECTION_ERROR=2, + // if not within 00:00-04:00 and WAIT-button was not in state WAIT + ISMAS_TRIGGER_ERROR=3, + // cloning git repo. not possible + GIT_CLONE_ERROR=4, + // pulling from remote git server not possible + GIT_PULL_ERROR=5, + // fetching from remote git server not possible + GIT_FETCH_ERROR=6, + // merging fetched data not possible + GIT_MERGE_ERROR=7, + // check sanity of local customer-repository failed + GIT_CHECK_REPOSITORY_ERROR=8, + // switch/checkout of branch (i.e. zone) on error + GIT_SWITCH_BRANCH_ERROR=9, + // fetch/pull of new branch failed. the new branch was not available + // when installing via SD-card followed by intial clone during the + // update process. + GIT_FETCH_NEW_BRANCH_ERROR=10, + // error computing git-blob hash-value + GIT_HASH_ERROR=11, + // update for general json files failed. + JSON_FILES_UPDATE_ERROR=12, + // error downloading config-json-files to device controller + JSON_FILES_DOWNLOAD_ERROR=13, + // error downloading device-controller + DC_DOWNLOAD_ERROR=14, + // error rsyncing json/ini-files to local filesystem + RSYN_ERROR=15, + // HASH_VALUE_ERROR=14, + // HW_COMPATIBILITY_ERROR=15, + OPKG_COMMANDS_ERROR=16, + // CLEANUP_ERROR=18, + UPDATE_IN_ERROR_STATE=99 + }; enum REASON { TIME_TRIGGERED = 0,