Merge "Add Setting feature on system-server lib" into tizen_2.2
[platform/framework/native/appfw.git] / src / system / FSysRuntimeInfo.cpp
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                FSysRuntimeInfo.cpp
19  * @brief               This is the implementation file for RuntimeInfo class.
20  *
21  *
22  * This file contains the implementation of RuntimeInfo class.
23  */
24
25 #include <FBaseSysLog.h>
26 #include <FSysRuntimeInfo.h>
27 #include <FSys_RuntimeInfoImpl.h>
28 #include <FSec_AccessController.h>
29
30 using namespace Tizen::Base;
31 using namespace Tizen::Security;
32
33 namespace Tizen { namespace System
34 {
35
36 RuntimeInfo::RuntimeInfo(void)
37         :__pRuntimeInfoImpl(null)
38 {
39 }
40
41 RuntimeInfo::~RuntimeInfo(void)
42 {
43 }
44
45 result
46 RuntimeInfo::GetValue(const String& key, String& value)
47 {
48         return _RuntimeInfoImpl::GetValue(key, value);
49 }
50
51 result
52 RuntimeInfo::GetValue(const String& key, int& value)
53 {
54         return _RuntimeInfoImpl::GetValue(key, value);
55 }
56
57 result
58 RuntimeInfo::GetValue(const String& key, long long& value)
59 {
60         return _RuntimeInfoImpl::GetValue(key, value);
61 }
62
63 result
64 RuntimeInfo::GetValue(const String& key, double& value)
65 {
66         return _RuntimeInfoImpl::GetValue(key, value);
67 }
68
69 result
70 RuntimeInfo::GetValue(const String& key, bool& value)
71 {
72         return _RuntimeInfoImpl::GetValue(key, value);
73 }
74
75 result
76 RuntimeInfo::GetValue(const String& key, UuId& value)
77 {
78         return _RuntimeInfoImpl::GetValue(key, value);
79 }
80
81 result
82 RuntimeInfo::GetValueAsync(const String& key, IRuntimeInfoGetIntAsyncResultListener* listener)
83 {
84         return _RuntimeInfoImpl::GetValueAsync(key, listener);
85 }
86
87 result
88 RuntimeInfo::GetValueAsync(const String& key, IRuntimeInfoGetLonglongAsyncResultListener* listener)
89 {
90         return _RuntimeInfoImpl::GetValueAsync(key, listener);
91 }
92
93 } } // Tizen::System