tizen 2.3 release
[apps/home/settings.git] / setting-syspopup / include / mode-syspopup-alarmmgr.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  *     http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 #ifndef __MODE_SYSPOPUP_ALARMMGR_H__
18 #define __MODE_SYSPOPUP_ALARMMGR_H__
19
20 #include <alarm.h>
21 #include <bundle.h>
22 #include <time.h>
23 #include <vconf.h>
24 #include <mode-syspopup.h>
25
26 #define SETTING_BM_ALARM_APP "org.tizen.setting-blockingmode-alarm"
27
28 typedef struct mode_bm_alarm_data MODE_BM_AData;
29 struct mode_bm_alarm_data {
30         int alarm_mgr_id;       /**< index from alarm-manager */
31         int hour;
32         int min;
33 };
34
35 #define SET_BM_TIME_DATA_T(pTime_data, YEAR, MONTH, DAY, HOUR, MIN, SEC) \
36 do {\
37     (pTime_data)->year = (YEAR);\
38     (pTime_data)->month = (MONTH);\
39     (pTime_data)->day = (DAY);\
40     (pTime_data)->hour = (HOUR);\
41     (pTime_data)->min = (MIN);\
42     (pTime_data)->sec = (SEC);\
43 } while (0)
44
45 int mode_syspopup_alarmmgr_create(MODE_BM_AData *alarm);
46 int mode_syspopup_alarmmgr_remove(MODE_BM_AData *alarm);
47 int mode_syspopup_alarmmgr_update(MODE_BM_AData *alarm);
48
49 #endif                          //__MODE_SYSPOPUP_ALARMMGR_H__