Initialize Tizen 2.3
[apps/home/b2-clocksetting.git] / include / setting-motion.h
1 /*
2  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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 {
51         int index;
52         Elm_Object_Item *item;
53 } Motion_Item_Data;
54
55
56 typedef struct _motion_data {
57         int is_enable_smart_relay;
58         int is_enable_wake_up_gesture;
59         int wake_up_gesture_type;
60
61         appdata * temp_ad;
62
63         Evas_Object * g_motion_genlist;
64
65 } Motion_Data;
66
67
68 char * _gl_motion_title_get(void *data, Evas_Object *obj, const char *part);
69 Evas_Object * _gl_motion_check_get(void *data, Evas_Object *obj, const char *part);
70 Evas_Object* _create_motion_list(void* data);
71 void _motion_chk_changed_cb(void *data, Evas_Object *obj, void *event_info);
72 void _motion_gl_smart_relay_cb(void *data, Evas_Object *obj, void *event_info);
73 void _motion_gl_wake_up_cb(void *data, Evas_Object *obj, void *event_info);
74 char * _get_wake_up_gesture_sub_title();
75
76 void _initialize_motion();
77 Eina_Bool _clear_motion_cb(void *data, Elm_Object_Item *it);
78
79 void motion_vconf_changed_cb(keynode_t *key, void * data);
80
81 #endif /* SETTING_MOTION_H_ */