Tizen release 1.0
[pkgs/p/phone-lock.git] / phone-lock-main / include / phone-lock.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 __PWLOCK_H__
21 #define __PWLOCK_H__
22
23 #include <Elementary.h>
24 #include <glib.h>
25 #include <aul.h>
26 #include <openssl/sha.h>
27 #include <sysman.h>
28
29 #if !defined(PACKAGE)
30 #define PACKAGE "org.tizen.phone-lock"
31 #endif
32
33 #if !defined(LOCALEDIR)
34 #define LOCALEDIR "/opt/apps/org.tizen.phone-lock/res/locale"
35 #endif
36
37 enum {
38         _ST_FIRST,
39         _ST_PHONE,
40         _ST_EXIT,
41         _ST_MAX,
42 };
43
44 struct appdata {
45         Evas_Object *win;
46         Ecore_Idler *idler;
47         int state;
48         int running_status;
49         int window_status;
50         int win_type;
51 };
52
53 void phone_lock_do_state(struct appdata *ad);
54 void phone_lock_set_win_prop(struct appdata *ad, int type);
55
56 #endif                          /* __PWLOCK_H__ */