From 55c401c784ed9a060bf07e6aa491ed6d7fdc9cec Mon Sep 17 00:00:00 2001 From: Jihoon Chung Date: Wed, 2 Jan 2013 08:48:49 +0900 Subject: [PATCH] Add vconf key for memory saving mode [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 | 5 +++++ modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h b/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h index 87bf9d6..5558dbd 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h @@ -315,6 +315,11 @@ inline const char* GetVconfKeyFilesystemUsagePath() return "/filesystem_usage"; } +inline const char* GetVconfKeyMemorySavingModePath() +{ + return "/memory_saving_mode"; +} + } // namespace GlobalConfig } // namespace WrtDB diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h b/modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h index 4a3c2cb..a30a84d 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/vconf_config.h @@ -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 -- 2.7.4