Tizen release 1.0
[pkgs/p/phone-lock.git] / phone-lock-common / include / phone-lock-view.h
1 /*
2  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * This file is part of <phone-lock>
5  * Written by <Seungtaek Chung> <seungtaek.chung@samsung.com>, <Mi-Ju Lee> <miju52.lee@samsung.com>, <Xi Zhichan> <zhichan.xi@samsung.com>
6  *
7  * PROPRIETARY/CONFIDENTIAL
8  *
9  * This software is the confidential and proprietary information of SAMSUNG ELECTRONICS ("Confidential Information").
10  * You shall not disclose such Confidential Information and shall use it only in accordance
11  * with the terms of the license agreement you entered into with SAMSUNG ELECTRONICS.
12  * SAMSUNG make no representations or warranties about the suitability of the software,
13  * either express or implied, including but not limited to the implied warranties of merchantability,
14  * fitness for a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as a result of using,
16  * modifying or distributing this software or its derivatives.
17  *
18  */
19
20 #ifndef __PHONE_LOCK_VIEW_H__
21 #define __PHONE_LOCK_VIEW_H__
22
23 #include <Elementary.h>
24
25 typedef struct _phone_lock_view_data phone_lock_view_data_t;
26
27 typedef void (*phone_lock_view_cbfunc) (int, const char *, void *);
28
29 typedef enum _phone_lock_view_type {
30
31         PHONE_LOCK_VIEW_TYPE_PHONE_LOCK = 0,
32         PHONE_LOCK_VIEW_TYPE_PIN_LOCK,
33         PHONE_LOCK_VIEW_TYPE_PHONE_MAX,
34 } phone_lock_view_type_t;
35
36 typedef enum _phone_lock_window_type {
37         PHONE_LOCK_WINDOW_TYPE_NORMAL = 0,
38         PHONE_LOCK_WINDOW_TYPE_ALPHA,
39 } phone_lock_window_type_t;
40
41 typedef enum _phone_lock_view_password_type {
42         PHONE_LOCK_VIEW_COMPLEX_PHONE_LOCK = 0,
43         PHONE_LOCK_VIEW_SIMPLE_PHONE_LOCK
44 } phone_lock_view_password_type_t;
45
46 typedef enum _phone_lock_view_info_align_type {
47         PHONE_LOCK_VIEW_ALIGN_LEFT = 0,
48         PHONE_LOCK_VIEW_ALIGN_CENTER,
49         PHONE_LOCK_VIEW_ALIGN_RIGHT
50 } phone_lock_view_info_align_type_t;
51
52 phone_lock_view_data_t *phone_lock_view_create(phone_lock_view_type_t view_type,
53                                                phone_lock_window_type_t
54                                                window_type,
55                                                Evas_Object * win_main,
56                                                phone_lock_view_cbfunc func,
57                                                void *user_data);
58
59 void phone_lock_view_destroy(phone_lock_view_data_t * phone_lock_view_data);
60
61 Evas_Object *phone_lock_view_get_layoutmain(phone_lock_view_data_t *
62                                             phone_lock_view_data);
63
64 phone_lock_view_type_t
65 phone_lock_view_get_type(phone_lock_view_data_t * phone_lock_view_data);
66
67 phone_lock_window_type_t
68 phone_lock_window_get_type(phone_lock_view_data_t * phone_lock_view_data);
69
70 void
71 phone_lock_view_show_msg(phone_lock_view_data_t * phone_lock_view_data,
72                          const char *str);
73
74 void phone_lock_view_check_attempts_left(void *data);
75 void phone_lock_view_reset_callug_launch_flag(void *data);
76 void phone_lock_view_set_right_password_flag(void *data);
77 void phone_lock_view_reset_attempts_num(void *data);
78 void phone_lock_view_hide_imf_context_input_panel(void *data);
79 void phone_lock_view_show_imf_context_input_panel(void *data);
80
81 #endif                          /* __PHONE_LOCK_VIEW_H__ */