Update AppWidegts tag master accepted/tizen/20130520.103120 submit/tizen/20130517.020150
authorDuyoung Jang <duyoung.jang@samsung.com>
Fri, 15 Mar 2013 02:25:07 +0000 (11:25 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Fri, 15 Mar 2013 02:25:07 +0000 (11:25 +0900)
Change-Id: I38586f347eba2d2860f1ce07e8789518b3538126
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/XmlHandler/ManifestHandler.cpp
src/XmlHandler/Parser/ManifestLiveboxesParser.cpp

index 3f79eb0..1e5b2db 100755 (executable)
@@ -23,7 +23,7 @@
 
 #include "InstallerUtil.h"
 
-#define OSP_INSTALLER_VERSION "version=[20130314.1]"
+#define OSP_INSTALLER_VERSION "version=[20130315.1]"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index ccfdf25..00c18af 100755 (executable)
@@ -147,7 +147,7 @@ ManifestHandler::OnStartElement(const char *pName)
        {
                status = OnContentStartElement();
        }
-       else if (strcasecmp(pName, "Liveboxes") == 0)
+       else if ((strcasecmp(pName, "Liveboxes") == 0) || strcasecmp(pName, "AppWidgets") == 0)
        {
                status = OnLiveboxesStartElement(pName);
        }
@@ -185,7 +185,7 @@ ManifestHandler::OnEndElement(const char *pName)
                TryReturn(__pParser, false, "__pParser is null");
                __pParser->OnEndElement(pName);
 
-               if (strcasecmp(pName, "Liveboxes") == 0)
+               if ((strcasecmp(pName, "Liveboxes") == 0) || strcasecmp(pName, "AppWidgets") == 0)
                {
                        status = OnLiveboxesEndElement();
                }
index d18ecff..9a1a930 100755 (executable)
@@ -53,11 +53,11 @@ ManifestLiveboxesParser::OnStartElement(const char *pName)
 
        bool status = true;
 
-       if (strcasecmp(pName, "Liveboxes") == 0)
+       if ((strcasecmp(pName, "Liveboxes") == 0) || (strcasecmp(pName, "AppWidgets") == 0))
        {
                status = OnLiveboxesStartElement();
        }
-       else if (strcasecmp(pName, "Livebox") == 0)
+       else if ((strcasecmp(pName, "Livebox") == 0) || (strcasecmp(pName, "AppWidget") == 0))
        {
                status = OnLiveboxStartElement();
        }
@@ -72,11 +72,11 @@ ManifestLiveboxesParser::OnEndElement(const char *pName)
 
        bool status = true;
 
-       if (strcasecmp(pName, "Liveboxes") == 0)
+       if ((strcasecmp(pName, "Liveboxes") == 0) || (strcasecmp(pName, "AppWidgets") == 0))
        {
                status = OnLiveboxesEndElement();
        }
-       else if (strcasecmp(pName, "Livebox") == 0)
+       else if ((strcasecmp(pName, "Livebox") == 0) || (strcasecmp(pName, "AppWidget") == 0))
        {
                status = OnLiveboxEndElement();
        }
@@ -125,7 +125,7 @@ ManifestLiveboxesParser::OnLiveboxesStartElement()
        __pLiveboxDataList = new (std::nothrow) ArrayList;
        TryReturn(__pLiveboxDataList, false, "__pLiveboxDataList is null");
 
-       AppLog("  <Liveboxes>");
+       AppLog("  <AppWidgets>");
 
        return true;
 }
@@ -144,7 +144,7 @@ ManifestLiveboxesParser::OnLiveboxStartElement(void)
        pAttr = pHandler->GetAttribute();
        TryReturn(pAttr, true, "pAttr is null");
 
-       AppLog("  <Livebox>");
+       AppLog("  <AppWidget>");
 
        char *pProviderName = pAttr->Find("ProviderName");
        if (pProviderName)
@@ -161,12 +161,21 @@ ManifestLiveboxesParser::OnLiveboxStartElement(void)
                AppLog("   - UpdatePeriod=%lld", updatePeriod);
        }
 
-       char *pLiveboxPopupEnabled = pAttr->Find("LiveboxPopupEnabled");
+       charpLiveboxPopupEnabled = pAttr->Find("LiveboxPopupEnabled");
        if (pLiveboxPopupEnabled)
        {
                __pLiveboxData->SetPopupEnabled(pLiveboxPopupEnabled);
                AppLog("   - LiveboxPopupEnabled=%s", pLiveboxPopupEnabled);
        }
+       else
+       {
+               char* pAppWidgetPopupEnabled = pAttr->Find("AppWidgetPopupEnabled");
+               if (pAppWidgetPopupEnabled)
+               {
+                       __pLiveboxData->SetPopupEnabled(pAppWidgetPopupEnabled);
+                       AppLog("   - AppWidgetPopupEnabled=%s", pAppWidgetPopupEnabled);
+               }
+       }
 
        char* pDefault = pAttr->Find("Default");
        if (pDefault == null)
@@ -188,7 +197,7 @@ ManifestLiveboxesParser::OnLiveboxesEndElement(void)
 {
        __pContext->SetLiveboxDataList(__pLiveboxDataList);
        __pLiveboxDataList = null;
-       AppLog("  </Liveboxes>");
+       AppLog("  </AppWidgets>");
 
        return true;
 }
@@ -198,7 +207,7 @@ ManifestLiveboxesParser::OnLiveboxEndElement(void)
 {
        __pLiveboxDataList->Add(*__pLiveboxData);
        __pLiveboxData = null;
-       AppLog("  </Livebox>");
+       AppLog("  </AppWidget>");
 
        return true;
 }