[mobile] Remove password lockscreen
[apps/native/starter.git] / include / mobile / lock_mgr.h
1 /*
2  * Copyright (c) 2000 - 2015 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 __LOCK_DAEMON_H__
18 #define __LOCK_DAEMON_H__
19
20 #include <Elementary.h>
21 #include <E_DBus.h>
22 #include <alarm.h>
23
24 #include "window_mgr.h"
25
26 #define _EDJ(x) elm_layout_edje_get(x)
27
28 #ifdef TIZEN_BUILD_EMULATOR
29 #define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Default.jpg"
30 #else
31 #define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Lock_default.png"
32 #endif
33
34
35
36 typedef enum {
37         LOCK_SOUND_LOCK,
38         LOCK_SOUND_UNLOCK,
39         LOCK_SOUND_BTN_KEY,
40         LOCK_SOUND_TAP,
41         LOCK_SOUND_MAX,
42 } lock_sound_type_e;
43
44 typedef enum {
45         LCD_STATE_ON,
46         LCD_STATE_OFF,
47         LCD_STATE_MAX,
48 } lock_lcd_state_e;
49
50 int lock_mgr_lcd_state_get(void);
51 int lock_mgr_get_lock_pid(void);
52 void lock_mgr_sound_play(lock_sound_type_e type);
53
54 void lock_mgr_idle_lock_state_set(int lock_state);
55 Eina_Bool lock_mgr_lockscreen_launch(void);
56 void lock_mgr_unlock(void);
57
58 int lock_mgr_daemon_start(void);
59 void lock_mgr_daemon_end(void);
60
61 #endif                          /* __LOCK_DAEMON_H__ */