{
status = OnContentStartElement();
}
- else if (strcasecmp(pName, "Liveboxes") == 0)
+ else if ((strcasecmp(pName, "Liveboxes") == 0) || strcasecmp(pName, "AppWidgets") == 0)
{
status = OnLiveboxesStartElement(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();
}
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();
}
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();
}
__pLiveboxDataList = new (std::nothrow) ArrayList;
TryReturn(__pLiveboxDataList, false, "__pLiveboxDataList is null");
- AppLog(" <Liveboxes>");
+ AppLog(" <AppWidgets>");
return true;
}
pAttr = pHandler->GetAttribute();
TryReturn(pAttr, true, "pAttr is null");
- AppLog(" <Livebox>");
+ AppLog(" <AppWidget>");
char *pProviderName = pAttr->Find("ProviderName");
if (pProviderName)
AppLog(" - UpdatePeriod=%lld", updatePeriod);
}
- char *pLiveboxPopupEnabled = pAttr->Find("LiveboxPopupEnabled");
+ char* pLiveboxPopupEnabled = 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)
{
__pContext->SetLiveboxDataList(__pLiveboxDataList);
__pLiveboxDataList = null;
- AppLog(" </Liveboxes>");
+ AppLog(" </AppWidgets>");
return true;
}
{
__pLiveboxDataList->Add(*__pLiveboxData);
__pLiveboxData = null;
- AppLog(" </Livebox>");
+ AppLog(" </AppWidget>");
return true;
}