2 * Copyright (c) 2012 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <libxml/parser.h>
20 #ifndef __MainEntryParser__H__
21 #define __MainEntryParser__H__
24 char* input_mode_configure;
26 char* default_configure;
27 char* autopopup_configure;
28 char* magnifier_configure;
29 char* key_label_property;
30 char* modifier_decoration;
31 char* nine_patch_file_list;
35 input_mode_configure = NULL;
37 key_label_property = NULL;
38 modifier_decoration = NULL;
39 default_configure = NULL;
40 autopopup_configure = NULL;
41 magnifier_configure = NULL;
42 nine_patch_file_list = NULL;
48 if (input_mode_configure)
49 xmlFree(input_mode_configure);
52 if (key_label_property)
53 xmlFree(key_label_property);
54 if (modifier_decoration)
55 xmlFree(modifier_decoration);
56 if (default_configure)
57 xmlFree(default_configure);
58 if (autopopup_configure)
59 xmlFree(autopopup_configure);
60 if (magnifier_configure)
61 xmlFree(magnifier_configure);
62 if (nine_patch_file_list)
63 xmlFree(nine_patch_file_list);
65 input_mode_configure = NULL;
67 key_label_property = NULL;
68 modifier_decoration = NULL;
69 default_configure = NULL;
70 autopopup_configure = NULL;
71 magnifier_configure = NULL;
72 nine_patch_file_list = NULL;
76 class MainEntryParserImpl;
77 class MainEntryParser {
78 MainEntryParserImpl *m_impl;
80 /* parsing xml file, path is assigned */
81 int init(const char* path);
82 int reload(const char* path);
84 XMLFiles& get_xml_files();
87 static MainEntryParser *get_instance();