Add setting, notification icon
authorDuyoung Jang <duyoung.jang@samsung.com>
Tue, 5 Feb 2013 11:35:02 +0000 (20:35 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Tue, 5 Feb 2013 11:35:02 +0000 (20:35 +0900)
Change-Id: Ib8650a334a9ae358ade64e784acaa8719c14d2f1
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/XmlHandler/ManifestGenerator.cpp

index 4ce2d09..f69aa44 100755 (executable)
@@ -23,7 +23,7 @@
 
 #include "InstallerUtil.h"
 
-#define OSP_INSTALLER_VERSION "version=[20130205.1]"
+#define OSP_INSTALLER_VERSION "version=[20130205.2]"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index fb34cb6..aed5246 100755 (executable)
@@ -633,6 +633,28 @@ ManifestGenerator::WriteApp(int index, Tizen::App::Package::_PackageAppInfoImpl*
                __pWriter->EndElement();
        }
 
+       if (pAppInfoImpl->GetSettingIcon().IsEmpty() == false)
+       {
+               String iconPath;
+               iconPath.Format(1024, L"%ls%ls/%ls", __pPackageInfoImpl->GetAppRootPath().GetPointer(), DIR_SHARED_RES, pAppInfoImpl->GetSettingIcon().GetPointer());
+
+               __pWriter->StartElement("icon");
+               __pWriter->WriteAttribute("section", "setting");
+               __pWriter->WriteString(iconPath);
+               __pWriter->EndElement();
+       }
+
+       if (pAppInfoImpl->GetQuickpanelIcon().IsEmpty() == false)
+       {
+               String iconPath;
+               iconPath.Format(1024, L"%ls%ls/%ls", __pPackageInfoImpl->GetAppRootPath().GetPointer(), DIR_SHARED_RES, pAppInfoImpl->GetQuickpanelIcon().GetPointer());
+
+               __pWriter->StartElement("icon");
+               __pWriter->WriteAttribute("section", "notification");
+               __pWriter->WriteString(iconPath);
+               __pWriter->EndElement();
+       }
+
        IListT<AppData*>* pAppDataList = __pContext->__pAppDataList;
        TryReturn(pAppDataList, false, "pAppDataList is null");