lockscreen bg problem quickfix
[apps/core/preloaded/lockscreen.git] / include / lockscreen.h
1 /*
2  * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __LOCKSCREEN_H__
18 #define __LOCKSCREEN_H__
19
20 #include <Elementary.h>
21 #include <Evas.h>
22 #include <stdbool.h>
23
24 #define EDJE_DIR "/usr/apps/org.tizen.lockscreen/res/edje/"
25 #define IMAGE_DIR "/usr/apps/org.tizen.lockscreen/res/images/"
26
27 #define LOCK_EDJE_FILE EDJE_DIR"lockscreen.edj"
28
29 #define LOCK_DEFAULT_BG_PATH "/usr/apps/org.tizen.lockscreen/res/images/Default.jpg"
30
31 #define _EDJ(x) elm_layout_edje_get(x)
32 #define _X(x) ELM_SCALE_SIZE(x)
33
34 #define _NOT_LOCALIZED(str) (str)
35
36 #define BUF_SIZE_64 64
37 #define BUF_SIZE_512 512
38 #define BUF_SIZE_1024 1024
39
40 typedef enum {
41         LOCK_TYPE_NONE = 0,
42         LOCK_TYPE_SWIPE,
43         LOCK_TYPE_MOTION,
44         LOCK_TYPE_FINGERPRINT,
45         LOCK_TYPE_FACE_AND_VOICE,
46         LOCK_TYPE_SIMPLE_PASSWORD,
47         LOCK_TYPE_PASSWORD,
48         LOCK_TYPE_AUTO_LOCK,
49         LOCK_TYPE_OTHER,
50         LOCK_TYPE_MAX
51 } lock_type_e;
52
53 typedef enum {
54         LOCK_ERROR_OK = 0,
55         LOCK_ERROR_FAIL = -1,
56         LOCK_ERROR_INVALID_PARAMETER = -2,
57         LOCK_ERROR_NO_DATA = -3,
58         LOCK_ERROR_MAX,
59 } lock_error_e;
60
61 void lockscreen_exit(void);
62 int lockscreen_setting_lock_type_get(void);
63 Ecore_Timer *lockscreen_lcd_off_timer_get(void);
64
65 void lockscreen_lcd_off_timer_set(void);
66 void lockscreen_lcd_off_timer_reset(void);
67 void lockscreen_lcd_off_timer_unset(void);
68 void lockscreen_lcd_off_count_raise(void);
69 void lockscreen_lcd_off_count_reset(void);
70
71 void lockscreen_feedback_tap_play(void);
72
73
74 #endif