2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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 __DRAGLOCK_H__
18 #define __DRAGLOCK_H__
20 #include <Elementary.h>
26 #define LOG_TAG "DRAGLOCK"
30 #define DRAGLOCK_ERR(fmt, arg...) LOGE("["LOG_TAG"%s:%d:E] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
31 #define DRAGLOCK_DBG(fmt, arg...) LOGD("["LOG_TAG"%s:%d:D] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
32 #define DRAGLOCK_WARN(fmt, arg...) LOGW("["LOG_TAG"%s:%d:D] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
35 #define PACKAGE "draglock"
39 #define PKGNAME "org.tizen."PACKAGE
43 #define EDJEDIR "/opt/apps/"PKGNAME"/res/edje"
46 #define EDJEFILE EDJEDIR"/"PACKAGE".edj"
48 #define _EDJ(x) elm_layout_edje_get(x)
50 #define DEFAULT_WIN_WIDTH 720
51 #define DEFAULT_SLIDE_HEIGHT 114
52 #define DEFAULT_SLIDE_Y 1116
53 #define SLIDE_RATIO_H 0.089
54 #define SLIDE_RATIO_Y 0.872
64 Evas_Object *ui_layout;
65 Evas_Object *time_layout;
66 Evas_Object *slide_layout;
68 Ecore_Timer *clock_timer;
70 int slide_status; // 0 : invalid 1 : valid
73 Evas_Coord_Rectangle slide_rel1;
74 Evas_Coord_Rectangle slide_rel2;
76 power_state_e power_state;
80 #endif /* __DRAGLOCK_H__ */