apply FSL license
[pkgs/p/phone-lock.git] / phone-lock-main / include / phone-lock.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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
18 #ifndef __PWLOCK_H__
19 #define __PWLOCK_H__
20
21 #include <Elementary.h>
22 #include <glib.h>
23 #include <aul.h>
24 #include <openssl/sha.h>
25 #include <sysman.h>
26
27 #if !defined(PACKAGE)
28 #define PACKAGE "org.tizen.phone-lock"
29 #endif
30
31 #if !defined(LOCALEDIR)
32 #define LOCALEDIR "/opt/apps/org.tizen.phone-lock/res/locale"
33 #endif
34
35 enum {
36         _ST_FIRST,
37         _ST_PHONE,
38         _ST_EXIT,
39         _ST_MAX,
40 };
41
42 struct appdata {
43         Evas_Object *win;
44         Ecore_Idler *idler;
45         int state;
46         int running_status;
47         int window_status;
48         int win_type;
49 };
50
51 void phone_lock_do_state(struct appdata *ad);
52 void phone_lock_set_win_prop(struct appdata *ad, int type);
53
54 #endif                          /* __PWLOCK_H__ */