2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 * http://floralicense.org/license/
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.
20 * Created on: Oct 9, 2013
24 #ifndef SETTING_MOTION_H_
25 #define SETTING_MOTION_H_
27 #include <Elementary.h>
31 #include "setting_data_vconf.h"
35 #define MOTION_ITEM_COUNT 2
36 #define MOTION_WAKE_UP_ITEM_COUNT 3
38 struct _motion_menu_item {
41 void (*func)(void *data, Evas_Object *obj, void *event_info);
44 struct _motion_wake_up_guesture_item {
49 typedef struct Motion_Item_Data {
51 Elm_Object_Item *item;
55 typedef struct _motion_data {
56 int is_enable_smart_relay;
57 int is_enable_wake_up_gesture;
58 int wake_up_gesture_type;
62 Evas_Object *g_motion_genlist;
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();
75 void _initialize_motion();
76 Eina_Bool _clear_motion_cb(void *data, Elm_Object_Item *it);
78 void motion_vconf_changed_cb(keynode_t *key, void *data);
80 #endif /* SETTING_MOTION_H_ */