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.
22 #include "user-interaction/user_interaction.h"
25 * @par Description: API to set ipc
29 * @par Typical use case:
30 * @par Method of function operation:
31 * @par Important notes:
33 * @return SYNC_AGENT_EVENT_SUCCESS success
34 SYNC_AGENT_EVENT_FAIL fail
51 * @par Description: API to noti start
55 * @par Typical use case:
56 * @par Method of function operation:
57 * @par Important notes:
60 * @return RESPONSE_TYPE_OK success
61 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
75 int noti_start(char *ui_mode);
78 * @par Description: API to noti connect to server
82 * @par Typical use case:
83 * @par Method of function operation:
84 * @par Important notes:
86 * @return RESPONSE_TYPE_OK success
87 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
104 * @par Description: API to noti install
108 * @par Typical use case:
109 * @par Method of function operation:
110 * @par Important notes:
112 * @return RESPONSE_TYPE_OK success
113 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
130 * @par Description: API to noti send download info
134 * @par Typical use case:
135 * @par Method of function operation:
136 * @par Important notes:
137 * @param[in] filesize
138 * @param[in] file path
140 * @return RESPONSE_TYPE_OK success
141 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
155 int noti_send_download_info(int filesize, char *path);
158 * @par Description: API to noti low batter
162 * @par Typical use case:
163 * @par Method of function operation:
164 * @par Important notes:
165 * @param[in] battery level
167 * @return RESPONSE_TYPE_OK success
168 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
182 int noti_low_battery(char *battery_level);
185 * @par Description: API to alert uic display
189 * @par Typical use case:
190 * @par Method of function operation:
191 * @par Important notes:
192 * @param[in] uic_data
194 * @return RESPONSE_TYPE_OK success
195 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
209 int alert_uic_display(uic_data * uic_value);
212 * @par Description: API to alert uic confirm
216 * @par Typical use case:
217 * @par Method of function operation:
218 * @par Important notes:
219 * @param[in] uic_data
221 * @return RESPONSE_TYPE_OK success
222 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
236 int alert_uic_confirmation(uic_data * uic_value);
239 * @par Description: API to alert uic input
243 * @par Typical use case:
244 * @par Method of function operation:
245 * @par Important notes:
246 * @param[in] uic_data
248 * @return RESPONSE_TYPE_OK success
249 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
263 int alert_uic_inputText(uic_data * uic_value);
266 * @par Description: API to alert single choice
270 * @par Typical use case:
271 * @par Method of function operation:
272 * @par Important notes:
273 * @param[in] uic_data
275 * @return RESPONSE_TYPE_OK success
276 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
290 int alert_uic_single_choice(uic_data * uic_value);
293 * @par Description: API to alert multiple choice
297 * @par Typical use case:
298 * @par Method of function operation:
299 * @par Important notes:
300 * @param[in] uic_data
302 * @return RESPONSE_TYPE_OK success
303 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
317 int alert_uic_multiple_choice(uic_data * uic_value);
320 * @par Description: API to noti engine fail
324 * @par Typical use case:
325 * @par Method of function operation:
326 * @par Important notes:
327 * @param[in] previous noti id
328 * @param[in] fail type
330 * @return RESPONSE_TYPE_OK success
331 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
345 int noti_engine_fail(int prev_noti_id, int fail_type);
348 * @par Description: API to noti wifi only download fail
352 * @par Typical use case:
353 * @par Method of function operation:
354 * @par Important notes:
356 * @return RESPONSE_TYPE_OK success
357 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
371 int noti_wifi_only_download_fail();
374 * @par Description: API to noti memory full
378 * @par Typical use case:
379 * @par Method of function operation:
380 * @par Important notes:
381 * @param[in] int type, file size
383 * @return RESPONSE_TYPE_OK success
384 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
398 int noti_memory_full(int file_size);
401 * @par Description: API to noti over max file size
405 * @par Typical use case:
406 * @par Method of function operation:
407 * @par Important notes:
409 * @return RESPONSE_TYPE_OK success
410 RESPONSE_TYPE_NONE , RESPONSE_TYPE_CANCEL, RESPONSE_TYPE_TIMEOVER fail
424 int noti_over_max_file_size();
426 #endif /* IPC_AGENT_H_ */