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 FSys_SettingInfoImpl.h
19 * @brief This is the header file for _SettingInfoImpl class.
22 #ifndef _FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_
23 #define _FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_
25 #include <FSysSettingInfo.h>
27 namespace Tizen { namespace System
30 class _OSP_EXPORT_ _SettingInfoImpl
31 : public Tizen::Base::Object
34 _SettingInfoImpl(void);
35 virtual ~_SettingInfoImpl(void);
37 static result GetValue(const Tizen::Base::String& key, Tizen::Base::String& value);
38 static result GetValue(const Tizen::Base::String& key, int& value);
39 static result GetValue(const Tizen::Base::String& key, long long& value);
40 static result GetValue(const Tizen::Base::String& key, double& value);
41 static result GetValue(const Tizen::Base::String& key, bool& value);
42 static result GetValue(const Tizen::Base::String& key, Tizen::Base::UuId& value);
43 static result SetSettingEventListener(ISettingEventListener* pListener);
44 static result AddSettingEventListenerForInternal(ISettingEventListener& listener);
45 static result RemoveSettingEventListenerForInternal(ISettingEventListener& listener);
46 static result AddSettingEventListener(ISettingEventListener& listener);
47 static result RemoveSettingEventListener(ISettingEventListener& listener);
49 static result SetWallpaper(const Tizen::Base::String& filePath);
50 static result SetRingtone(const Tizen::Base::String& filePath);
51 static result SetVolume(const Tizen::Base::String& soundCategory, int level);
52 static _SettingInfoImpl* GetInstance(SettingInfo& settinginfo);
53 static const _SettingInfoImpl* GetInstance(const SettingInfo& settinginfo);
55 static bool HasKey(const Tizen::Base::String& key);
57 static result GetValueForPrivilegedKey(const Tizen::Base::String& key, bool& value);
59 static result SetValue(const Tizen::Base::String& key, bool value);
60 static result SetValue(const Tizen::Base::String& key, int value);
61 static result SetValue(const Tizen::Base::String& key, Tizen::Base::String value);
62 static result SetValueForPrivilegedKey(const Tizen::Base::String& key, bool value);
63 static result SetValueAsync(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener);
64 static result SetValueAsyncForPrivilegedKey(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener);
65 static result SetValueForPrivilegedKey(const Tizen::Base::String& key, Tizen::Base::String value);
67 static result ResetToFactoryDefault(void);
69 static void InitSettingClient(void);
71 static result GetValueForFont(const Tizen::Base::String& key, Tizen::Base::String& value);
72 static result SetValueForFont(const Tizen::Base::String& key, Tizen::Base::String value);
77 #endif //_FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_