1 /* 2 * Copyright (c) 2021 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 FOUNDATION_ACE_FRAMEWORKS_BASE_RESOURCE_ACE_RES_DATA_STRUCT_H 17 #define FOUNDATION_ACE_FRAMEWORKS_BASE_RESOURCE_ACE_RES_DATA_STRUCT_H 18 19 #include <string> 20 #include <unordered_map> 21 22 #include "base/utils/system_properties.h" 23 24 namespace OHOS::Ace { 25 enum class KeyType : int32_t { 26 MCC = 0, 27 MNC = 1, 28 MNC_SHORT_LEN = 2, 29 ORIENTATION = 3, 30 COLOR_MODE = 4, 31 DEVICETYPE = 5, 32 RESOLUTION = 6, 33 LONGSCREEN = 7, 34 SCREENSHAPE = 8, 35 DECLARATIVE_COLOR_MODE = 9, 36 }; 37 38 struct KeyParam { 39 KeyType keyType; 40 int32_t value; 41 }; 42 43 enum class CompareResult : int32_t { 44 PREFERRED = 0, 45 NOT_PREFERRED = 1, 46 EQUAL_RES = 2, 47 }; 48 49 } // namespace OHOS::Ace 50 51 #endif // FOUNDATION_ACE_FRAMEWORKS_BASE_RESOURCE_ACE_RES_DATA_STRUCT_H