4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 * @ingroup TelephonyAPI
24 * @addtogroup POWER_TAPI POWER
27 * These APIs allow an application to accomplish the following services: @n
28 * - Get current phone power status, @n
29 * - Reset the phone power (on / off), @n
30 * - Get the Display Icon Information. @n
36 #include <TelDefines.h>
43 * This defines the phone power reset commands.
46 TAPI_PHONE_POWER_OFF = 0, TAPI_PHONE_POWER_ON, TAPI_PHONE_POWER_RESET,
47 } tapi_power_phone_cmd_t;
50 * This defines the phone power status values.
53 TAPI_PHONE_POWER_STATUS_ON = 0, TAPI_PHONE_POWER_STATUS_OFF, TAPI_PHONE_POWER_STATUS_ERROR,
54 } tapi_power_phone_power_status_t;
57 * Use to Enter or Leave Flight Mode.
61 TAPI_POWER_FLIGHT_MODE_ENTER = 0x01, /**< ONLINE OFF */
62 TAPI_POWER_FLIGHT_MODE_LEAVE, /**< ONLINE ON */
63 TAPI_POWER_FLIGHT_MODE_MAX
64 } tapi_power_flight_mode_type_t;
67 TAPI_POWER_FLIGHT_MODE_RESP_ON = 0x01, /**< Flight Mode On Success */
68 TAPI_POWER_FLIGHT_MODE_RESP_OFF, /**< Flight Mode Off Success */
69 TAPI_POWER_FLIGHT_MODE_RESP_FAIL, /**< Flight Mode Request Fail */
70 TAPI_POWER_FLIGHT_MODE_RESP_MAX
71 } tapi_power_flight_mode_resp_type_t;
74 * This enum defines the phone battery status levels.
76 * 0x01 : Power Off Level => PhoneLevel = power off
77 * 0x02 : Critical-Low Battery Level => PhoneLevel = 0
78 * 0x03 : Low Battery Level => PhoneLevel = 1
79 * 0x04 : Normal Level => PhoneLevel = 2,3,4
82 TAPI_POWER_BATT_STAT_POWER_OFF_LEVEL = 0x01, /**< Power Off Level */
83 TAPI_POWER_BATT_STAT_CRIT_LOW_LEVEL = 0x02, /**< Critical-Low Battery Level */
84 TAPI_POWER_BATT_STAT_LOW_LEVEL = 0x03, /**< Low Battery Level */
85 TAPI_POWER_BATT_STAT_NORMAL_LEVEL = 0x04 /**< Normal Level */
86 } tapi_power_battery_status_level_t;
92 #endif /* _TEL_POWER_H_ */