136a3a8d0Sopenharmony_ci/*
236a3a8d0Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
336a3a8d0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
436a3a8d0Sopenharmony_ci * you may not use this file except in compliance with the License.
536a3a8d0Sopenharmony_ci * You may obtain a copy of the License at
636a3a8d0Sopenharmony_ci *
736a3a8d0Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
836a3a8d0Sopenharmony_ci *
936a3a8d0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1036a3a8d0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1136a3a8d0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1236a3a8d0Sopenharmony_ci * See the License for the specific language governing permissions and
1336a3a8d0Sopenharmony_ci * limitations under the License.
1436a3a8d0Sopenharmony_ci */
1536a3a8d0Sopenharmony_ci#ifndef OHOS_RESOURCE_MANAGER_RSTATE_H
1636a3a8d0Sopenharmony_ci#define OHOS_RESOURCE_MANAGER_RSTATE_H
1736a3a8d0Sopenharmony_ci
1836a3a8d0Sopenharmony_cinamespace OHOS {
1936a3a8d0Sopenharmony_cinamespace Global {
2036a3a8d0Sopenharmony_cinamespace Resource {
2136a3a8d0Sopenharmony_cienum RState {
2236a3a8d0Sopenharmony_ci    SUCCESS = 0,
2336a3a8d0Sopenharmony_ci    NOT_SUPPORT_SEP = 1,
2436a3a8d0Sopenharmony_ci    INVALID_BCP47_STR_LEN_TOO_SHORT = 2,
2536a3a8d0Sopenharmony_ci    INVALID_BCP47_LANGUAGE_SUBTAG = 3,
2636a3a8d0Sopenharmony_ci    INVALID_BCP47_SCRIPT_SUBTAG = 4,
2736a3a8d0Sopenharmony_ci    INVALID_BCP47_REGION_SUBTAG = 5,
2836a3a8d0Sopenharmony_ci    HAP_INIT_FAILED = 6,
2936a3a8d0Sopenharmony_ci    NOT_FOUND = 7,
3036a3a8d0Sopenharmony_ci    INVALID_FORMAT = 8,
3136a3a8d0Sopenharmony_ci    LOCALEINFO_IS_NULL = 9,
3236a3a8d0Sopenharmony_ci    NOT_ENOUGH_MEM = 10,
3336a3a8d0Sopenharmony_ci    ERROR = 10000,
3436a3a8d0Sopenharmony_ci    ERROR_CODE_INVALID_INPUT_PARAMETER = 401,
3536a3a8d0Sopenharmony_ci    ERROR_CODE_RES_ID_NOT_FOUND        = 9001001,
3636a3a8d0Sopenharmony_ci    ERROR_CODE_RES_NOT_FOUND_BY_ID     = 9001002,
3736a3a8d0Sopenharmony_ci    ERROR_CODE_RES_NAME_NOT_FOUND      = 9001003,
3836a3a8d0Sopenharmony_ci    ERROR_CODE_RES_NOT_FOUND_BY_NAME   = 9001004,
3936a3a8d0Sopenharmony_ci    ERROR_CODE_RES_PATH_INVALID        = 9001005,
4036a3a8d0Sopenharmony_ci    ERROR_CODE_RES_REF_TOO_MUCH        = 9001006,
4136a3a8d0Sopenharmony_ci    ERROR_CODE_RES_ID_FORMAT_ERROR     = 9001007,
4236a3a8d0Sopenharmony_ci    ERROR_CODE_RES_NAME_FORMAT_ERROR   = 9001008,
4336a3a8d0Sopenharmony_ci    ERROR_CODE_SYSTEM_RES_MANAGER_GET_FAILED = 9001009,
4436a3a8d0Sopenharmony_ci    ERROR_CODE_OVERLAY_RES_PATH_INVALID = 9001010,
4536a3a8d0Sopenharmony_ci};
4636a3a8d0Sopenharmony_ci} // namespace Resource
4736a3a8d0Sopenharmony_ci} // namespace Global
4836a3a8d0Sopenharmony_ci} // namespace OHOS
4936a3a8d0Sopenharmony_ci#endif