Clean-up application service
[framework/web/wrt-installer.git] / src / configuration_parser / widget_parser.h
index d008a59..883a5fc 100644 (file)
@@ -13,7 +13,7 @@
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
- /**
+/**
  * This file  have been implemented in compliance with  W3C WARP SPEC.
  * but there are some patent issue between  W3C WARP SPEC and APPLE.
  * so if you want to use this file, refer to the README file in root directory
 
 #include "element_parser.h"
 #include <list>
+#include <map>
 #include <dpl/foreach.h>
 #include <dpl/wrt-dao-ro/config_parser_data.h>
 
 namespace ConfigurationNamespace {
 static const DPL::String W3CWidgetNamespaceName =
     L"http://www.w3.org/ns/widgets";
-static const DPL::String JilWidgetNamespaceName =
-    L"http://www.jil.org/ns/widgets1.2";
 static const DPL::String WacWidgetNamespaceNameForLinkElement =
     L"http://wacapps.net/ns/widgets#";
 static const DPL::String WacWidgetNamespaceName =
@@ -71,19 +70,23 @@ class WidgetParser : public ElementParser
     ElementParserPtr OnLicenseElement();
     ElementParserPtr OnIconElement();
     ElementParserPtr OnContentElement();
-    ElementParserPtr OnFeatureElement();
     ElementParserPtr OnPreferenceElement();
     ElementParserPtr OnAccessElement();
-    ElementParserPtr OnFlashElement();
     ElementParserPtr OnLinkElement();
-    ElementParserPtr OnMinVersionElement();
-    ElementParserPtr OnBackElement();
-    ElementParserPtr OnPkgnameElement();
     ElementParserPtr OnSettingElement();
-    ElementParserPtr OnServiceElement();
+    ElementParserPtr OnApplicationElement();
+    ElementParserPtr OnSplashElement();
+    ElementParserPtr OnBackgroundElement();
+    ElementParserPtr OnPrivilegeElement();
+    ElementParserPtr OnAppControlElement();
+    ElementParserPtr OnCategoryElement();
+    ElementParserPtr OnAppWidgetElement();
+    ElementParserPtr OnCspElement();
+    ElementParserPtr OnCspReportOnlyElement();
+    ElementParserPtr OnAccountElement();
 
     virtual ActionFunc GetElementParser(const DPL::String& ns,
-            const DPL::String& name);
+                                        const DPL::String& name);
 
     virtual void Accept(const Element&);
     virtual void Accept(const Text&);
@@ -100,9 +103,10 @@ class WidgetParser : public ElementParser
     Unicode::Direction m_textDirection;
     FuncMap m_map;
     DPL::Optional<DPL::String> m_version;
+    DPL::Optional<DPL::String> m_minVersion;
     std::list<DPL::String> m_windowModes;
     DPL::Optional<DPL::String> m_defaultlocale;
-    std::list<DPL::String> m_nameSpaces;
+    std::map<DPL::String, DPL::String> m_nameSpaces;
 };
 
 struct IconParser;