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 THERMAL_LEVEL_INFO_H 17 #define THERMAL_LEVEL_INFO_H 18 19 namespace OHOS { 20 namespace PowerMgr { 21 const std::string THERMAL_LEVEL_COOL = "thermal.level.COOL"; 22 const std::string THERMAL_LEVEL_NORMAL = "thermal.level.NORMAL"; 23 const std::string THERMAL_LEVEL_WARM = "thermal.level.WARM"; 24 const std::string THERMAL_LEVEL_HOT = "thermal.level.HOT"; 25 const std::string THERMAL_LEVEL_OVERHEATED = "thermal.level.OVERHEATED"; 26 const std::string THERMAL_LEVEL_WARNING = "thermal.level.WARNING"; 27 const std::string THERMAL_LEVEL_EMERGENCY = "thermal.level.EMERGENCY"; 28 29 enum class ThermalLevel : int32_t { 30 /** 31 * @brief cool level 32 * 33 */ 34 COOL, 35 /** 36 * @brief NORMAL level 37 * 38 */ 39 NORMAL, 40 /** 41 * @brief warm level 42 * 43 */ 44 WARM, 45 /** 46 * @brief hot level 47 * 48 */ 49 HOT, 50 /** 51 * @brief overheated level 52 * 53 */ 54 OVERHEATED, 55 /** 56 * @brief warning level 57 * 58 */ 59 WARNING, 60 /** 61 * @brief emergency level, it will make device shutdown 62 * 63 */ 64 EMERGENCY, 65 }; 66 } // PowerMgr 67 } // OHOS 68 69 #endif // THERMAL_LEVEL_INFO_H