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_ISettingProvider.h
19 * @brief This is the header file for the %_ISettingProvider class.
21 * This header file contains the declarations of the %_ISettingProvider class.
24 #ifndef _FSYS_ISETTING_PROVIDER_INTERNAL_H_
25 #define _FSYS_ISETTING_PROVIDER_INTERNAL_H_
27 #include <FBaseString.h>
28 #include <FSysISettingInfoSetValueAsyncResultListener.h>
29 #include <FSysISettingEventListener.h>
31 namespace Tizen { namespace System
34 class _ISettingProvider
37 virtual bool HasKey(const Tizen::Base::String& key)
42 virtual result GetValue(const Tizen::Base::String& key, int& value)
44 return E_OBJ_NOT_FOUND;
47 virtual result GetValue(const Tizen::Base::String& key, bool& value)
49 return E_OBJ_NOT_FOUND;
52 virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::String& value)
54 return E_OBJ_NOT_FOUND;
57 virtual result GetValueForPrivilegedKey(const Tizen::Base::String& key, bool& value)
59 return E_OBJ_NOT_FOUND;
62 virtual result SetValue(const Tizen::Base::String& key, int value)
64 return E_OBJ_NOT_FOUND;
67 virtual result SetValue(const Tizen::Base::String& key, bool value)
69 return E_OBJ_NOT_FOUND;
72 virtual result SetValue(const Tizen::Base::String& key, Tizen::Base::String value)
74 return E_OBJ_NOT_FOUND;
77 virtual result SetValueAsync(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
79 return E_OBJ_NOT_FOUND;
82 virtual result SetValueAsyncForPrivilegedKey(const Tizen::Base::String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener)
84 return E_OBJ_NOT_FOUND;
87 virtual result SetValueForPrivilegedKey(const Tizen::Base::String& key, bool value)
89 return E_OBJ_NOT_FOUND;
92 virtual result SetValueForPrivilegedKey(const Tizen::Base::String& key, Tizen::Base::String value)
94 return E_OBJ_NOT_FOUND;
97 }; // _ISettingProvider
101 #endif // _FSYS_ISETTING_PROVIDER_LISTENER_H_