3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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.
18 #ifndef __KIES_ALARM_H__
19 #define __KIES_ALARM_H__
21 #define KIES_ALM_SUCCESS 0
22 #define KIES_ALM_FAILED -1
26 RESULT_FAILED = KIES_ALM_FAILED,
27 RESULT_SUCCESS = KIES_ALM_SUCCESS,
28 RESULT_ERR_NULL_ALARM, /*don't alarm in phone, not save */
35 #define A_DBAPI __attribute__ ((visibility("default")))
38 * @def VCONFKEY_ALARM_RESTORE
39 * when restore alarm, send the message to notify the alarm data changed.
40 * It could be get by use vconf_ignore_key_changed
42 #define VCONFKEY_ALARM_RESTORE "memory/alarm/restore"
45 * This function backup alarm data, the data will be saved to @param
46 * If the file path is NULL, return FAILED
48 * @brief backup alarm data
50 * @param [in] file_path the path of user want to save data
52 * @return On success, SUCCESS is returned. On error, FAILED is returned
53 * if phone don't save any alarm, RESULT_ERR_NULL_ALARM is returned.
62 A_DBAPI int alarm_backup(const char *file_path);
65 * This function restore alarm data, the data is from @param
66 * If the file path is NULL, return FAILED
68 * @brief backup alarm data
70 * @param [in] file_path the path of user want to get data
72 * @return On success, SUCCESS is returned. On error, FAILED is returned
81 A_DBAPI int alarm_restore(const char *file_path);
83 #endif/*__KIES_ALARM_H__*/