Add Account parser.
authorSoyoung Kim <sy037.kim@samsung.com>
Tue, 19 Mar 2013 05:26:02 +0000 (14:26 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 20 Mar 2013 06:21:38 +0000 (15:21 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] add account parser.
[SCMRequest] this package should release with wrt-installer.

modules/widget_dao/include/dpl/wrt-dao-ro/config_parser_data.h

index 27f9855..77a633e 100644 (file)
@@ -260,6 +260,29 @@ class ConfigParserData
         bool operator<=(const LiveboxInfo&) const;
     };
     typedef std::list<DPL::Optional<LiveboxInfo> > LiveboxList;
+
+    enum IconSectionType
+    {
+        DefaultIcon =0,
+        SmallIcon,
+    };
+
+    typedef std::set<std::pair<IconSectionType, DPL::String>> IconSet;
+    typedef std::list<DPL::String> CapabilityList;
+    typedef std::set<std::pair<DPL::String, DPL::String>> DisplayNameSet;
+
+    struct AccountProvider
+    {
+        AccountProvider() :
+            m_multiAccountSupport(false)
+        { }
+
+        bool m_multiAccountSupport;
+        IconSet m_iconSet;
+        DisplayNameSet m_displayNameSet;
+        CapabilityList m_capabilityList;
+    };
+
     LiveboxList m_livebox;
 
     typedef std::list<DPL::OptionalString> DependsPkgList;
@@ -327,6 +350,8 @@ class ConfigParserData
     DPL::OptionalString backgroundPage;
     // For category
     CategoryList categoryList;
+    // For Account
+    AccountProvider accountProvider;
 
     ConfigParserData() :
         flashNeeded(false),