Add label, icon for submode
authorDuyoung Jang <duyoung.jang@samsung.com>
Thu, 24 Jan 2013 06:38:38 +0000 (15:38 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Thu, 24 Jan 2013 06:38:38 +0000 (15:38 +0900)
Change-Id: I0a28a2ef1442c47bac9a59e1574ab04a8bbe062e
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/XmlHandler/ManifestGenerator.cpp

index 899a978..aac6f41 100755 (executable)
@@ -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"
index 9c82571..59be84e 100755 (executable)
@@ -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"