From 229307b1ec4e6f710f6804bf2143f558125aeb04 Mon Sep 17 00:00:00 2001 From: Duyoung Jang Date: Thu, 24 Jan 2013 15:38:38 +0900 Subject: [PATCH] Add label, icon for submode Change-Id: I0a28a2ef1442c47bac9a59e1574ab04a8bbe062e Signed-off-by: Duyoung Jang --- inc/InstallerDefs.h | 2 +- src/XmlHandler/ManifestGenerator.cpp | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/inc/InstallerDefs.h b/inc/InstallerDefs.h index 899a978..aac6f41 100755 --- a/inc/InstallerDefs.h +++ b/inc/InstallerDefs.h @@ -21,7 +21,7 @@ #ifndef _INSTALLER_DEFS_H_ #define _INSTALLER_DEFS_H_ -#define OSP_INSTALLER_VERSION "osp-installer version = 20130123.1" +#define OSP_INSTALLER_VERSION "osp-installer version = 20130124.1" #define DIR_BIN L"/bin" #define DIR_INFO L"/info" diff --git a/src/XmlHandler/ManifestGenerator.cpp b/src/XmlHandler/ManifestGenerator.cpp index 9c82571..59be84e 100755 --- a/src/XmlHandler/ManifestGenerator.cpp +++ b/src/XmlHandler/ManifestGenerator.cpp @@ -687,6 +687,25 @@ ManifestGenerator::WriteSubModeApp(int index) __pWriter->WriteAttribute("multiple", "true"); __pWriter->WriteAttribute("type", "c++app"); + __pWriter->StartElement("label"); + __pWriter->WriteString(__pPackageInfoImpl->GetDisplayName()); + __pWriter->EndElement(); + + ArrayList* pAppList = __pPackageInfoImpl->GetAppInfoList(); + _PackageAppInfoImpl* pAppInfoImpl = dynamic_cast<_PackageAppInfoImpl*>(pAppList->GetAt(0)); + if (pAppInfoImpl) + { + if (pAppInfoImpl->GetMainmenuIcon().IsEmpty() == false) + { + String iconPath; + iconPath.Format(1024, L"%ls%ls/%ls", __pPackageInfoImpl->GetAppRootPath().GetPointer(), DIR_SHARED_RES, pAppInfoImpl->GetMainmenuIcon().GetPointer()); + + __pWriter->StartElement("icon"); + __pWriter->WriteString(iconPath); + __pWriter->EndElement(); + } + } + WriteAppControl(index); __pWriter->EndElement(); // end of "ui-application" -- 2.7.4