Merge "Apply string localization for web" into tizen_2.2
[platform/framework/native/appfw.git] / src / server / system / setting / providers / FSys_ISettingProvider.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_ISettingProvider.h
19  * @brief       This is the header file for the %_ISettingProvider class.
20  *
21  * This header file contains the declarations of the %_ISettingProvider class.
22  */
23
24 #ifndef _FSYS_ISETTING_PROVIDER_INTERNAL_H_
25 #define _FSYS_ISETTING_PROVIDER_INTERNAL_H_
26
27 #include <FBaseString.h>
28 #include <FSysISettingInfoSetValueAsyncResultListener.h>
29 #include <FSysISettingEventListener.h>
30
31 namespace Tizen { namespace System
32 {
33
34 class _ISettingProvider
35 {
36 public:
37         virtual bool    HasKey(const Tizen::Base::String& key)
38         {
39                 return false;
40         }
41
42         virtual result  GetValue(const Tizen::Base::String& key, int& value)
43         {
44                 return E_OBJ_NOT_FOUND;
45         }
46
47         virtual result  GetValue(const Tizen::Base::String& key, bool& value)
48         {
49                 return E_OBJ_NOT_FOUND;
50         }
51
52         virtual result  GetValue(const Tizen::Base::String& key, Tizen::Base::String& value)
53         {
54                 return E_OBJ_NOT_FOUND;
55         }
56
57         virtual result  GetValueForPrivilegedKey(const Tizen::Base::String& key, bool& value)
58         {
59                 return E_OBJ_NOT_FOUND;
60         }
61
62         virtual result  SetValue(const Tizen::Base::String& key, int value)
63         {
64                 return E_OBJ_NOT_FOUND;
65         }
66
67         virtual result  SetValue(const Tizen::Base::String& key, bool value)
68         {
69                 return E_OBJ_NOT_FOUND;
70         }
71
72         virtual result  SetValue(const Tizen::Base::String& key, Tizen::Base::String value)
73         {
74                 return E_OBJ_NOT_FOUND;
75         }
76
77         virtual result  SetValueAsync(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
78         {
79                 return E_OBJ_NOT_FOUND;
80         }
81
82         virtual result  SetValueAsyncForPrivilegedKey(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
83         {
84                 return E_OBJ_NOT_FOUND;
85         }
86
87         virtual result  SetValueForPrivilegedKey(const Tizen::Base::String& key, bool value)
88         {
89                 return E_OBJ_NOT_FOUND;
90         }
91
92         virtual result  SetValueForPrivilegedKey(const Tizen::Base::String& key, Tizen::Base::String value)
93         {
94                 return E_OBJ_NOT_FOUND;
95         }
96
97 }; // _ISettingProvider
98
99 }} // Tizen::System
100
101 #endif // _FSYS_ISETTING_PROVIDER_LISTENER_H_