4 * Copyright (c) 2014 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.
27 * @addtogroup CAPI_TELEPHONY_SERVICE_SAP
34 #include <tapi_common.h>
43 * @brief Requests to connect SAP.
45 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
47 * <b> Prospective Clients: </b> External Apps.
51 * @privilege %http://tizen.org/privilege/telephony.admin
53 * @param[in] handle The handle from tel_init()
54 * @param[in] max_msg_size The maximum message size
55 * @param[in] callback To register a callback function for result
56 * @param[in] user_data The user data for user specification
58 * @return The return type (int) \n
59 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
60 * Negative integer : It provides an error code (Refer #TapiResult_t).
62 int tel_req_sap_connect(TapiHandle *handle, int max_msg_size, tapi_response_cb callback, void *user_data);
65 * @brief Requests to disconnect SAP.
67 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
69 * <b> Prospective Clients: </b> External Apps.
73 * @privilege %http://tizen.org/privilege/telephony.admin
75 * @param[in] handle The handle from tel_init()
76 * @param[in] callback To register a callback function for result
77 * @param[in] user_data The user data for user specification
79 * @return The return type (int) \n
80 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
81 * Negative integer : It provides an error code (Refer #TapiResult_t).
83 int tel_req_sap_disconnect(TapiHandle *handle, tapi_response_cb callback, void *user_data);
86 * @brief Requests for the SAP connection status.
88 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
90 * <b> Prospective Clients: </b> External Apps.
94 * @privilege %http://tizen.org/privilege/telephony.admin
96 * @param[in] handle The handle from tel_init()
97 * @param[in] callback To register a callback function for result
98 * @param[in] user_data The user data for user specification
100 * @return The return type (int) \n
101 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
102 * Negative integer : It provides an error code (Refer #TapiResult_t).
104 int tel_req_sap_connection_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
107 * @brief Requests to get atr.
109 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
111 * <b> Prospective Clients: </b> External Apps.
114 * @privlevel platform
115 * @privilege %http://tizen.org/privilege/telephony.admin
117 * @param[in] handle The handle from tel_init()
118 * @param[in] callback To register a callback function for result
119 * @param[in] user_data The user data for user specification
121 * @return The return type (int) \n
122 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
123 * Negative integer : It provides an error code (Refer #TapiResult_t).
125 int tel_req_sap_transfer_atr(TapiHandle *handle, tapi_response_cb callback, void *user_data);
128 * @brief Requests to transfer APDU.
130 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
132 * <b> Prospective Clients: </b> External Apps.
135 * @privlevel platform
136 * @privilege %http://tizen.org/privilege/telephony.admin
138 * @param[in] handle The handle from tel_init()
139 * @param[in] apdu_data The APDU data
140 * @param[in] callback To register a callback function for result
141 * @param[in] user_data The user data for user specification
143 * @return The return type (int) \n
144 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
145 * Negative integer : It provides an error code (Refer #TapiResult_t).
147 int tel_req_sap_transfer_apdu(TapiHandle *handle, TelSapApduData_t *apdu_data, tapi_response_cb callback, void *user_data);
150 * @brief Requests to transport protocol.
152 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
154 * <b> Prospective Clients: </b> External Apps.
157 * @privlevel platform
158 * @privilege %http://tizen.org/privilege/telephony.admin
160 * @param[in] handle The handle from tel_init()
161 * @param[in] protocol The SAP transport protocol type
162 * @param[in] callback To register a callback function for result
163 * @param[in] user_data The user data for user specification
165 * @return The return type (int)\n
166 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully\n
167 * Negative integer : It provides an error code (Refer #TapiResult_t).
169 int tel_req_sap_transport_protocol(TapiHandle *handle, TelSimSapProtocol_t protocol, tapi_response_cb callback, void *user_data);
172 * @brief Requests to control power mode.
174 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
176 * <b> Prospective Clients: </b> External Apps.
179 * @privlevel platform
180 * @privilege %http://tizen.org/privilege/telephony.admin
182 * @param[in] handle The handle from tel_init()
183 * @param[in] power_mode The data to control the power mode of client
184 * @param[in] callback To register a callback function for result
185 * @param[in] user_data The user data for user specification
187 * @return The return type (int) \n
188 * Integer '0' ( same with TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
189 * Negative integer : It provides an error code (Refer #TapiResult_t).
191 int tel_req_sap_power_operation(TapiHandle *handle, TelSimSapPowerMode_t power_mode, tapi_response_cb callback, void *user_data);
194 * @brief Requests to get the card reader status.
196 * @details <b> Sync (or) Async: </b> This is an Asynchronous API.\n
198 * <b> Prospective Clients: </b> External Apps.
201 * @privlevel platform
202 * @privilege %http://tizen.org/privilege/telephony.admin
204 * @param[in] handle The handle from tel_init()
205 * @param[in] callback To register a callback function for result
206 * @param[in] user_data The user data for user specification
208 * @return The return type (int) \n
209 * Integer '0' ( same with #TAPI_API_SUCCESS ): indicates that the operation has completed successfully \n
210 * Negative integer : It provides an error code (Refer #TapiResult_t).
212 int tel_req_sap_cardreader_status(TapiHandle *handle, tapi_response_cb callback, void *user_data);
218 #endif /* _ITAPI_SAP_H_ */