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.
20 #ifndef __APP_COMMON_H__
21 #define __APP_COMMON_H__
23 #include <Elementary.h>
26 #include <X11/Xatom.h>
27 #include <X11/Xutil.h>
31 #define LOG_TAG "app-selector"
33 #define _E(fmt, arg...) LOGE("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
34 #define _D(fmt, arg...) LOGD("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
38 # define PACKAGE "app-selector"
41 #if !defined(LOCALEDIR)
42 # define LOCALEDIR "/usr/share/locale"
45 #define ICON_PATH PREFIX"/share/icon"
47 #define NAME_BUF_LEN (128)
48 #define _EDJ(x) elm_layout_edje_get(x)
50 #define _(msgid) gettext(msgid)
51 #define N_(msgid) gettext_noop(msgid)
57 Ecore_Event_Handler *key_up;
58 Ecore_Event_Handler *rotate;
61 Evas_Object *def_set_popup;
64 Evas_Object *app_genlist;
78 /* add more variables here */
81 struct _select_app_info {
90 #endif /* __APP_COMMON_H__ */