2 * Copyright (c) 2009-2014 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.
17 #ifndef __LOCKSCREEN_H__
18 #define __LOCKSCREEN_H__
20 #include <Elementary.h>
24 #define EDJE_DIR "/usr/apps/org.tizen.lockscreen/res/edje/"
25 #define IMAGE_DIR "/usr/apps/org.tizen.lockscreen/res/images/"
27 #define LOCK_EDJE_FILE EDJE_DIR"lockscreen.edj"
29 #define LOCK_DEFAULT_BG_PATH "/usr/apps/org.tizen.lockscreen/res/images/Default.jpg"
31 #define _EDJ(x) elm_layout_edje_get(x)
32 #define _X(x) ELM_SCALE_SIZE(x)
34 #define _NOT_LOCALIZED(str) (str)
36 #define BUF_SIZE_64 64
37 #define BUF_SIZE_512 512
38 #define BUF_SIZE_1024 1024
44 LOCK_TYPE_FINGERPRINT,
45 LOCK_TYPE_FACE_AND_VOICE,
46 LOCK_TYPE_SIMPLE_PASSWORD,
56 LOCK_ERROR_INVALID_PARAMETER = -2,
57 LOCK_ERROR_NO_DATA = -3,
61 void lockscreen_exit(void);
62 int lockscreen_setting_lock_type_get(void);
63 Ecore_Timer *lockscreen_lcd_off_timer_get(void);
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);
71 void lockscreen_feedback_tap_play(void);