Add vconf key for memory saving mode
authorJihoon Chung <jihoon.chung@samsung.com>
Tue, 1 Jan 2013 23:48:49 +0000 (08:48 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Tue, 1 Jan 2013 23:56:31 +0000 (08:56 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add vconf key for memory saving mode
[SCMRequest] N/A

Change-Id: Ia368331d630467fb402aae967b78a409aa630d26

modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h
modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h

index 87bf9d6..5558dbd 100644 (file)
@@ -315,6 +315,11 @@ inline const char* GetVconfKeyFilesystemUsagePath()
     return "/filesystem_usage";
 }
 
+inline const char* GetVconfKeyMemorySavingModePath()
+{
+    return "/memory_saving_mode";
+}
+
 } // namespace GlobalConfig
 } // namespace WrtDB
 
index 4a3c2cb..a30a84d 100644 (file)
@@ -83,6 +83,15 @@ inline std::string GetVconfKeyFilesystemUsage(DPL::String pkgName)
                .GetFullPath();
 }
 
+inline std::string GetVconfKeyMemorySavingMode(DPL::String pkgName)
+{
+    return PathBuilder()
+               .Append(GlobalConfig::GetVconfKeyPrefixPath())
+               .Append(DPL::ToUTF8String(pkgName))
+               .Concat(GlobalConfig::GetVconfKeyMemorySavingModePath())
+               .GetFullPath();
+}
+
 } // namespace VconfConfig
 } // namespace WrtDB