Add attributes for internal use regarding dynamic box(app widget)
authorYunchan Cho <yunchan.cho@samsung.com>
Sat, 25 May 2013 08:18:35 +0000 (17:18 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Sat, 25 May 2013 09:02:42 +0000 (18:02 +0900)
[Issue#] N/A
[Problem] Some commercialization features regarding dynamic box doesn't work
[Cause] Internally used attributes was removed by other patch
        <tizen:pd fastOpen>, <tizen:app-widget type>
[Solution] Add these attributes again.
           these attributes aren't announced publicly, so that wrt core spec doesn't include them.

Change-Id: I0a3dbe450dc5eb7aa4e5fee2952764d51fcd24c9

src/configuration_parser/widget_parser.cpp

index 9691f0f..3ad631f 100644 (file)
@@ -1761,6 +1761,8 @@ class AppWidgetParser : public ElementParser
                         m_width = attribute.value;
                     } else if (attribute.name == L"height") {
                         m_height = attribute.value;
+                    } else if (attribute.name == L"fast-open") {
+                        m_fastOpen= attribute.value;
                     }
                 }
             }
@@ -1818,6 +1820,7 @@ class AppWidgetParser : public ElementParser
                 m_data.m_pdSrc = m_src;
                 m_data.m_pdWidth = m_width;
                 m_data.m_pdHeight = m_height;
+                m_data.m_pdFastOpen = m_fastOpen;
             }
 
             explicit PdParser(
@@ -1848,6 +1851,7 @@ class AppWidgetParser : public ElementParser
             DPL::String m_src;
             DPL::String m_width;
             DPL::String m_height;
+            DPL::String m_fastOpen;
 
             bool m_properNamespace;
             ConfigParserData::LiveboxInfo::BoxContentInfo& m_data;
@@ -1983,6 +1987,8 @@ class AppWidgetParser : public ElementParser
                 m_autoLaunch = attribute.value;
             } else if (attribute.name == L"update-period") {
                 m_updatePeriod = attribute.value;
+            } else if (attribute.name == L"type") {
+                m_type = attribute.value;
             }
         }
     }
@@ -2076,6 +2082,7 @@ class AppWidgetParser : public ElementParser
         m_livebox.m_primary = m_primary;
         m_livebox.m_autoLaunch = m_autoLaunch;
         m_livebox.m_updatePeriod = m_updatePeriod;
+        m_livebox.m_type = m_type;
 
         m_data.m_livebox.push_back(m_livebox);
     }
@@ -2114,6 +2121,7 @@ class AppWidgetParser : public ElementParser
     DPL::String m_primary;
     DPL::String m_autoLaunch;
     DPL::String m_updatePeriod;
+    DPL::String m_type;
     bool m_properNamespace;
     bool m_boxContentFound;