4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
6 * Contact: MyoungJune Park <mj2004.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef __SETTING_PERSONALPAGE_H__
22 #define __SETTING_PERSONALPAGE_H__
26 #include <Elementary.h>
28 #include <glib-object.h>
30 #include <setting-common-draw-widget.h>
31 #include <setting-common-view.h>
32 #include <setting-debug.h>
35 #define SUPPORT_MASTER_CONTROL 1
38 * Setting Personalpage UG context
39 * all UG function has void* as an agument. this is casted back to SettingPersonalpageUG
40 * and the functions access app context.
43 SETTING_PERSONAL_PW_CALLER_PERSONAL = 0,
44 SETTING_PERSONAL_PW_CALLER_UNLOCK_METHOD,
45 SETTING_PERSONAL_PW_CALLER_UNLOCK_PIN,
46 SETTING_PERSONAL_PW_CALLER_UNLOCK_PASSWORD,
47 SETTING_PERSONAL_PW_CALLER_ON_OFF,
48 SETTING_PERSONAL_PW_CALLER_MAX,
53 PERSONAL_VIEW_MAIN = 0,
54 PERSONAL_VIEW_UNLOCK_METHOD,
58 typedef struct _SettingPersonalpageUG {
60 ui_gadget_h ug_passwd;
61 ui_gadget_h ug_lockscreen;
63 /* add more variables here (move your appdata to here) */
65 Evas_Object *win_main_layout;
68 setting_view *view_to_load;
69 ui_gadget_h ug_loaded;
72 Evas_Object *navi_bar;
74 Evas_Object *rd_option;
75 Evas_Object *init_popup; /* if unlock method is not assigned, show init popup */
76 Evas_Object *off_popup; /* if turn off in exteral like notification panel and setting main, show off popup */
77 Evas_Object *off_popup_check; /* off popup has one checkbox */
78 Evas_Object *unmount_popup;
80 #if SUPPORT_MASTER_CONTROL
81 Evas_Object *master_control;
84 Setting_GenGroupItem_Data *data_personal_mode;
85 Setting_GenGroupItem_Data *data_unlock_method;
86 Setting_GenGroupItem_Data *data_set_screenlock_btn;
89 Setting_GenGroupItem_Data *data_unlock_pin;
90 Setting_GenGroupItem_Data *data_unlock_password;
92 pw_view_caller_t pw_ug_caller;
97 char *change_unlock_method_data;
98 } SettingPersonalpageUG;
100 extern setting_view setting_view_personalpage_main;
101 extern setting_view setting_view_personalpage_unlock;
103 gboolean setting_personalpage_create_password_sg(void *data, int caller);
104 void setting_personalpage_unmount(void *data);
105 char *get_unlock_method_str(void *priv);
107 void create_notification(void *data);