2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __KIES_ALARM_H__
18 #define __KIES_ALARM_H__
20 #define KIES_ALM_SUCCESS 0
21 #define KIES_ALM_FAILED -1
25 RESULT_FAILED = KIES_ALM_FAILED,
26 RESULT_SUCCESS = KIES_ALM_SUCCESS,
27 RESULT_ERR_NULL_ALARM, /*don't alarm in phone, not save */
34 #define A_DBAPI __attribute__ ((visibility("default")))
37 * @def VCONFKEY_ALARM_RESTORE
38 * when restore alarm, send the message to notify the alarm data changed.
39 * It could be get by use vconf_ignore_key_changed
41 #define VCONFKEY_ALARM_RESTORE "memory/alarm/restore"
44 * This function backup alarm data, the data will be saved to @param
45 * If the file path is NULL, return FAILED
47 * @brief backup alarm data
49 * @param [in] file_path the path of user want to save data
51 * @return On success, SUCCESS is returned. On error, FAILED is returned
52 * if phone don't save any alarm, RESULT_ERR_NULL_ALARM is returned.
61 A_DBAPI int alarm_backup(const char *file_path);
64 * This function restore alarm data, the data is from @param
65 * If the file path is NULL, return FAILED
67 * @brief backup alarm data
69 * @param [in] file_path the path of user want to get data
71 * @return On success, SUCCESS is returned. On error, FAILED is returned
80 A_DBAPI int alarm_restore(const char *file_path);
82 #endif/*__KIES_ALARM_H__*/