3d9c7f63b3aaf52d6562f0f8a83b7783bd0b0fbe
[apps/core/preloaded/pwlock.git] / include / ui.h
1 /*
2  *  pwlock
3  *
4  * Copyright 2012  Samsung Electronics Co., Ltd
5  *
6  * Licensed under the Flora License, Version 1.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://floralicense.org/license/
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __PWLOCK_UI_H__
21 #define __PWLOCK_UI_H__
22
23 #include "pwlock.h"
24
25 #define PWLOCK_PASSWORD_MIN_LENGTH      4
26 #define PWLOCK_PIN_PASSWORD_MAX_LENGTH  8
27 #define PWLOCK_PHONE_PASSWORD_MAX_LENGTH        16
28
29 enum {
30         _UI_PIN = 0,
31         _UI_PUK,
32         _UI_PUK_PIN,
33         _UI_PUK_CNF,
34         _UI_BLOCK,
35         _UI_SIM_LOCK,
36         _UI_NETWORK_LOCK_NCK,
37         _UI_NETWORK_LOCK_NSCK,
38         _UI_NETWORK_LOCK_SPCK,
39         _UI_NETWORK_LOCK_CCK,
40         _UI_LANG, //skipable view starts from here
41         _UI_NOSIM,
42         _UI_TIME,
43         _UI_KEYBOARD,
44         _UI_FACEBOOK,
45         _UI_DIALER,
46         _UI_GREETING,
47         _UI_CONNECTION,
48         _UI_DATA_MIGRATION,
49         _UI_TUTORIAL,
50         _UI_FINISH,
51         /*_UI_POPUP,*/
52 };
53
54 int show_splash_screen(struct appdata *ad);
55 int show_greeting(struct appdata *ad);
56 int show_connection(struct appdata *ad);
57 int show_tutorial(struct appdata *ad);
58 void show_pin(struct appdata *ad);
59 void show_puk(struct appdata *ad);
60 void show_puk_pin(struct appdata *ad);
61 void show_block(struct appdata *ad);
62 void show_sim_lock(struct appdata *ad);
63 int show_lang(struct appdata *ad);
64 int show_nosim(struct appdata *ad);
65 int show_time(struct appdata *ad);
66 int show_keyboard_setting(struct appdata *ad);
67 int show_finish(struct appdata *ad);
68 int show_dialer(struct appdata *ad);
69
70 void pwlock_destroy(struct appdata *ad);
71 void load_main(struct appdata *ad, int ui_type);
72
73 void show_msg(struct appdata *ad, int strid);
74 void clear_entry(struct appdata *ad);
75 void _show_popup(void *data, char *msg_str);
76 void show_popup_accesibility(struct appdata *ad);
77 void show_popup(struct appdata *ad, const char *mesg, Eina_Bool mode);
78 void show_popup_ask_exit(struct appdata *ad, const char *mesg);
79 void show_waiting_popup(struct appdata *ad, const char *msg_str);
80 void remove_waiting_popup(struct appdata *ad);
81 Eina_Bool show_puk_do(void *data);
82 void update_pw_entry(struct appdata *ad, char *input_data);
83
84 Evas_Object *pwlock_add_layout_from_edj(Evas_Object *parent, const char *file,
85                 const char *group);
86 #endif                          /* __PWLOCK_UI_H__ */