Replace getPkgName to getTzAddId
authorJihoon Chung <jihoon.chung@samsung.com>
Fri, 19 Apr 2013 04:56:24 +0000 (13:56 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Fri, 19 Apr 2013 05:11:07 +0000 (14:11 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Replace getPkgName to getTzAddId
[SCMRequest] must be imported with wrt-commons

Change-Id: I1e580f77e9b095bf86534b8495052918c120e6a8

webapp-detail/advancedview.cpp

index c4a965a..69caba7 100755 (executable)
@@ -283,14 +283,14 @@ bool SettingData::isEnabled()
     using namespace WrtDB;
     std::string key;
     if (m_index == SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE) {
-        key = VconfConfig::GetVconfKeyPopupUsage(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyPopupUsage(m_dao->getTzAppId());
     } else if (m_index == SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE) {
-        key = VconfConfig::GetVconfKeyGeolocationUsage(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyGeolocationUsage(m_dao->getTzAppId());
     } else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
         key = VconfConfig::GetVconfKeyWebNotificationUsage(
-            m_dao->getPkgName());
+            m_dao->getTzAppId());
     } else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
-        key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getTzAppId());
     } else {
         Assert("Wrong menu index");
     }
@@ -315,14 +315,14 @@ void SettingData::saveChange(bool state)
 
     std::string key;
     if (m_index == SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE) {
-        key = VconfConfig::GetVconfKeyPopupUsage(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyPopupUsage(m_dao->getTzAppId());
     } else if (m_index == SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE) {
-        key = VconfConfig::GetVconfKeyGeolocationUsage(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyGeolocationUsage(m_dao->getTzAppId());
     } else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
         key = VconfConfig::GetVconfKeyWebNotificationUsage(
-            m_dao->getPkgName());
+            m_dao->getTzAppId());
     } else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
-        key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getPkgName());
+        key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getTzAppId());
     } else {
         Assert("Wrong menu index");
     }