tizen 2.3 release
[apps/home/b2-clocksetting.git] / include / setting-motion.h
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11 /*
12  * setting-motion.h
13  *
14  *  Created on: Oct 9, 2013
15  *      Author: min-hoyun
16  */
17
18 #ifndef SETTING_MOTION_H_
19 #define SETTING_MOTION_H_
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <string.h>
24
25 #include "setting_data_vconf.h"
26 #include "util.h"
27
28
29 #define MOTION_ITEM_COUNT                       2
30 #define MOTION_WAKE_UP_ITEM_COUNT       3
31
32 struct _motion_menu_item {
33         char *name;
34         int state;
35         void (*func)(void *data, Evas_Object *obj, void *event_info);
36 };
37
38 struct _motion_wake_up_guesture_item {
39         char * title;
40         int value;
41 };
42
43 typedef struct Motion_Item_Data
44 {
45         int index;
46         Elm_Object_Item *item;
47 } Motion_Item_Data;
48
49
50 typedef struct _motion_data {
51         int is_enable_smart_relay;
52         int is_enable_wake_up_gesture;
53         int wake_up_gesture_type;
54
55         appdata * temp_ad;
56
57         Evas_Object * g_motion_genlist;
58
59 } Motion_Data;
60
61
62 char * _gl_motion_title_get(void *data, Evas_Object *obj, const char *part);
63 Evas_Object * _gl_motion_check_get(void *data, Evas_Object *obj, const char *part);
64 Evas_Object* _create_motion_list(void* data);
65 void _motion_chk_changed_cb(void *data, Evas_Object *obj, void *event_info);
66 void _motion_gl_smart_relay_cb(void *data, Evas_Object *obj, void *event_info);
67 void _motion_gl_wake_up_cb(void *data, Evas_Object *obj, void *event_info);
68 char * _get_wake_up_gesture_sub_title();
69
70 void _initialize_motion();
71 Eina_Bool _clear_motion_cb(void *data, Elm_Object_Item *it);
72
73 void motion_vconf_changed_cb(keynode_t *key, void * data);
74
75 #endif /* SETTING_MOTION_H_ */