added setting-plugin-efl UG
[apps/home/settings.git] / setting-plugin / include / setting-plugin.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 #ifndef __SETTING_PLUGIN_H__
22 #define __SETTING_PLUGIN_H__
23
24 #include <stdio.h>
25 #include <string.h>
26
27 #include <Elementary.h>
28 #include <glib-object.h>
29
30 #include <setting-common-draw-widget.h>
31 #include <setting-common-view.h>
32 #include <setting-common-plugin.h>
33
34 #include <device.h>
35
36 typedef struct _SettingPluginUG SettingPluginUG;
37
38 /**
39  * Setting Plugin UG context
40  * all UG function has void* as an agument. this is casted back to SettingPluginUG
41  * and the functions access app context.
42  */
43 struct _SettingPluginUG {
44         ui_gadget_h ug;
45
46         /* add more variables here (move your appdata to here) */
47         Evas *evas;
48         Evas_Object *win_main_layout;
49         Evas_Object *win_get;
50
51         ui_gadget_h ug_loading;
52
53         Evas_Object *ly_main;
54
55         Evas_Object *navi_bar;  /*  for navigation effect */
56         //Evas_Object *view_layout;
57         setting_view *view_to_load;
58
59
60         // itc
61         Elm_Genlist_Item_Class itc_seperator;
62         Elm_Genlist_Item_Class itc_layout;
63
64         PluginNode* plugin_node;
65         // pkgname
66         char* pkgname;
67 };
68
69 extern setting_view setting_view_plugin_main;
70
71 void setting_plugin_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
72
73 #endif                          /* __SETTING_PLUGIN_H__ */