auto-launch tag has been changed
authorlke01.lee <lke01.lee@samsung.com>
Thu, 27 Dec 2012 04:52:26 +0000 (13:52 +0900)
committerlke01.lee <lke01.lee@samsung.com>
Thu, 27 Dec 2012 06:17:52 +0000 (15:17 +0900)
[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
src/jobs/widget_install/task_manifest_file.cpp

index 12bdc92..98adb96 100755 (executable)
@@ -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");
index 306024e..908109a 100755 (executable)
@@ -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