summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuyoung Jang <duyoung.jang@samsung.com>2013-01-24 15:38:38 +0900
committerDuyoung Jang <duyoung.jang@samsung.com>2013-01-24 15:38:38 +0900
commit229307b1ec4e6f710f6804bf2143f558125aeb04 (patch)
treeeac130ac03a187556d6beef846aa931b513986c2 /src
parent2b60edde428a3e8512fc0398943a65959166ef04 (diff)
downloadinstaller-229307b1ec4e6f710f6804bf2143f558125aeb04.tar.gz
installer-229307b1ec4e6f710f6804bf2143f558125aeb04.tar.bz2
installer-229307b1ec4e6f710f6804bf2143f558125aeb04.zip
Add label, icon for submode
Change-Id: I0a28a2ef1442c47bac9a59e1574ab04a8bbe062e Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/XmlHandler/ManifestGenerator.cpp19
1 files changed, 19 insertions, 0 deletions
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"