tizen 2.3.1 release
[apps/home/b2-clocksetting.git] / include / setting-motion.h
1 /*
2  *  Copyright (c) 2014 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://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  * setting-motion.h
19  *
20  *  Created on: Oct 9, 2013
21  *      Author: min-hoyun
22  */
23
24 #ifndef SETTING_MOTION_H_
25 #define SETTING_MOTION_H_
26
27 #include <Elementary.h>
28 #include <libintl.h>
29 #include <string.h>
30
31 #include "setting_data_vconf.h"
32 #include "util.h"
33
34
35 #define MOTION_ITEM_COUNT                       2
36 #define MOTION_WAKE_UP_ITEM_COUNT       3
37
38 struct _motion_menu_item {
39         char *name;
40         int state;
41         void (*func)(void *data, Evas_Object *obj, void *event_info);
42 };
43
44 struct _motion_wake_up_guesture_item {
45         char *title;
46         int value;
47 };
48
49 typedef struct Motion_Item_Data {
50         int index;
51         Elm_Object_Item *item;
52 } Motion_Item_Data;
53
54
55 typedef struct _motion_data {
56         int is_enable_smart_relay;
57         int is_enable_wake_up_gesture;
58         int wake_up_gesture_type;
59
60         appdata *temp_ad;
61
62         Evas_Object *g_motion_genlist;
63
64 } Motion_Data;
65
66
67 char *_gl_motion_title_get(void *data, Evas_Object *obj, const char *part);
68 Evas_Object *_gl_motion_check_get(void *data, Evas_Object *obj, const char *part);
69 Evas_Object *_create_motion_list(void *data);
70 void _motion_chk_changed_cb(void *data, Evas_Object *obj, void *event_info);
71 void _motion_gl_smart_relay_cb(void *data, Evas_Object *obj, void *event_info);
72 void _motion_gl_wake_up_cb(void *data, Evas_Object *obj, void *event_info);
73 char *_get_wake_up_gesture_sub_title();
74
75 void _initialize_motion();
76 Eina_Bool _clear_motion_cb(void *data, Elm_Object_Item *it);
77
78 void motion_vconf_changed_cb(keynode_t *key, void *data);
79
80 #endif /* SETTING_MOTION_H_ */