Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / system / inc / FSys_SettingInfoImpl.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16
17 /**
18  * @file                FSys_SettingInfoImpl.h
19  * @brief               This is the header file for _SettingInfoImpl class.
20  */
21
22 #ifndef _FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_
23 #define _FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_
24
25 #include <FSysSettingInfo.h>
26
27 namespace Tizen { namespace System
28 {
29
30 class _OSP_EXPORT_ _SettingInfoImpl
31         : public Tizen::Base::Object
32 {
33 public:
34         _SettingInfoImpl(void);
35         virtual ~_SettingInfoImpl(void);
36
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);
48
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);
54         
55         static bool HasKey(const Tizen::Base::String& key);
56
57         static result GetValueForPrivilegedKey(const Tizen::Base::String& key, bool& value);
58
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);
66
67         static result ResetToFactoryDefault(void);
68 private:
69         static void InitSettingClient(void);
70
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);
73 };
74
75 } } // Tizen::Sys
76
77 #endif //_FSYSTEM_INTERNAL_SETTINGINFO_IMPL_H_