2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
52 Elm_Object_Item *item;
56 typedef struct _motion_data {
57 int is_enable_smart_relay;
58 int is_enable_wake_up_gesture;
59 int wake_up_gesture_type;
63 Evas_Object * g_motion_genlist;
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();
76 void _initialize_motion();
77 Eina_Bool _clear_motion_cb(void *data, Elm_Object_Item *it);
79 void motion_vconf_changed_cb(keynode_t *key, void * data);
81 #endif /* SETTING_MOTION_H_ */