7027159773974f550388d67cdec2e4abe182f81f
[platform/framework/native/appfw.git] / src / system-server / setting / providers / FSys_SettingLocationProvider.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_SettingLocationProvider.h
19  * @brief       This is the header file for the %_SettingLocationProvider class.
20  *
21  * This header file contains the declarations of the %_SettingLocationProvider class.
22  */
23
24 #ifndef _FSYS_SETTING_LOCATION_PROVIDER_H_
25 #define _FSYS_SETTING_LOCATION_PROVIDER_H_
26
27 #include <vconf.h>
28
29 #include "FSys_ISettingProvider.h"
30
31 namespace Tizen { namespace System
32 {
33
34 class _SettingLocationProvider
35         : virtual public Tizen::System::_ISettingProvider
36 {
37 public:
38         _SettingLocationProvider();
39         virtual ~_SettingLocationProvider();
40
41 public:
42         result GetValue(const Tizen::Base::String& key, bool& value);
43         result SetValueForPrivilegedKey(const Tizen::Base::String& key, bool value);
44
45         bool HasKey(const Tizen::Base::String& key);
46
47 private:
48         static void SettingEventVConf(keynode_t* node, void* userData);
49 }; // _SettingLocationProvider
50
51 }} // Tizen::System
52
53 #endif // _FSYS_ISETTING_LOCATION_PROVIDER_H_