2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file vconf_config.h
18 * @author Jihoon Chung (jihoon.chung@samsung.com)
20 * @brief Implementation file for vconf key config.
22 #ifndef SRC_DOMAIN_VCONF_CONFIG_H
23 #define SRC_DOMAIN_VCONF_CONFIG_H
26 #include <dpl/string.h>
28 #include <dpl/wrt-dao-ro/global_config.h>
29 #include <dpl/wrt-dao-ro/path_builder.h>
32 namespace VconfConfig {
33 inline std::string GetVconfKeyRootPath(DPL::String tzPkgId)
36 .Append(GlobalConfig::GetVconfKeyPrefixPath())
37 .Append(DPL::ToUTF8String(tzPkgId))
41 inline std::string GetVconfKeyPopupUsage(DPL::String tzPkgId)
44 .Append(GlobalConfig::GetVconfKeyPrefixPath())
45 .Append(DPL::ToUTF8String(tzPkgId))
46 .Concat(GlobalConfig::GetVconfKeyPopupUsagePath())
50 inline std::string GetVconfKeyGeolocationUsage(DPL::String tzPkgId)
53 .Append(GlobalConfig::GetVconfKeyPrefixPath())
54 .Append(DPL::ToUTF8String(tzPkgId))
55 .Concat(GlobalConfig::GetVconfKeyGeolocationUsagePath())
59 inline std::string GetVconfKeyWebNotificationUsage(DPL::String tzPkgId)
62 .Append(GlobalConfig::GetVconfKeyPrefixPath())
63 .Append(DPL::ToUTF8String(tzPkgId))
64 .Concat(GlobalConfig::GetVconfKeyWebNotificationUsagePath())
68 inline std::string GetVconfKeyWebDatabaseUsage(DPL::String tzPkgId)
71 .Append(GlobalConfig::GetVconfKeyPrefixPath())
72 .Append(DPL::ToUTF8String(tzPkgId))
73 .Concat(GlobalConfig::GetVconfKeyWebDatabaseUsagePath())
77 inline std::string GetVconfKeyFilesystemUsage(DPL::String tzPkgId)
80 .Append(GlobalConfig::GetVconfKeyPrefixPath())
81 .Append(DPL::ToUTF8String(tzPkgId))
82 .Concat(GlobalConfig::GetVconfKeyFilesystemUsagePath())
86 inline std::string GetVconfKeyMemorySavingMode(DPL::String tzPkgId)
89 .Append(GlobalConfig::GetVconfKeyPrefixPath())
90 .Append(DPL::ToUTF8String(tzPkgId))
91 .Concat(GlobalConfig::GetVconfKeyMemorySavingModePath())
95 } // namespace VconfConfig