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_SystemInfoImpl.h
19 * @brief This is the header file for the _SystemInfoImpl class.
22 #ifndef _FSYS_INTERNAL_SYS_INFO_IMPL_H_
23 #define _FSYS_INTERNAL_SYS_INFO_IMPL_H_
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>
35 namespace Tizen { namespace System
38 class _OSP_EXPORT_ _SystemInfoImpl
41 static result GetSysInfo(const Tizen::Base::String& key, Tizen::Base::String& value);
43 static result GetSysInfo(const Tizen::Base::String& key, int& value);
45 static result GetSysInfo(const Tizen::Base::String& key, long long& value);
47 static result GetSysInfo(const Tizen::Base::String& key, double& value);
49 static result GetSysInfo(const Tizen::Base::String& key, bool& value);
51 static result GetSysInfo(const Tizen::Base::String& key, Tizen::Base::UuId& value);
53 static Tizen::Base::Collection::IList* GetSysInfoValuesN(const Tizen::Base::String& key, SystemInfoValueType type);
55 static result GetImei(Tizen::Base::String& imei);
57 static result GetPlatformVersion(Tizen::Base::String& platformVersion);
59 static result GetNativeApiVersion(Tizen::Base::String& nativeApiVersion);
61 static result GetWebApiVersion(Tizen::Base::String& webApiVersion);
63 static result GetBuildInfo(Tizen::Base::String& buildInfo);
65 static _SystemInfoImpl* GetInstance(SystemInfo& systeminfo);
67 static const _SystemInfoImpl* GetInstance(const SystemInfo& systeminfo);
70 static result GetFromRegistry(const Tizen::Base::String& key, Tizen::Base::String& value);
72 static result GetFromRegistry(const Tizen::Base::String& key, int& value);
74 static result GetFromRegistry(const Tizen::Base::String& key, bool& value);
76 static Tizen::Base::String ConvertToTizen(const Tizen::Base::String& key);
81 #endif // _FSYS_INTERNAL_SYS_INFO_IMPL_H_