1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef UPDATE_SERVICE_UPGRADE_STATUS_H 17 #define UPDATE_SERVICE_UPGRADE_STATUS_H 18 19 namespace OHOS::UpdateEngine { 20 enum class UpgradeStatus { 21 ERROR = -1, 22 INIT = 0, 23 CHECKING_VERSION = 10, 24 CHECK_VERSION_FAIL, 25 CHECK_VERSION_SUCCESS, 26 DOWNLOADING = 20, 27 DOWNLOAD_PAUSE, 28 DOWNLOAD_CANCEL, 29 DOWNLOAD_FAIL, 30 DOWNLOAD_SUCCESS, 31 VERIFYING = 30, 32 VERIFY_FAIL, 33 VERIFY_SUCCESS, 34 AUTHING = 60, 35 AUTH_FAIL, 36 AUTH_SUCCESS, 37 WAIT_TRANSFER = 68, 38 TRANSFER_START = 69, 39 PACKAGE_TRANSING = 70, 40 PACKAGE_TRANS_FAIL, 41 PACKAGE_TRANS_SUCCESS, 42 INSTALLING = 80, 43 INSTALL_FAIL, 44 INSTALL_SUCCESS, 45 UPDATING = 90, 46 UPDATE_FAIL, 47 UPDATE_SUCCESS, 48 UPGRADE_REBOOT, 49 UPGRADE_COUNT_DOWN = 100, 50 UPGRADE_CANCEL 51 }; 52 } // namespace OHOS::UpdateEngine 53 #endif // UPDATE_SERVICE_UPGRADE_STATUS_H 54