,__isDefaultLaunchImage(false)
,__isDefaultName(false)
,__isDefaultAppDetected(false)
+,__isInternalStorage(false)
,__pAppData(null)
,__isParserMode(false)
,__pParser(null)
{
status = OnNotificationValue(pCharacters);
}
- else if (strcasecmp(pName, "InstallationLocation") == 0)
+ else if (strcasecmp(pName, "InstallLocation") == 0)
{
- status = OnInstallationLocationValue(pCharacters);
+ status = OnInstallLocationValue(pCharacters);
}
else if (strcasecmp(pName, "Category") == 0)
{
{
AppLog("</Apps>");
+ if ((__isInternalStorage == false) && (File::IsFileExist(DIR_MEMORYCARD_INSTALLATION) == true))
+ {
+ AppLog("INSTALLATION_STORAGE = [EXTERNAL]");
+ __pContext->__storage = INSTALLATION_STORAGE_EXTERNAL;
+ }
+
return true;
}
}
bool
-ManifestHandler::OnVersionValue(const char *pCharacters)
+ManifestHandler::OnVersionValue(const char* pCharacters)
{
AppLog("<Version>%s</Version>", pCharacters);
__pContext->__version = pCharacters;
}
bool
-ManifestHandler::OnTypeValue(const char *pCharacters)
+ManifestHandler::OnTypeValue(const char* pCharacters)
{
AppLog("<Type>%s</Type>", pCharacters);
}
bool
-ManifestHandler::OnAuthorValue(const char *pCharacters)
+ManifestHandler::OnAuthorValue(const char* pCharacters)
{
AppLog("<Author>%s</Author>", pCharacters);
__pContext->__author = pCharacters;
}
bool
-ManifestHandler::OnUrlValue(const char *pCharacters)
+ManifestHandler::OnUrlValue(const char* pCharacters)
{
__pContext->__url = pCharacters;
AppLog("<Url>%s</Url>", pCharacters);
}
bool
-ManifestHandler::OnApiVersionValue(const char *pCharacters)
+ManifestHandler::OnApiVersionValue(const char* pCharacters)
{
__pContext->__apiVersion = pCharacters;
AppLog("<ApiVersion>%s</ApiVersion>", pCharacters);
}
bool
-ManifestHandler::OnPrivilegeValue(const char *pCharacters)
+ManifestHandler::OnPrivilegeValue(const char* pCharacters)
{
__pPrivilegeList->Add(*new (std::nothrow) String(pCharacters));
AppLog("<Privilege>%s</Privilege>", pCharacters);
}
bool
-ManifestHandler::OnIconValue(const char *pCharacters)
+ManifestHandler::OnIconValue(const char* pCharacters)
{
AppLog("<Icon>%s</Icon>", pCharacters);
}
bool
-ManifestHandler::OnNameValue(const char *pCharacters)
+ManifestHandler::OnNameValue(const char* pCharacters)
{
XmlAttribute* pAttr = 0;
char* pAttrValue = 0;
}
bool
-ManifestHandler::OnDescriptionValue(const char *pCharacters)
+ManifestHandler::OnDescriptionValue(const char* pCharacters)
{
XmlAttribute *pAttr = 0;
char *pAttrValue = 0;
}
bool
-ManifestHandler::OnDataControlTypeValue(const char *pCharacters)
+ManifestHandler::OnDataControlTypeValue(const char* pCharacters)
{
XmlAttribute* pAttr = null;
char* pAccessValue = null;
}
bool
-ManifestHandler::OnConditionValue(const char *pCharacters)
+ManifestHandler::OnConditionValue(const char* pCharacters)
{
XmlAttribute *pAttr = null;
char *pName = null;
}
bool
-ManifestHandler::OnNotificationValue(const char *pCharacters)
+ManifestHandler::OnNotificationValue(const char* pCharacters)
{
XmlAttribute *pAttr = null;
const char *pName = null;
}
bool
-ManifestHandler::OnInstallationLocationValue(const char *pCharacters)
+ManifestHandler::OnInstallLocationValue(const char* pCharacters)
{
- AppLog("<InstallationLocation>%s</InstallationLocation>", pCharacters);
+ AppLog("<InstallLocation>%s</InstallLocation>", pCharacters);
- if ((strcasecmp(pCharacters, "UserPreferred") == 0) &&
- (File::IsFileExist(DIR_MEMORYCARD_INSTALLATION) == true))
+ if (strcasecmp(pCharacters, "Internal") == 0)
{
- AppLog("INSTALLATION_STORAGE = [EXTERNAL]");
- __pContext->__storage = INSTALLATION_STORAGE_EXTERNAL;
+ AppLog("INSTALLATION_STORAGE = [INTERNAL]");
+ __isInternalStorage = true;
}
return true;
}
bool
-ManifestHandler::OnCategoryValue(const char *pCharacters)
+ManifestHandler::OnCategoryValue(const char* pCharacters)
{
TryReturn(__pAppData, false, "__pAppData is null");
bool OnManifestEndElement(void);
// OnValue
- bool OnIdValue(const char *pCharacters);
- bool OnVersionValue(const char *pCharacters);
- bool OnTypeValue(const char *pCharacters);
- bool OnAuthorValue(const char *pCharacters);
- bool OnUrlValue(const char *pCharacters);
- bool OnApiVersionValue(const char *pCharacters);
- bool OnPrivilegeValue(const char *pCharacters);
- bool OnIconValue(const char *pCharacters);
- bool OnNameValue(const char *pCharacters);
- bool OnDescriptionValue(const char *pCharacters);
- bool OnDataControlTypeValue(const char *pCharacters);
- bool OnConditionValue(const char *pCharacters);
- bool OnNotificationValue(const char *pCharacters);
- bool OnSizeValue(const char *pCharacters);
- bool OnInstallationLocationValue(const char *pCharacters);
- bool OnCategoryValue(const char *pCharacters);
+ bool OnIdValue(const char* pCharacters);
+ bool OnVersionValue(const char* pCharacters);
+ bool OnTypeValue(const char* pCharacters);
+ bool OnAuthorValue(const char* pCharacters);
+ bool OnUrlValue(const char* pCharacters);
+ bool OnApiVersionValue(const char* pCharacters);
+ bool OnPrivilegeValue(const char* pCharacters);
+ bool OnIconValue(const char* pCharacters);
+ bool OnNameValue(const char* pCharacters);
+ bool OnDescriptionValue(const char* pCharacters);
+ bool OnDataControlTypeValue(const char* pCharacters);
+ bool OnConditionValue(const char* pCharacters);
+ bool OnNotificationValue(const char* pCharacters);
+ bool OnSizeValue(const char* pCharacters);
+ bool OnInstallLocationValue(const char* pCharacters);
+ bool OnCategoryValue(const char* pCharacters);
bool OnMetadataValue(const char* pCharacters);
bool OnMimeTypeValue(const char* pCharacters);
bool __isDefaultLaunchImage;
bool __isDefaultName;
bool __isDefaultAppDetected;
+ bool __isInternalStorage;
AppData* __pAppData;