[Issue#] DCM-962
[Problem] There is no way for webapp to know that the webapp is launched by web livebox
[Cause] wrt-installer doesn't save value 'auto-launch' attribute to web livebox DB
[Solution] value of 'auto-launch' is saved to web livebox DB by installer.
This value is used by web-provider on clicking box.
Change-Id: I8e1e4538ef55f80aab93972f9b52996159f427cb
{
this->primary = x;
}
- void setAutoLaunch(const NcnameType &x)
- {
- this->autoLaunch = x;
- }
void setUpdatePeriod(const NcnameType &x)
{
this->updatePeriod = x;
LogInfo("livebox id: " << boxId);
LogInfo("livebox type: " << boxType);
+ int autoLaunch;
+ if ((**it).m_autoLaunch == L"true") {
+ autoLaunch = 1;
+ } else {
+ autoLaunch = 0;
+ }
+
int ret =
- web_provider_livebox_insert_box_type(
- boxId.c_str(), tizenId.c_str(), boxType.c_str());
+ web_provider_livebox_insert_box_info(
+ boxId.c_str(), tizenId.c_str(), boxType.c_str(), autoLaunch);
if (ret < 0) {
LogDebug("failed to set type of livebox: " << boxId);
liveBox.setPrimary(ConfigInfo->m_primary);
}
- if (ConfigInfo->m_autoLaunch == L"true") {
- liveBox.setAutoLaunch(appid);
- }
-
if (ConfigInfo->m_updatePeriod != L"") {
liveBox.setUpdatePeriod(ConfigInfo->m_updatePeriod);
}