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 MISC_TAPI MISC
29 @brief This file serves as a "C" header file defines functions for Tapi Misc Services.\n
30 It contains a sample set of function prototypes that would be required by applications.
31 This header file defines the Telephony - MISC - API's. These API's will be used by the
32 processing Nitz and RTC time and some MISC functions.
34 #ifndef _ITAPI_MISC_H_
35 #define _ITAPI_MISC_H_
37 #include <TelDefines.h>
38 #include <TelUtility.h>
47 * @brief This function is invoked to Confirm Time zone Info.
49 * @par Sync (or) Async:
50 * This is a Asynchronous API.
52 * @par Important Notes:
59 * @param [in] timezone_info
62 * @par Async Response Message:
71 * @return Return Type (int) \n
72 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
73 * - Negative integer : it provides an error code (Refer #TapiResult_t)
75 * @par Prospective Clients:
79 int tel_confirm_misc_timezone_Info(tapi_misc_time_zone_info_type *timezone_info);
83 * @brief This function is invoked to Get Time zone Mode.
85 * @par Sync (or) Async:
86 * This is a Synchronous API.
88 * @par Important Notes:
95 * @param [out] bTimezone_valid
96 * - specifies whether true or false.
98 * @par Async Response Message:
107 * @return Return Type (int) \n
108 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
109 * - Negative integer : it provides an error code (Refer #TapiResult_t)
111 * @par Prospective Clients:
115 int tel_get_misc_timezone_mode(int *bTimezone_valid);
119 * @brief This function is invoked to Set Time zone Information
121 * @par Sync (or) Async:
122 * This is a Asynchronous API.
124 * @par Important Notes:
131 * @param [in] timezone_info
132 * - specifies the time zone information
134 * @par Async Response Message:
143 * @return Return Type (int) \n
144 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
145 * - Negative integer : it provides an error code (Refer #TapiResult_t)
147 * @par Prospective Clients:
151 int tel_set_misc_timezone_info(tapi_misc_time_zone_info_type *timezone_info);
155 * @brief This function is invoked to Get Time zone Information
157 * @par Sync (or) Async:
158 * This is a Asynchronous API.
160 * @par Important Notes:
170 * @par Async Response Message:
179 * @return Return Type (int) \n
180 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
181 * - Negative integer : it provides an error code (Refer #TapiResult_t)
183 * @par Prospective Clients:
187 int tel_get_misc_timezone_info(void);
191 * @brief This function is invoked to Get ME version information.
193 * @par Sync (or) Async:
194 * This is a synchronous API.
196 * @par Important Notes:
202 * @param [out] ver_info
203 * - SW,HW version, RF calibration date, product code, model id(CDMA only), PRL/ERI information(CDMA only)
204 * refer #TelMiscVersionInformation
206 * @par Async Response Message:
215 * @return Return Type (int) \n
216 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
217 * - Negative integer : it provides an error code (Refer #TapiResult_t)
219 * @par Prospective Clients:
223 int tel_get_misc_me_version(TelMiscVersionInformation *ver_info);
227 * @brief This function is invoked to Get ME IMEI/ESN/MEID for each phone type.
229 * @par Sync (or) Async:
230 * This is a synchronous API.
232 * @par Important Notes:
238 * @param [in] sn_index
239 * - serial type which user wants to get from current device. Refer #TelMiscSNIndexType_t
241 * @param [out] sn_info
242 * - Device Serial number information. IMEI for GSM/UMTS device, ESN or MEID for CDMA device. Refer #TelMiscSNInformation
244 * @par Async Response Message:
253 * @return Return Type (int) \n
254 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
255 * - Negative integer : it provides an error code (Refer #TapiResult_t)
257 * @par Prospective Clients:
261 int tel_get_misc_me_sn(TelMiscSNIndexType_t sn_index, TelMiscSNInformation *sn_info);
265 * @brief This function is invoked to Get NAM info.
267 * @par Sync (or) Async:
268 * This is a Asynchronous API.
270 * @par Important Notes:
276 * @param [in] nam_info_mask, nam_index
277 * - nam info mask & index
279 * @par Async Response Message:
288 * @return Return Type (int) \n
289 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
290 * - Negative integer : it provides an error code (Refer #TapiResult_t)
292 * @par Prospective Clients:
296 int tel_get_misc_nam_info(unsigned short nam_info_mask, TelMiscNamIndex_t nam_index);
300 * @brief This function is invoked to Set NAM info.
302 * @par Sync (or) Async:
303 * This is a Asynchronous API.
305 * @par Important Notes:
311 * @param [in] nam_info
314 * @par Async Response Message:
323 * @return Return Type (int) \n
324 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
325 * - Negative integer : it provides an error code (Refer #TapiResult_t)
327 * @par Prospective Clients:
331 int tel_set_misc_nam_info(TelMiscNamInfo_t *nam_info);
335 * @brief This function is used to enable emergency mode
336 * when device goes into emergency mode, user can not use normal call, SMS, and MMS service excepting emergency call.
338 * @par Sync (or) Async:
339 * This is a synchronous API.
341 * @par Important Notes:
348 * - emergency mode value to request. 0:disable, 1:enable
350 * @par Async Response Message:
359 * @return Return Type (int) \n
360 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
361 * - Negative integer : it provides an error code (Refer #TapiResult_t)
363 * @par Prospective Clients:
367 int tel_set_misc_emergency_mode(int mode);
371 * @brief This function is used to get current device emergency mode status.
373 * @par Sync (or) Async:
374 * This is a synchronous API.
376 * @par Important Notes:
383 * - current emergency mode
385 * @par Async Response Message:
394 * @return Return Type (int) \n
395 * - Integer '0' ( same with TAPI_API_SUCCESS ) - indicating that the operation has completed successfully. \n
396 * - Negative integer : it provides an error code (Refer #TapiResult_t)
398 * @par Prospective Clients:
402 int tel_get_misc_emergency_mode(int *mode);
408 #endif // _ITAPI_MISC_H_