3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * @OMA_DS_Event_Handler.h
21 * @brief This file is the header file of interface for event callback function(from UI)
24 #ifndef OMA_DS_EVENT_HANDLER_H_
25 #define OMA_DS_EVENT_HANDLER_H_
28 #include <sync_agent.h>
31 * @par Description: This API is event callback function for add profile
35 * @par Typical use case:
36 * @par Method of function operation:
37 * @par Important notes:
38 * @param[in] buffer for incomming parameter
39 * @param[in] buffer for outgoing parameter
42 * @return 0 on success
55 int event_callback_add_profile_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
58 * @par Description: This API is event callback function for edit profile
62 * @par Typical use case:
63 * @par Method of function operation:
64 * @par Important notes:
65 * @param[in] buffer for incomming parameter
66 * @param[in] buffer for outgoing parameter
69 * @return 0 on success
82 int event_callback_edit_profile_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
85 * @par Description: This API is event callback function for delete profile
89 * @par Typical use case:
90 * @par Method of function operation:
91 * @par Important notes:
92 * @param[in] buffer for incomming parameter
93 * @param[in] buffer for outgoing parameter
96 * @return 0 on success
109 int event_callback_delete_profile_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
112 * @par Description: This API is event callback function for request sync
116 * @par Typical use case:
117 * @par Method of function operation:
118 * @par Important notes:
119 * @param[in] buffer for incomming parameter
120 * @param[in] buffer for outgoing parameter
123 * @return 0 on success
136 int event_callback_request_sync_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
139 * @par Description: This API is event callback function for cancel sync
143 * @par Typical use case:
144 * @par Method of function operation:
145 * @par Important notes:
146 * @param[in] buffer for incomming parameter
147 * @param[in] buffer for outgoing parameter
150 * @return 0 on success
163 int event_callback_cancel_sync_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
166 * @par Description: This API is event callback function for get profile data
170 * @par Typical use case:
171 * @par Method of function operation:
172 * @par Important notes:
173 * @param[in] buffer for incomming parameter
174 * @param[in] buffer for outgoing parameter
177 * @return 0 on success
190 int event_callback_get_profile_data_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
193 * @par Description: This API is event callback function for getting profile sync category
197 * @par Typical use case:
198 * @par Method of function operation:
199 * @par Important notes:
200 * @param[in] buffer for incomming parameter
201 * @param[in] buffer for outgoing parameter
204 * @return 0 on success
217 int event_callback_get_profile_sync_category_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
220 * @par Description: This API is event callback function for last statistics
224 * @par Typical use case:
225 * @par Method of function operation:
226 * @par Important notes:
227 * @param[in] buffer for incomming parameter
228 * @param[in] buffer for outgoing parameter
231 * @return 0 on success
244 int event_callback_get_profile_last_statistics_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
247 * @par Description: This API is event callback function for add profile for CP
251 * @par Typical use case:
252 * @par Method of function operation:
253 * @par Important notes:
254 * @param[in] buffer for incomming parameter
255 * @param[in] buffer for outgoing parameter
258 * @return 0 on success
271 int event_callback_add_profile_cp_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
274 * @par Description: This API is event callback function for request callog sync
278 * @par Typical use case:
279 * @par Method of function operation:
280 * @par Important notes:
281 * @param[in] buffer for incomming parameter
282 * @param[in] buffer for outgoing parameter
285 * @return 0 on success
298 int event_callback_request_calllog_sync_async(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
301 * @par Description: This API is event callback function for request reset all data
305 * @par Typical use case:
306 * @par Method of function operation:
307 * @par Important notes:
308 * @param[in] buffer for incomming parameter
309 * @param[in] buffer for outgoing parameter
312 * @return 0 on success
325 int event_callback_request_reset_all_data_sync(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
328 * @par Description: This API is event callback function for request reset all data
332 * @par Typical use case:
333 * @par Method of function operation:
334 * @par Important notes:
335 * @param[in] buffer for incomming parameter
336 * @param[in] buffer for outgoing parameter
339 * @return 0 on success
352 int event_callback_request_get_all_profiles_data(sync_agent_event_data_s * request, sync_agent_event_data_s * response);
354 #endif /* OMA_DS_EVENT_HANDLER_H_ */