Adapt (part 2)
[platform/core/security/ima-evm-reference-utils.git] / include / im-uigadget.h
1 /**
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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  * @file        im-uigadget.h
18  * @author      Janusz Kozerski (j.kozerski@samsung.com)
19  * @version     1.0
20  * @brief
21  */
22
23 #ifndef __IM_UIGADGET_H__
24 #define __IM_UIGADGET_H__
25
26 #include <app.h>
27 //#include <dlog.h>
28 //#include <efl_assist.h>
29 #include <Elementary.h>
30 #include <glib.h>
31
32 // FIXME: for test purpose only, can be removed later.
33 //        dlog.h should be included when these macros will be removed
34 #define LOGD(...) printf(__VA_ARGS__); printf("\n")
35 #define LOGE(...) printf(__VA_ARGS__); printf("\n")
36
37 //#ifdef LOG_TAG
38 //    #undef LOG_TAG
39 //#endif
40 //
41 //#ifndef LOG_TAG
42 //    #define LOG_TAG "IM_UI"
43 //#endif
44
45 #ifndef PACKAGE
46 #define PACKAGE "im-ui"
47 #endif
48
49 #ifndef LOCALEDIR
50 #define LOCALEDIR "/res/locale"
51 #endif
52
53 struct ug_data {
54     Evas_Object         *win_main;
55     Evas_Object         *bg;
56     Evas_Object         *layout_main;
57     Evas_Object         *navi_bar;
58     Evas_Object         *popup;
59     char                *popup_content;
60     Elm_Theme           *theme;
61     int                 (*file_action)(struct ug_data *ad, const char* const file_path);
62     const char          *fileselector_default_path;
63 };
64
65 #endif /* __IM_UIGADGET_H__ */