2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
18 * @file FSysSettingInfo.cpp
19 * @brief This is the implementation file for SettingInfo class.
22 #include <FBaseString.h>
23 #include <FSysSettingInfo.h>
25 #include <FBaseSysLog.h>
26 #include <FSys_SettingInfoImpl.h>
27 #include <FSec_AccessController.h>
29 using namespace Tizen::Base;
30 using namespace Tizen::Security;
32 namespace Tizen { namespace System
35 SettingInfo::SettingInfo(void)
36 :__pSettingInfoImpl(null)
40 SettingInfo::~SettingInfo(void)
45 SettingInfo::SetSettingEventListener(ISettingEventListener* pListener)
47 return _SettingInfoImpl::SetSettingEventListener(pListener);
51 SettingInfo::AddSettingEventListener(ISettingEventListener& listener)
53 return _SettingInfoImpl::AddSettingEventListener(listener);
57 SettingInfo::RemoveSettingEventListener(ISettingEventListener& listener)
59 return _SettingInfoImpl::RemoveSettingEventListener(listener);
63 SettingInfo::GetValue(const String& key, String& value)
65 return _SettingInfoImpl::GetValue(key, value);
69 SettingInfo::GetValue(const String& key, int& value)
71 return _SettingInfoImpl::GetValue(key, value);
75 SettingInfo::GetValue(const String& key, long long& value)
77 return _SettingInfoImpl::GetValue(key, value);
81 SettingInfo::GetValue(const String& key, double& value)
83 return _SettingInfoImpl::GetValue(key, value);
87 SettingInfo::GetValue(const String& key, bool& value)
89 return _SettingInfoImpl::GetValue(key, value);
93 SettingInfo::GetValue(const String& key, UuId& value)
95 return _SettingInfoImpl::GetValue(key, value);
99 SettingInfo::SetWallpaper(const String& filePath)
101 return _SettingInfoImpl::SetWallpaper(filePath);
105 SettingInfo::SetRingtone(const String& filePath)
107 return _SettingInfoImpl::SetRingtone(filePath);
111 SettingInfo::SetVolume(const String& soundCategory, int level)
113 return _SettingInfoImpl::SetVolume(soundCategory, level);
117 SettingInfo::GetValueForPrivilegedKey(const String& key, bool& value)
119 return _SettingInfoImpl::GetValueForPrivilegedKey(key, value);
123 SettingInfo::HasKey(const String& key)
125 return _SettingInfoImpl::HasKey(key);
129 SettingInfo::SetValue(const String& key, bool value)
131 return _SettingInfoImpl::SetValue(key, value);
135 SettingInfo::SetValue(const String& key, int value)
137 return _SettingInfoImpl::SetValue(key, value);
141 SettingInfo::SetValue(const String& key, String value)
143 return _SettingInfoImpl::SetValue(key, value);
147 SettingInfo::SetValueForPrivilegedKey(const String& key, bool value)
149 return _SettingInfoImpl::SetValueForPrivilegedKey(key, value);
153 SettingInfo::SetValueForPrivilegedKey(const String& key, String value)
155 return _SettingInfoImpl::SetValueForPrivilegedKey(key, value);
159 SettingInfo::ResetToFactoryDefault(void)
161 return _SettingInfoImpl::ResetToFactoryDefault();
165 SettingInfo::SetValueAsync(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
167 return _SettingInfoImpl::SetValueAsync(key, value, listener);
171 SettingInfo::SetValueAsyncForPrivilegedKey(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
173 return _SettingInfoImpl::SetValueAsyncForPrivilegedKey(key, value, listener);