Remove SMACK rule file(.rule) according three domain model
[apps/core/preloaded/app-selector.git] / app-selector.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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
19 #ifndef __APP_COMMON_H__
20 #define __APP_COMMON_H__
21
22 #include <Elementary.h>
23 #include <bundle.h>
24 #include <dlog.h>
25 #include <X11/Xatom.h>
26 #include <X11/Xutil.h>
27
28
29 #undef LOG_TAG
30 #define LOG_TAG "APP-SELECTOR"
31
32 #define _E(fmt, arg...) LOGE("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
33 #define _D(fmt, arg...) LOGD("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
34
35
36 #if !defined(PACKAGE)
37 #  define PACKAGE "app-selector"
38 #endif
39
40 #if !defined(LOCALEDIR)
41 #  define LOCALEDIR "/usr/share/locale"
42 #endif
43
44 #define ICON_PATH PREFIX"/share/icon"
45
46 #define NAME_BUF_LEN (128)
47 #define _EDJ(x) elm_layout_edje_get(x)
48
49 #define _(msgid) gettext(msgid)
50 #define N_(msgid) gettext_noop(msgid)
51
52 struct appdata {
53         Evas_Object *win;
54
55         Ecore_Event_Handler *key_up;
56         Ecore_Event_Handler *rotate;
57
58         Evas_Object *popup;
59         Evas_Object *default_popup;
60         Evas_Object *layout;
61
62         Eina_List *app_list;
63         Evas_Object *app_genlist;
64
65         Display *dpy;
66         Ecore_X_Window xwin;
67
68         bundle *kb;
69         int parent_pid;
70
71         char *mime_type;
72         char *window_id;
73         char *control_op;
74         char *control_mime;
75         char *control_uri;
76
77         /* add more variables here */
78 };
79
80 struct _select_app_info {
81         char *pkg_name;
82         char *app_name;
83         char *app_path;
84         char *app_icon_path;
85         struct appdata *ad;
86         Elm_Object_Item *it;
87 };
88
89 #endif                          /* __APP_COMMON_H__ */