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.
21 #include <Elementary.h>
23 #include <ui-gadget.h>
25 #include <appcore-efl.h>
29 # define PACKAGE "volume"
33 # define RESDIR "/opt/apps/org.tizen.volume/res"
36 #if !defined(LOCALEDIR)
37 # define LOCALEDIR RESDIR"/locale"
41 # define EDJDIR RESDIR"/edje"
44 #define EDJ_FILE EDJDIR"/"PACKAGE".edj"
45 #define GRP_MAIN "main"
46 #define EDJ_THEME EDJDIR"/volume_popup.edj"
47 #define GRP_VOLUME_SLIDER "popup_slider_style"
48 #define GRP_VOLUME_SLIDER_WITH_WARNING "popup_slider_text_style_with_warn_label"
50 #define S_(str) dgettext("sys_string", str)
51 #define T_(str) dgettext(PACKAGE, str)
53 #define ADD_TIMER(x, time, _timer_cb, data) \
54 x = ecore_timer_add(time, _timer_cb, data);\
56 #define DEL_TIMER(x) \
64 Evas_Object *win, *pu, *bt, *sl, *ic, *warn_lb, *warn_ly;
67 Ecore_Timer *stimer; /* slider timer */
68 Ecore_Timer *sutimer, *sdtimer, *lutimer, *ldtimer; /* long press */
69 Ecore_Timer *warntimer; /* warning message timer */
77 /* add more variables here */
78 int sh; /* svi handle */
79 int flag_pressing; /* to set hard key press */
81 int flag_launching; /* to block double launching by double click */
83 int flag_warning; /* set device warning flag */
86 #endif /* __VOLUME_H__ */