From b7b646a99f6918464291e56b0774eed21fa775f5 Mon Sep 17 00:00:00 2001 From: "lke01.lee" Date: Thu, 27 Dec 2012 13:52:26 +0900 Subject: [PATCH] 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 --- src/jobs/widget_install/manifest.cpp | 10 +++++++--- src/jobs/widget_install/task_manifest_file.cpp | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) 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 -- 2.7.4