Add vconf creation for memory saving mode
authorJihoon Chung <jihoon.chung@samsung.com>
Tue, 1 Jan 2013 23:58:30 +0000 (08:58 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 2 Jan 2013 02:15:20 +0000 (11:15 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add vconf creation for memory saving mode
[SCMRequest] must be imported with wrt-commons

Change-Id: I92047866098c1865311d1cc5d307407c00887251

src/jobs/widget_install/task_database.cpp

index 35ea45f..696a962 100644 (file)
@@ -206,6 +206,9 @@ void TaskDatabase::StepCreateVconf()
     std::string filesystemUsageKey =
         WrtDB::VconfConfig::GetVconfKeyFilesystemUsage(
             m_context.locations->getPkgname());
+    std::string memorySavingModeKey =
+        WrtDB::VconfConfig::GetVconfKeyMemorySavingMode(
+            m_context.locations->getPkgname());
 
     vconf_set_int(popupUsageKey.c_str(),
                   static_cast<int>(WrtDB::SETTINGS_TYPE_ON));
@@ -221,6 +224,8 @@ void TaskDatabase::StepCreateVconf()
                   static_cast<int>(WrtDB::SETTINGS_TYPE_ON));
     vconf_set_int(filesystemUsageKey.c_str(),
                   static_cast<int>(WrtDB::SETTINGS_TYPE_ON));
+    vconf_set_int(memorySavingModeKey.c_str(),
+                  static_cast<int>(WrtDB::SETTINGS_TYPE_OFF));
 }
 
 void TaskDatabase::StepAbortDBInsert()