summaryrefslogtreecommitdiff
path: root/include/mobile/lock_mgr.h
blob: 6db7a69cbe9e69bb5bf85ae32763854716b6c897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __LOCK_DAEMON_H__
#define __LOCK_DAEMON_H__

#include <Elementary.h>
#include <E_DBus.h>
#include <alarm.h>

#include "window_mgr.h"

#define _EDJ(x) elm_layout_edje_get(x)

#ifdef TIZEN_BUILD_EMULATOR
#define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Default.jpg"
#else
#define LOCK_MGR_DEFAULT_BG_PATH "/opt/share/settings/Wallpapers/Lock_default.png"
#endif



typedef enum {
	LOCK_SOUND_LOCK,
	LOCK_SOUND_UNLOCK,
	LOCK_SOUND_BTN_KEY,
	LOCK_SOUND_TAP,
	LOCK_SOUND_MAX,
} lock_sound_type_e;

typedef enum {
	LCD_STATE_ON,
	LCD_STATE_OFF,
	LCD_STATE_MAX,
} lock_lcd_state_e;

int lock_mgr_lcd_state_get(void);
int lock_mgr_get_lock_pid(void);
void lock_mgr_sound_play(lock_sound_type_e type);

void lock_mgr_idle_lock_state_set(int lock_state);
Eina_Bool lock_mgr_lockscreen_launch(void);
void lock_mgr_unlock(void);


int lock_mgr_daemon_start(void);
void lock_mgr_daemon_end(void);

#endif				/* __LOCK_DAEMON_H__ */