}
bool
+ManifestLiveboxesParser::IsValidSize(const char *pCharacters)
+{
+ if (strcasecmp(pCharacters, "1x1") == 0
+ || strcasecmp(pCharacters, "2x1") == 0
+ || strcasecmp(pCharacters, "2x2") == 0
+ || strcasecmp(pCharacters, "4x1") == 0
+ || strcasecmp(pCharacters, "4x2") == 0
+ || strcasecmp(pCharacters, "4x3") == 0
+ || strcasecmp(pCharacters, "4x4") == 0 )
+ {
+ return true;
+ }
+ return false;
+}
+
+bool
ManifestLiveboxesParser::OnSizeValue(const char *pCharacters)
{
+ if( IsValidSize(pCharacters) == false)
+ {
+ AppLog(" <Size>%s</Size> <-- The size isn't supported by native c++ app widget, so ignored.", pCharacters);
+ return true;
+ }
+
ManifestHandler* pHandler = GetHandler();
TryReturn(pHandler, false, "pHandler is null");
bool OnDisplayNameValue(const char *pCharacters);
bool OnConfigurationAppControlAppIdValue(const char* pCharacters);
+ static bool IsValidSize(const char *pCharacters);
+
private:
AppData* __pAppData;
Tizen::Base::Collection::ArrayList* __pLiveboxDataList;