[Request]Update Flora license version
[apps/home/clock.git] / timer / include / timer_utils.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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
18 #ifndef __APP_TIMER_UTILS_H__
19 #define __APP_TIMER_UTILS_H__
20
21 #include "timer.h"
22 #include "clock_fwk_util.h"
23 #include "clock_fwk_alarmmgr.h"
24
25 #define VCONF_TIMER_START_TIME  "db/private/org.tizen.clock/timer/start_time"
26 #define VCONF_TIMER_PANEL_FOCUS_ID  "db/private/org.tizen.clock/timer/focus_id"
27
28 int timer_vconf_load_start_time(void *data);    // to read time setted last time
29 int timer_vconf_set_start_time(void *data);     // to save the setted time
30 int timer_vconf_load_focus_id(void *data);      // to get which unit is focused last time
31 int timer_vconf_set_focus_id(void *data);       // to save which unit is focused
32
33 int timer_utils_register_alarm(void *data);     // to regist alarm to server
34 int timer_utils_unregister_alarm(void *data);   // to unregist an exist alarm
35 int timer_utils_time_get(void *data);   // to read the due time of an alarm
36 Eina_Bool is_timer_utils_time_validate(struct appdata *ad);     // to check whether the due time is valid
37 void set_default_time(struct appdata *ad);
38 TIMER_VIEW_PAGE timer_utils_read_alarm_state(void *data);       // to check whether there is an alarm registered by timer.
39 int timer_show_view(void *data, Eina_Bool bVisible);
40 void timer_repaint_time(void *data);
41
42 //
43 typedef enum {
44         TIMER_POPUP_ID_ALARMMGR = 1,
45         TIMER_POPUP_ID_ALARMDB,
46         TIMER_POPUP_ID_MAX,
47 } TIMER_POPUP_ID;
48 void timer_widget_create_popup(Evas_Object *parent, TIMER_POPUP_ID id);
49
50 typedef enum {
51         TIMER_EFFECT_ID_LEFT = 0,
52         TIMER_EFFECT_ID_RIGHT,
53 } TIMER_EFFECT_ID;
54 void timer_utils_view_change(struct appdata *ad);
55 void timer_utils_view_update(struct appdata *ad);
56
57 #endif                          /* __APP_TIMER_UTILS_H__ */