From: lke01.lee Date: Thu, 27 Dec 2012 04:52:26 +0000 (+0900) Subject: auto-launch tag has been changed X-Git-Tag: accepted/tizen_2.1/20130425.023916~20^2~24^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7b646a99f6918464291e56b0774eed21fa775f5;p=framework%2Fweb%2Fwrt-installer.git auto-launch tag has been changed [Issue#] N/A [Problem] [Cause] N/A [Solution]auto-launch has been changed from attribute to elementry by master Change-Id: I3ab12384929b3feb904ac98f1f4fbde4c64c24f7 --- diff --git a/src/jobs/widget_install/manifest.cpp b/src/jobs/widget_install/manifest.cpp index 12bdc92..98adb96 100755 --- a/src/jobs/widget_install/manifest.cpp +++ b/src/jobs/widget_install/manifest.cpp @@ -309,12 +309,10 @@ void LiveBox::serialize(xmlTextWriterPtr writer) if(!this->liveboxId.empty()) { writeAttribute(writer, "appid", this->liveboxId); } + if(!this->primary.empty()) { writeAttribute(writer, "primary", this->primary); } - if(!this->autoLaunch.empty()) { - writeAttribute(writer, "auto_launch", this->autoLaunch); - } if(!this->updatePeriod.empty()) { writeAttribute(writer, "period", this->updatePeriod); @@ -336,6 +334,12 @@ void LiveBox::serialize(xmlTextWriterPtr writer) endElement(writer); } + if(!this->autoLaunch.empty()) { + startElement(writer, "launch"); + writeText(writer, this->autoLaunch); + endElement(writer); + } + if(!this->box.boxSrc.empty() && !this->box.boxSize.empty()) { startElement(writer, "box"); diff --git a/src/jobs/widget_install/task_manifest_file.cpp b/src/jobs/widget_install/task_manifest_file.cpp index 306024e..908109a 100755 --- a/src/jobs/widget_install/task_manifest_file.cpp +++ b/src/jobs/widget_install/task_manifest_file.cpp @@ -838,16 +838,16 @@ void TaskManifestFile::setLiveBoxInfo(Manifest& manifest) } } - if(ConfigInfo->m_primary !=L"") + if(ConfigInfo->m_primary != L"") liveBox.setPrimary(ConfigInfo->m_primary); - if(ConfigInfo->m_autoLaunch !=L"") - liveBox.setAutoLaunch(ConfigInfo->m_autoLaunch); + if(ConfigInfo->m_autoLaunch == L"true") + liveBox.setAutoLaunch(pkgname); - if(ConfigInfo->m_updatePeriod !=L"") + if(ConfigInfo->m_updatePeriod != L"") liveBox.setUpdatePeriod(ConfigInfo->m_updatePeriod); - if(ConfigInfo->m_label !=L"") + if(ConfigInfo->m_label != L"") liveBox.setLabel(ConfigInfo->m_label); DPL::String defaultLocale