Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / system / inc / FSys_SystemInfoImpl.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_SystemInfoImpl.h
19  * @brief               This is the header file for the _SystemInfoImpl class.
20  */
21
22 #ifndef _FSYS_INTERNAL_SYS_INFO_IMPL_H_
23 #define _FSYS_INTERNAL_SYS_INFO_IMPL_H_
24
25 #include <FOspConfig.h>
26 #include <FBaseResult.h>
27 #include <FSysDeviceManager.h>
28 #include <FBaseString.h>
29 #include <FBaseColHashMap.h>
30 #include <FBaseUuId.h>
31 #include <FBaseColIList.h>
32 #include <FSysSystemInfo.h>
33
34
35 namespace Tizen { namespace System
36 {
37
38 class _OSP_EXPORT_ _SystemInfoImpl
39 {
40 public:
41         static result GetSysInfo(const Tizen::Base::String& key, Tizen::Base::String& value);
42
43         static result GetSysInfo(const Tizen::Base::String& key, int& value);
44
45         static result GetSysInfo(const Tizen::Base::String& key, long long& value);
46
47         static result GetSysInfo(const Tizen::Base::String& key, double& value);
48
49         static result GetSysInfo(const Tizen::Base::String& key, bool& value);
50
51         static result GetSysInfo(const Tizen::Base::String& key, Tizen::Base::UuId& value);
52
53         static Tizen::Base::Collection::IList* GetSysInfoValuesN(const Tizen::Base::String& key, SystemInfoValueType type);
54
55         static result GetImei(Tizen::Base::String& imei);
56
57         static result GetPlatformVersion(Tizen::Base::String& platformVersion);
58
59         static result GetNativeApiVersion(Tizen::Base::String& nativeApiVersion);
60
61         static result GetWebApiVersion(Tizen::Base::String& webApiVersion);
62
63         static result GetBuildInfo(Tizen::Base::String& buildInfo);
64
65         static _SystemInfoImpl* GetInstance(SystemInfo& systeminfo);
66         
67         static const _SystemInfoImpl* GetInstance(const SystemInfo& systeminfo);
68
69 private:
70         static result GetFromRegistry(const Tizen::Base::String& key, Tizen::Base::String& value);
71
72         static result GetFromRegistry(const Tizen::Base::String& key, int& value);
73
74         static result GetFromRegistry(const Tizen::Base::String& key, bool& value);
75
76         static Tizen::Base::String ConvertToTizen(const Tizen::Base::String& key);
77 };
78
79 } } // Tizen::System
80
81 #endif  // _FSYS_INTERNAL_SYS_INFO_IMPL_H_