3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef _SETTING_PLUGIN_H_
19 #define _SETTING_PLUGIN_H_
21 #include <Elementary.h>
24 #include <setting-common-general-func.h>
25 #include <setting-common-draw-widget.h>
27 #include <libxml/xmlmemory.h>
28 #include <libxml/parser.h>
37 #define PLUGIN_INIT( context ) \
39 setting_drawer_list_init();\
40 setting_dbus_handler_init( context );\
45 setting_dbus_handler_fini();\
46 setting_drawer_list_fini();\
55 int setting_dbus_handler_init(void* data);
56 int setting_dbus_handler_fini(void);
57 void setting_drawer_list_init();
58 void setting_drawer_list_fini();
60 typedef void* (*drawer_fp)(void *data, xmlNode *xmlObj);
65 const char* type; // ui type
76 Evas_Object *scroller; // genlist
79 typedef struct PluginNode PluginNode;
86 Evas_Object* navi_bar;
87 Evas_Object* win_main;
93 Evas_Object* win_main_layout;
97 PluginNode* setting_plugin_create(Evas_Object* navi, Evas_Object* win);
98 int setting_plugin_load(PluginNode* context, const char *cfg_file);
99 void setting_plugin_destroy(PluginNode* node);
101 #endif // _SETTING_PLUGIN_H_