SystemInfo refactoring
authordavid_kim31 <david_kim31@samsung.com>
Wed, 31 Jul 2013 12:10:29 +0000 (21:10 +0900)
committerdavid_kim31 <david_kim31@samsung.com>
Wed, 31 Jul 2013 12:10:29 +0000 (21:10 +0900)
Change-Id: I49ca50901712fefdbc4c815a142623d6399dedf5
Signed-off-by: david_kim31 <david_kim31@samsung.com>
CMakeLists.txt
inc/FSys_SystemService.h
src/FSys_SystemService.cpp
src/setting/FSys_SettingNetworkProvider.cpp
src/system/FSys_SystemInfo.cpp [deleted file]
src/system/FSys_SystemInfo.h [deleted file]

index 94b7ae1..5580181 100644 (file)
@@ -76,7 +76,6 @@ SET (${this_target}_SOURCE_FILES
        src/FIo_MmcStorageManagerService.cpp
        src/FIo_MmcStorageManagerStub.cpp
        src/system/FSys_DeviceId.cpp
-       src/system/FSys_SystemInfo.cpp
        src/system/FSys_RuntimeInfo.cpp
        src/system/FSys_PowerManager.cpp
        src/FSys_SettingService.cpp
index 38ce3ba..2754373 100644 (file)
@@ -26,7 +26,6 @@
 #include "FApp_ICommunicationRequestListener.h"
 #include "FSys_PowerManager.h"
 
-#include "FSys_SystemInfo.h"
 #include "FSys_RuntimeInfo.h"
 
 #ifndef _FSYS_INTERNAL_SYSTEM_SERVICE_H_
@@ -56,7 +55,6 @@ public:
 private:
        Tizen::App::_CommunicationDispatcher*   __pCommunicationDispatcher;
        Tizen::System::_PowerManager*           __pPowerManager;
-       Tizen::System::_SystemInfo              __systemInfo;
        Tizen::System::_RuntimeInfo             __runtimeInfo;
        static _SystemService*                  __pSystemService;
 };     //_SystemService
index ab4ccc8..17833e9 100644 (file)
@@ -31,6 +31,7 @@
 #include <FIo.h>
 #include <FBaseSysLog.h>
 #include <FSysSystemTime.h>
+#include <FSysSystemInfo.h>
 
 #include <FApp_AppManagerImpl.h>
 #include <FBase_StringConverter.h>
@@ -38,7 +39,6 @@
 
 #include "FApp_CommunicationDispatcher.h"
 #include "FSys_SystemService.h"
-#include "FSys_SystemInfo.h"
 #include "FSys_RuntimeInfo.h"
 
 using namespace std;
@@ -99,8 +99,6 @@ _SystemService::_SystemService()
        r = pAppManagerImpl->AddActiveAppEventListener(*this);
        SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add active app event listener");
 
-       __systemInfo.CachingSystemInformation();
-
 
 CATCH:
        SetLastResult(r);
@@ -116,8 +114,8 @@ _SystemService::~_SystemService()
        r = __pCommunicationDispatcher->RemoveCommunicationEventListener(*this);
        SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to remove event listener");
 
-       ret = device_battery_unset_cb();
-       SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to remove battery event listener");
+       //ret = device_battery_unset_cb();
+       //SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to remove battery event listener");
 
        pAppManagerImpl = _AppManagerImpl::GetInstance();
        SysTryCatch(NID_SYS, pAppManagerImpl != null, r = E_SYSTEM, E_SYSTEM, "It is failed to get _AppManagerImpl class.");
@@ -212,8 +210,9 @@ _SystemService::OnRequestOccured(AppId appId, int pid, ArrayList* request, Array
                        else
                        {
                                bool supported = false;
-                               r = __systemInfo.GetValue(L"http://tizen.org/feature/network.telephony", supported);
-                               if(r != E_SUCCESS || supported == false)
+                               ret = system_info_get_platform_bool("tizen.org/feature/network.telephony", &supported);
+
+                               if(ret != 0 || supported == false)
                                {
                                        SysLogException(NID_SYS, E_SYSTEM, "Current device does not support telephony feature.");
                                        resultId = new (std::nothrow) String(_SYSTEM_RESULT_ERROR);
@@ -344,12 +343,6 @@ _SystemService::OnRequestOccured(AppId appId, int pid, ArrayList* request, Array
                        }
                }
        }
-       else if(command->Contains(_SYSTEM_COMMAND_SYSTEM) == true)
-       {
-               SysLog(NID_SYS, "SystemInfo is required.");
-               r = __systemInfo.OnRequestOccured(appId, request, response);
-               return;
-       }
        else if(command->Contains(_SYSTEM_COMMAND_RUNTIME) == true)
        {
                r = __runtimeInfo.OnRequestOccured(appId, pid, request, response);
index 624209a..2e1b38d 100644 (file)
@@ -32,7 +32,6 @@
 #include <FBase.h>
 #include <FBaseSysLog.h>
 
-#include "FSys_SystemInfo.h"
 #include "FSys_SettingService.h"
 #include "FSys_SettingNetworkProvider.h"
 
@@ -749,10 +748,9 @@ _SettingNetworkProvider::SetValueAsyncForPrivilegedKey(const Tizen::App::AppId a
 
                __pidOfFlightMode = pid;
 
-               _SystemInfo systemInfo;
                __flightModeEnabled = value;
                bool telephony_supported = false;
-               systemInfo.GetValue(_SYSTEM_TELEPHONY, telephony_supported);
+               system_info_get_platform_bool("http://tizen.org/feature/network.telephony", &telephony_supported);
 
                SysLog(NID_SYS, "It requests flight mode[%d].", value);
                if(telephony_supported == true)
@@ -1092,18 +1090,18 @@ _SettingNetworkProvider::SetValueForPrivilegedKey(const String& key, String valu
 bool
 _SettingNetworkProvider::HasKey(const Tizen::Base::String& key)
 {
-       _SystemInfo systemInfo;
+       int ret = 0;
        bool wifi_supported = false;
-       systemInfo.GetValue(_SYSTEM_NETWORK_WIFI, wifi_supported);
+       system_info_get_platform_bool("tizen.org/feature/network.wifi", &wifi_supported);
 
        bool wifi_direct_supported = false;
-       systemInfo.GetValue(_SYSTEM_NETWORK_WIFI_DIRECT, wifi_direct_supported);
+       system_info_get_platform_bool("tizen.org/feature/network.wifi.direct", &wifi_direct_supported);
 
        bool bluetooth_supported = false;
-       systemInfo.GetValue(_SYSTEM_NETWORK_BLUETOOTH, bluetooth_supported);
+       system_info_get_platform_bool("tizen.org/feature/network.bluetooth", &bluetooth_supported);
 
        bool telephony_supported = false;
-       systemInfo.GetValue(_SYSTEM_TELEPHONY, telephony_supported);
+       system_info_get_platform_bool("tizen.org/feature/network.telephony", &telephony_supported);
 
        SysLog(NID_SYS, "requiredKey is %ls.", key.GetPointer());
        if(key == _NETWORK_FLIGHTMODE)
diff --git a/src/system/FSys_SystemInfo.cpp b/src/system/FSys_SystemInfo.cpp
deleted file mode 100644 (file)
index 1b74296..0000000
+++ /dev/null
@@ -1,1266 +0,0 @@
-//
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-/**
- * @file               FSys_SystemInfo.cpp
- * @brief              This is the implementation file for _SystemInfo class.
- */
-
-#include <unique_ptr.h>
-#include <sys/stat.h>
-#include <sys/utsname.h>
-#include <stdlib.h>
-#include <dlfcn.h>
-#include <media/sound_manager.h>
-#include <sim.h>
-#include <sensor.h>
-#include <sensors.h>
-#include <system_info.h>
-#include <telephony_network.h>
-#include <locations.h>
-
-#include <FBaseColIMapEnumerator.h>
-#include <FBaseInteger.h>
-#include <FBaseSysLog.h>
-#include <FBaseUtilStringUtil.h>
-#include <FBaseUtilStringTokenizer.h>
-#include <FIoFile.h>
-#include <FIoRegistry.h>
-#include <FIoDirectory.h>
-#include <FSysIDeviceEventListener.h>
-#include <FSysIScreenEventListener.h>
-#include <FSysIChargingEventListener.h>
-#include <FSysIBatteryEventListener.h>
-
-#include <FAppPkg_PackageManagerImpl.h>
-#include <FBase_NativeError.h>
-#include <FBase_StringConverter.h>
-#include <FIo_RegistryImpl.h>
-#include <FSys_DeviceId.h>
-#include <FSys_SystemInfo.h>
-
-using namespace std;
-using namespace Tizen::App;
-using namespace Tizen::App::Package;
-using namespace Tizen::Base;
-using namespace Tizen::Base::Collection;
-using namespace Tizen::Base::Utility;
-using namespace Tizen::Io;
-
-namespace Tizen { namespace System
-{
-//Camera
-static const wchar_t* _CAMERA = L"http://tizen.org/feature/camera";
-static const wchar_t* _CAMERA_BACK = L"http://tizen.org/feature/camera.back";
-static const wchar_t* _CAMERA_BACK_FLASH = L"http://tizen.org/feature/camera.back.flash";
-static const wchar_t* _CAMERA_FRONT = L"http://tizen.org/feature/camera.front";
-static const wchar_t* _CAMERA_FRONT_FLASH = L"http://tizen.org/feature/camera.front.flash";
-//Database
-static const wchar_t* _DATABASE_ENCRYPTION = L"http://tizen.org/feature/database.encryption";
-static const char* _DATABASE_LIBRARY_PATH = "/usr/lib/libsqlite3.so.0";
-static const char* _DATABASE_ENCRYPTION_SYMBOL = "sqlite3_key";
-//FM Radio
-static const wchar_t* _FMRADIO = L"http://tizen.org/feature/fmradio";
-//Graphic
-static const wchar_t* _GRAPHIC_ACCELERATION = L"http://tizen.org/feature/graphics.acceleration";
-//Input
-static const wchar_t* _INPUT_KEYBOARD = L"http://tizen.org/feature/input.keyboard";
-static const wchar_t* _INPUT_KEYBOARD_LAYOUT = L"http://tizen.org/feature/input.keyboard.layout";
-static const wchar_t* _INPUT_KEYS_BACK = L"http://tizen.org/feature/input.keys.back";
-static const wchar_t* _INPUT_KEYS_MENU = L"http://tizen.org/feature/input.keys.menu";
-//Location
-static const wchar_t* _LOCATION = L"http://tizen.org/feature/location";
-static const wchar_t* _LOCATION_GPS = L"http://tizen.org/feature/location.gps";
-static const wchar_t* _LOCATION_WPS = L"http://tizen.org/feature/location.wps";
-//Microphone
-static const wchar_t* _MICROPHONE = L"http://tizen.org/feature/microphone";
-//Multi point
-static const wchar_t* _MULTIPOINTTOUCH_PINCHZOOM = L"http://tizen.org/feature/multi_point_touch.pinch_zoom";
-static const wchar_t* _MULTIPOINTTOUCH_POINTCOUNT = L"http://tizen.org/feature/multi_point_touch.point_count";
-//Network bluetooth
-static const wchar_t* _NETWORK_BLUETOOTH = L"http://tizen.org/feature/network.bluetooth";
-//Network NFC
-static const wchar_t* _NETWORK_NFC = L"http://tizen.org/feature/network.nfc";
-static const wchar_t* _NETWORK_NFC_RESERVED_PUSH = L"http://tizen.org/feature/network.nfc.reserved_push";
-//Network push
-static const wchar_t* _NETWORK_PUSH = L"http://tizen.org/feature/network.push";
-static const wchar_t* _NETWORK_PUSH_BIN = L"/usr/bin/pushd";
-static const wchar_t* _NETWORK_SECURE_ELEMENT = L"http://tizen.org/feature/network.secure_element";
-static const wchar_t* _SECURE_ELEMENT_BIN = L"/usr/bin/smartcard-daemon";
-//Network telephony
-static const wchar_t* _NETWORK_TELEPHONY = L"http://tizen.org/feature/network.telephony";
-static const wchar_t* _NETWORK_TELEPHONY_MMS = L"http://tizen.org/feature/network.telephony.mms";
-static const wchar_t* _NETWORK_TELEPHONY_SMS = L"http://tizen.org/feature/network.telephony.sms";
-static const wchar_t* _NETWORK_TELEPHONY_SMS_CBS = L"http://tizen.org/feature/network.telephony.sms.cbs";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_CDMA = L"http://tizen.org/feature/network.telephony.service.cdma";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_EDGE = L"http://tizen.org/feature/network.telephony.service.edge";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_GPRS = L"http://tizen.org/feature/network.telephony.service.gprs";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_GSM = L"http://tizen.org/feature/network.telephony.service.gsm";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSDPA = L"http://tizen.org/feature/network.telephony.service.hsdpa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSPA = L"http://tizen.org/feature/network.telephony.service.hspa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_HSUPA = L"http://tizen.org/feature/network.telephony.service.hsupa";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_LTE = L"http://tizen.org/feature/network.telephony.service.lte";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_UMTS = L"http://tizen.org/feature/network.telephony.service.umts";
-static const wchar_t* _NETWORK_TELEPHONY_SERVICE_BIN = L"/usr/bin/telephony-daemon";
-static const wchar_t* _NETWORK_TELEPHONY_MODEM_BIN = L"/boot/modem.bin";
-//Network WIFI
-static const wchar_t* _NETWORK_WIFI = L"http://tizen.org/feature/network.wifi";
-static const wchar_t* _NETWORK_WIFI_DIRECT = L"http://tizen.org/feature/network.wifi.direct";
-//Opengles
-static const wchar_t* _OPENGLES = L"http://tizen.org/feature/opengles";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_3DC = L"http://tizen.org/feature/opengles.texture_format.3dc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_ATC = L"http://tizen.org/feature/opengles.texture_format.atc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_ETC = L"http://tizen.org/feature/opengles.texture_format.etc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_PTC = L"http://tizen.org/feature/opengles.texture_format.ptc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_PVRTC = L"http://tizen.org/feature/opengles.texture_format.pvrtc";
-static const wchar_t* _OPENGLES_TEXTUREFORMAT_UTC = L"http://tizen.org/feature/opengles.texture_format.utc";
-static const wchar_t* _OPENGLES_VERSION_1_1 = L"http://tizen.org/feature/opengles.version.1_1";
-static const wchar_t* _OPENGLES_VERSION_2_0 = L"http://tizen.org/feature/opengles.version.2_0";
-//Platform core CPU
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_ARMV6 = L"http://tizen.org/feature/platform.core.cpu.arch.armv6";
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_ARMV7 = L"http://tizen.org/feature/platform.core.cpu.arch.armv7";
-static const wchar_t* _PLATFORM_CORE_CPU_ARCH_X86 = L"http://tizen.org/feature/platform.core.cpu.arch.x86";
-//Platform core FPU
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSE2 = L"http://tizen.org/feature/platform.core.fpu.arch.sse2";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSE3 = L"http://tizen.org/feature/platform.core.fpu.arch.sse3";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_SSSE3 = L"http://tizen.org/feature/platform.core.fpu.arch.ssse3";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_VFPV2 = L"http://tizen.org/feature/platform.core.fpu.arch.vfpv2";
-static const wchar_t* _PLATFORM_CORE_FPU_ARCH_VFPV3 = L"http://tizen.org/feature/platform.core.fpu.arch.vfpv3";
-//Platform Version
-static const wchar_t* _PLATFORM_NATIVE_API_VERSION = L"http://tizen.org/feature/platform.native.api.version";
-static const wchar_t* _PLATFORM_NATIVE_OSP_COMPATIBLE = L"http://tizen.org/feature/platform.native.osp_compatible";
-static const wchar_t* _PLATFORM_VERSION = L"http://tizen.org/feature/platform.version";
-static const wchar_t* _PLATFORM_WEB_API_VERSION = L"http://tizen.org/feature/platform.web.api.version";
-//Screen
-static const wchar_t* _SCREEN_AUTO_ROTATION = L"http://tizen.org/feature/screen.auto_rotation";
-static const wchar_t* _SCREEN_BPP = L"http://tizen.org/feature/screen.bpp";
-static const wchar_t* _SCREEN_COORDINATE_SYSTEM_SIZE_LARGE = L"http://tizen.org/feature/screen.coordinate_system.size.large";
-static const wchar_t* _SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL = L"http://tizen.org/feature/screen.coordinate_system.size.normal";
-static const wchar_t* _SCREEN_DESKTOPMODE = L"http://tizen.org/feature/screen.desktop_mode";
-static const wchar_t* _SCREEN_DPI = L"http://tizen.org/feature/screen.dpi";
-static const wchar_t* _SCREEN_HEIGHT = L"http://tizen.org/feature/screen.height";
-static const wchar_t* _SCREEN_SIZE_LARGE = L"http://tizen.org/feature/screen.size.large";
-static const wchar_t* _SCREEN_SIZE_NORMAL = L"http://tizen.org/feature/screen.size.normal";
-static const wchar_t* _SCREEN_SIZE_NORMAL_480_800 = L"http://tizen.org/feature/screen.size.normal.480.800";
-static const wchar_t* _SCREEN_SIZE_NORMAL_720_1280 = L"http://tizen.org/feature/screen.size.normal.720.1280";
-static const wchar_t* _SCREEN_WIDTH = L"http://tizen.org/feature/screen.width";
-//Screen HDMI RCA
-static const wchar_t* _SCREEN_OUTPUT_HDMI = L"http://tizen.org/feature/screen.output.hdmi";
-static const wchar_t* _SCREEN_OUTPUT_RCA = L"http://tizen.org/feature/screen.output.rca";
-//Shell
-static const wchar_t* _SHELL_APPWIDGET = L"http://tizen.org/feature/shell.appwidget";
-//Sensor
-static const wchar_t* _SENSOR_ACCELEROMETER = L"http://tizen.org/feature/sensor.accelerometer";
-static const wchar_t* _SENSOR_ACCELEROMETER_WAKEUP = L"http://tizen.org/feature/sensor.accelerometer.wakeup";
-static const wchar_t* _SENSOR_BAROMETER = L"http://tizen.org/feature/sensor.barometer";
-static const wchar_t* _SENSOR_BAROMETER_WAKEUP = L"http://tizen.org/feature/sensor.barometer.wakeup";
-static const wchar_t* _SENSOR_GYROSCOPE = L"http://tizen.org/feature/sensor.gyroscope";
-static const wchar_t* _SENSOR_GYROSCOPE_WAKEUP = L"http://tizen.org/feature/sensor.gyroscope.wakeup";
-static const wchar_t* _SENSOR_MAGNETOMETER = L"http://tizen.org/feature/sensor.magnetometer";
-static const wchar_t* _SENSOR_MAGNETOMETER_WAKEUP = L"http://tizen.org/feature/sensor.magnetometer.wakeup";
-static const wchar_t* _SENSOR_PHOTOMETER = L"http://tizen.org/feature/sensor.photometer";
-static const wchar_t* _SENSOR_PHOTOMETER_WAKEUP = L"http://tizen.org/feature/sensor.photometer.wakeup";
-static const wchar_t* _SENSOR_PROXIMITY = L"http://tizen.org/feature/sensor.proximity";
-static const wchar_t* _SENSOR_PROXIMITY_WAKEUP = L"http://tizen.org/feature/sensor.proximity.wakeup";
-static const wchar_t* _SENSOR_TILTMETER = L"http://tizen.org/feature/sensor.tiltmeter";
-static const wchar_t* _SENSOR_TILTMETER_WAKEUP = L"http://tizen.org/feature/sensor.tiltmeter.wakeup";
-//SIP VOIP
-static const wchar_t* _SIP_VOIP = L"http://tizen.org/feature/sip.voip";
-//Speech Recognition
-static const wchar_t* _SPEECH_RECOGNITION = L"http://tizen.org/feature/speech.recognition";
-static const wchar_t* _SPEECH_SYNTHESIS = L"http://tizen.org/feature/speech.synthesis";
-static const wchar_t* _TTS_LIB = L"/usr/lib/libtts.so";
-//USB
-static const wchar_t* _USB_ACCESSORY = L"http://tizen.org/feature/usb.accessory";
-static const wchar_t* _USB_CLIENT = L"http://tizen.org/feature/usb.client";
-static const wchar_t* _USB_HOST = L"http://tizen.org/feature/usb.host";
-static const wchar_t* _ACCESSORY_LIB = L"/opt/apps/aospd00043/lib/libosp-cond-accessory.so";
-//Vision
-static const wchar_t* _VISION_FACE_RECOGNITION = L"http://tizen.org/feature/vision.face_recognition";
-static const wchar_t* _VISION_IMAGE_RECOGNITION = L"http://tizen.org/feature/vision.image_recognition";
-static const wchar_t* _VISION_QRCODE_GENERATION = L"http://tizen.org/feature/vision.qrcode_generation";
-static const wchar_t* _VISION_QRCODE_RECOGNITION = L"http://tizen.org/feature/vision.qrcode_recognition";
-static const wchar_t* _AR_ENGINE_LIB = L"/usr/lib/osp/libarengine.so";
-
-static const wchar_t* _BUILD_STRING = L"http://tizen.org/system/build.string";
-//DUID
-static const wchar_t* _DUID = L"http://tizen.org/system/duid";
-//Model name
-static const wchar_t* _MODELNAME = L"http://tizen.org/system/model_name";
-//Platform name
-static const wchar_t* _PLATFORM_NAME = L"http://tizen.org/system/platform.name";
-//Sound
-static const wchar_t* _SOUND_MEDIA_VOLUME_MAX = L"http://tizen.org/system/sound.media.volume.resolution.max";
-static const wchar_t* _SOUND_NOTIFICATION_VOLUME_MAX = L"http://tizen.org/system/sound.notification.volume.resolution.max";
-static const wchar_t* _SOUND_RINGTONE_VOLUME_MAX = L"http://tizen.org/system/sound.ringtone.volume.resolution.max";
-static const wchar_t* _SOUND_SYSTEM_VOLUME_MAX = L"http://tizen.org/system/sound.system.volume.resolution.max";
-
-
-//Communication
-static const int _SYSTEM_GET_PARAM_TYPE = 1;
-static const wchar_t* _SYSTEM_GET_BOOL = L"osp.system.command.system.get.bool";
-static const wchar_t* _SYSTEM_GET_INT = L"osp.system.command.system.get.int";
-static const wchar_t* _SYSTEM_GET_STRING = L"osp.system.command.system.get.string";
-
-static const wchar_t* _SYSTEM_OK = L"osp.system.result.ok";
-static const wchar_t* _SYSTEM_OBJ_NOT_FOUND = L"osp.system.result.obj_not_found";
-static const wchar_t* _SYSTEM_ERROR = L"osp.system.result.error";
-
-static const wchar_t* _SYSTEM_CACHING_FILE = L"/opt/usr/etc/system_info_cache.ini";
-static const wchar_t* _SYSTEM_CACHING_SECTION = L"SystemInformation";
-
-static const wchar_t* _SYSTEM_CACHING_TRUE = L"true";
-static const wchar_t* _SYSTEM_CACHING_FALSE = L"false";
-
-_SystemInfo::_SystemInfo()
-{
-}
-
-_SystemInfo::~_SystemInfo()
-{
-}
-
-result
-_SystemInfo::CachingSystemInformation(void)
-{
-       Registry reg;
-       result r = E_SUCCESS;
-       String systemValue;
-
-       r = reg.Construct(_SYSTEM_CACHING_FILE, "w+");
-       SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, "It is failed to create the cache file.");
-
-       r = reg.AddSection(_SYSTEM_CACHING_SECTION);
-       SysTryReturnResult(NID_SYS, r == E_SUCCESS, r, "It is failed to create section on the cache file.");
-
-       bool bValue = false;
-       int nValue = 0;
-       String sValue;
-
-       //For improve launch performance
-       this->GetValue(_SCREEN_DPI, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DPI, nValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_HEIGHT, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_HEIGHT, nValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_WIDTH, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_WIDTH, nValue);
-       reg.Flush();
-
-       this->GetValue(_CAMERA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_CAMERA_BACK, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_BACK, systemValue);
-       reg.Flush();
-
-       this->GetValue(_CAMERA_BACK_FLASH, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_BACK_FLASH, systemValue);
-       reg.Flush();
-
-       this->GetValue(_CAMERA_FRONT, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_FRONT, systemValue);
-       reg.Flush();
-
-       this->GetValue(_CAMERA_FRONT_FLASH, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _CAMERA_FRONT_FLASH, systemValue);
-       reg.Flush();
-
-       this->GetValue(_DATABASE_ENCRYPTION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _DATABASE_ENCRYPTION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_FMRADIO, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _FMRADIO, systemValue);
-       reg.Flush();
-
-       this->GetValue(_GRAPHIC_ACCELERATION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _GRAPHIC_ACCELERATION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_INPUT_KEYBOARD, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYBOARD, systemValue);
-       reg.Flush();
-
-       this->GetValue(_INPUT_KEYBOARD_LAYOUT, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYBOARD_LAYOUT, sValue);
-       reg.Flush();
-
-       this->GetValue(_INPUT_KEYS_BACK, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYS_BACK, systemValue);
-       reg.Flush();
-
-       this->GetValue(_INPUT_KEYS_MENU, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _INPUT_KEYS_MENU, systemValue);
-       reg.Flush();
-
-       this->GetValue(_LOCATION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_LOCATION_GPS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION_GPS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_LOCATION_WPS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _LOCATION_WPS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_MICROPHONE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _MICROPHONE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_MULTIPOINTTOUCH_PINCHZOOM, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _MULTIPOINTTOUCH_PINCHZOOM, systemValue);
-       reg.Flush();
-
-       this->GetValue(_MULTIPOINTTOUCH_POINTCOUNT, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _MULTIPOINTTOUCH_POINTCOUNT, nValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_BLUETOOTH, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_BLUETOOTH, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_NFC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_NFC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_NFC_RESERVED_PUSH, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_NFC_RESERVED_PUSH, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_PUSH, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_PUSH, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_SECURE_ELEMENT, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_SECURE_ELEMENT, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_MMS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_MMS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SMS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SMS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SMS_CBS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SMS_CBS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_CDMA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_CDMA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_EDGE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_EDGE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_GPRS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_GPRS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_GSM, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_GSM, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSDPA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSDPA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSPA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSPA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_HSUPA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_HSUPA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_LTE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_LTE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_TELEPHONY_SERVICE_UMTS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_TELEPHONY_SERVICE_UMTS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_WIFI, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_WIFI, systemValue);
-       reg.Flush();
-
-       this->GetValue(_NETWORK_WIFI_DIRECT, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _NETWORK_WIFI_DIRECT, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_3DC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_3DC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_ATC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_ATC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_ETC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_ETC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_PTC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_PTC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_PVRTC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_PVRTC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_TEXTUREFORMAT_UTC, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_TEXTUREFORMAT_UTC, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_VERSION_1_1, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_VERSION_1_1, systemValue);
-       reg.Flush();
-
-       this->GetValue(_OPENGLES_VERSION_2_0, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _OPENGLES_VERSION_2_0, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_CPU_ARCH_ARMV6, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_ARMV6, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_CPU_ARCH_ARMV7, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_ARMV7, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_CPU_ARCH_X86, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_CPU_ARCH_X86, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSE2, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSE2, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSE3, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSE3, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_FPU_ARCH_SSSE3, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_SSSE3, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_FPU_ARCH_VFPV2, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_VFPV2, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_CORE_FPU_ARCH_VFPV3, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_CORE_FPU_ARCH_VFPV3, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_NATIVE_API_VERSION, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NATIVE_API_VERSION, sValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_NATIVE_OSP_COMPATIBLE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NATIVE_OSP_COMPATIBLE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_VERSION, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_VERSION, sValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_WEB_API_VERSION, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_WEB_API_VERSION, sValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_AUTO_ROTATION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_AUTO_ROTATION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_BPP, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_BPP, nValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_COORDINATE_SYSTEM_SIZE_LARGE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_COORDINATE_SYSTEM_SIZE_LARGE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_COORDINATE_SYSTEM_SIZE_NORMAL, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_DESKTOPMODE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_DESKTOPMODE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_SIZE_LARGE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_LARGE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_SIZE_NORMAL, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_SIZE_NORMAL_480_800, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL_480_800, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_SIZE_NORMAL_720_1280, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_SIZE_NORMAL_720_1280, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_OUTPUT_HDMI, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_OUTPUT_HDMI, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SCREEN_OUTPUT_RCA, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SCREEN_OUTPUT_RCA, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SHELL_APPWIDGET, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SHELL_APPWIDGET, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_ACCELEROMETER, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_ACCELEROMETER, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_ACCELEROMETER_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_ACCELEROMETER_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_BAROMETER, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_BAROMETER, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_BAROMETER_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_BAROMETER_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_GYROSCOPE, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_GYROSCOPE, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_GYROSCOPE_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_GYROSCOPE_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_MAGNETOMETER, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_MAGNETOMETER, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_MAGNETOMETER_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_MAGNETOMETER_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_PHOTOMETER, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PHOTOMETER, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_PHOTOMETER_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PHOTOMETER_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_PROXIMITY, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PROXIMITY, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_PROXIMITY_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_PROXIMITY_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_TILTMETER, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_TILTMETER, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SENSOR_TILTMETER_WAKEUP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SENSOR_TILTMETER_WAKEUP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SIP_VOIP, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SIP_VOIP, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SPEECH_RECOGNITION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SPEECH_RECOGNITION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_SPEECH_SYNTHESIS, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SPEECH_SYNTHESIS, systemValue);
-       reg.Flush();
-
-       this->GetValue(_USB_ACCESSORY, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_ACCESSORY, systemValue);
-       reg.Flush();
-
-       this->GetValue(_USB_CLIENT, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_CLIENT, systemValue);
-       reg.Flush();
-
-       this->GetValue(_USB_HOST, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _USB_HOST, systemValue);
-       reg.Flush();
-
-       this->GetValue(_VISION_FACE_RECOGNITION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_FACE_RECOGNITION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_VISION_IMAGE_RECOGNITION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_IMAGE_RECOGNITION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_VISION_QRCODE_GENERATION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_QRCODE_GENERATION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_VISION_QRCODE_RECOGNITION, bValue);
-       if(bValue == true)
-               systemValue = _SYSTEM_CACHING_TRUE;
-       else
-               systemValue = _SYSTEM_CACHING_FALSE;
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _VISION_QRCODE_RECOGNITION, systemValue);
-       reg.Flush();
-
-       this->GetValue(_BUILD_STRING, systemValue);
-       reg.Flush();
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _BUILD_STRING, systemValue);
-       reg.Flush();
-
-       r = this->GetValue(_DUID, sValue);
-       if(r != E_SUCCESS)
-       {
-               sValue.Append(L"ERROR");
-       }
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _DUID, sValue);
-       reg.Flush();
-
-       this->GetValue(_MODELNAME, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _MODELNAME, sValue);
-       reg.Flush();
-
-       this->GetValue(_PLATFORM_NAME, sValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _PLATFORM_NAME, sValue);
-       reg.Flush();
-
-       this->GetValue(_SOUND_MEDIA_VOLUME_MAX, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_MEDIA_VOLUME_MAX, nValue);
-       reg.Flush();
-
-       this->GetValue(_SOUND_NOTIFICATION_VOLUME_MAX, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_NOTIFICATION_VOLUME_MAX, nValue);
-       reg.Flush();
-
-       this->GetValue(_SOUND_RINGTONE_VOLUME_MAX, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_RINGTONE_VOLUME_MAX, nValue);
-       reg.Flush();
-
-       this->GetValue(_SOUND_SYSTEM_VOLUME_MAX, nValue);
-       reg.AddValue(_SYSTEM_CACHING_SECTION, _SOUND_SYSTEM_VOLUME_MAX, nValue);
-       reg.Flush();
-
-       return E_SUCCESS;
-}
-
-result
-_SystemInfo::GetValue(const String& key, String& value)
-{
-       int ret = 0;
-       result r = E_SUCCESS;
-       char* pValue = null;
-
-       SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
-       if (key == _DUID)
-       {
-               bool supported = false;
-               SysLog(NID_SYS, "It trys to get DUID from telephony.");
-               this->GetValue(_NETWORK_TELEPHONY, supported);
-               if(supported == true)
-               {
-                       r = _DeviceId::GetId(value, 0);
-               }
-               else
-               {
-                       SysLog(NID_SYS, "It trys to get DUID from wifi.");
-                       this->GetValue(_NETWORK_WIFI, supported);
-                       if(supported == true)
-                       {
-                               r = _DeviceId::GetId(value, 1);
-                       }
-                       else
-                       {
-                               SysLog(NID_SYS, "It trys to get DUID from bluetooth.");
-                               this->GetValue(_NETWORK_BLUETOOTH, supported);
-                               if(supported == true)
-                               {
-                                       r = _DeviceId::GetId(value, 2);
-                               }
-                               else
-                               {
-                                       SysLogException(NID_SYS, E_SYSTEM, "It is failed to get telephony, wifi, bluetooth information.");
-                                       return E_SYSTEM;
-                               }
-                       }
-               }
-               SysTryReturnResult(NID_SYS, r == E_SUCCESS, E_SYSTEM, "It is failed to get the key[%ls]", key.GetPointer());
-       }
-       else if (key == _MODELNAME)
-       {
-               ret = system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &pValue);
-               SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE && pValue, E_SYSTEM, "It is failed to get the SYSTEM_INFO_KEY_MODEL");
-
-               r = StringUtil::Utf8ToString(pValue, value);
-               SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r, "[%s] StringUtil::Utf8ToString It is failed", GetErrorMessage(r));
-       }
-       else if (key == _BUILD_STRING)
-       {
-               ret = system_info_get_value_string(SYSTEM_INFO_KEY_BUILD_STRING, &pValue);
-               SysTryReturnResult(NID_SYS, ret == SYSTEM_INFO_ERROR_NONE, E_SYSTEM, "[E_SYSTEM] system_info_get_value_string : \"SYSTEM_INFO_KEY_TIZEN_VERSION_STRING\"It is failed");
-
-               r = StringUtil::Utf8ToString(pValue, value);
-               SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r, "[%s] StringUtil::Utf8ToString It is failed", GetErrorMessage(r));
-       }
-       else
-       {
-               String tizenKey;
-               key.SubString(7, tizenKey);
-
-               ClearLastResult();
-               unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
-               r = GetLastResult();
-               SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
-               int ret = system_info_get_platform_string(systemKey.get(), &pValue);
-
-               SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
-
-               r = StringUtil::Utf8ToString(pValue, value);
-               free(pValue);
-               pValue = null;
-
-               return r;
-       }
-
-CATCH:
-       if(pValue != null)
-       {
-               free(pValue);
-       }
-
-       return r;
-
-}
-
-result
-_SystemInfo::GetValue(const String& key, int& value)
-{
-       int ret = 0;
-       result r = E_SUCCESS;
-
-       SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
-
-       String tizenKey;
-       key.SubString(7, tizenKey);
-
-       ClearLastResult();
-       unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
-       r = GetLastResult();
-       SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
-       ret = system_info_get_platform_int(systemKey.get(), &value);
-
-       SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
-       r = E_SUCCESS;
-
-       return r;
-}
-
-result
-_SystemInfo::GetValue(const String& key, bool& value)
-{
-       int ret = 0;
-       result r = E_SUCCESS;
-
-       SysLog(NID_SYS, "Request Key is %ls.", key.GetPointer());
-
-       if (key == _SCREEN_DESKTOPMODE)
-       {
-               value = false;
-       }
-       else if (key == _USB_CLIENT)
-       {
-               value = true;
-       }
-       else
-       {
-               String tizenKey;
-               key.SubString(7, tizenKey);
-
-               ClearLastResult();
-               unique_ptr< char[] > systemKey(_StringConverter::CopyToCharArrayN(tizenKey));
-               r = GetLastResult();
-               SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] StringUtil::StringToUtf8N It is failed", GetErrorMessage(r));
-
-               bool supported = false;
-               ret = system_info_get_platform_bool(systemKey.get(), &supported);
-               SysTryReturnResult(NID_SYS, ret == 0, E_OBJ_NOT_FOUND, "It is failed to get system information %ls from configration file.", key.GetPointer());
-               value = supported;
-       }
-
-       return E_SUCCESS;
-}
-
-result
-_SystemInfo::OnRequestOccured(AppId appId, ArrayList* request, ArrayList* response)
-{
-       result r = E_SUCCESS;
-       String* resultValue = null;
-       String* resultCode = null;
-
-       String* command = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE);
-
-       SysTryReturnResult(NID_SYS, command != null, E_SYSTEM, "There is no command");
-
-       if(*command == _SYSTEM_GET_BOOL)
-       {
-               bool value = false;
-               String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
-               if(key != null)
-               {
-                       r = this->GetValue(*key, value);
-                       if(r == E_SUCCESS)
-                       {
-                               resultValue = new (std::nothrow) String();
-                               resultValue->Append(value);
-                               resultCode = new (std::nothrow) String(_SYSTEM_OK);
-                       }
-               }
-       }
-       else if(*command == _SYSTEM_GET_INT)
-       {
-               int value = 0;
-               String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
-               if(key != null)
-               {
-                       r = this->GetValue(*key, value);
-                       if(r == E_SUCCESS)
-                       {
-                               resultValue = new (std::nothrow) String();
-                               resultValue->Append(value);
-                               resultCode = new (std::nothrow) String(_SYSTEM_OK);
-                       }
-               }
-       }
-       else if(*command == _SYSTEM_GET_STRING)
-       {
-               String value;
-               String* key = (String*)request->GetAt(_SYSTEM_GET_PARAM_TYPE+1);
-               if(key != null)
-               {
-                       r = this->GetValue(*key, value);
-                       if(r == E_SUCCESS)
-                       {
-                               resultValue = new (std::nothrow) String(value);
-                               resultCode = new (std::nothrow) String(_SYSTEM_OK);
-                       }
-               }
-       }
-
-       SysLog(NID_SYS, "Result Code is %s.", GetErrorMessage(r));
-       if(resultCode == null)
-       {
-               if(r == E_OBJ_NOT_FOUND)
-               {
-                       resultCode = new (std::nothrow) String(_SYSTEM_OBJ_NOT_FOUND);
-               }
-               else
-               {
-                       resultCode = new (std::nothrow) String(_SYSTEM_ERROR);
-               }
-       }
-       response->Add(resultCode);
-
-       if(resultValue != null)
-       {
-               response->Add(resultValue);
-       }
-
-       return E_SUCCESS;
-}
-
-} } // Tizen::System
diff --git a/src/system/FSys_SystemInfo.h b/src/system/FSys_SystemInfo.h
deleted file mode 100644 (file)
index bc24aff..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Apache License, Version 2.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-/**
- * @file               FSys_SystemInfo.h
- * @brief              This is the header file for the _SystemInfo class.
- */
-
-#ifndef _FSYS_SERVICE_SYS_INFO_H_
-#define _FSYS_SERVICE_SYS_INFO_H_
-
-#include <FApp.h>
-#include <FBaseResult.h>
-#include <FSysDeviceManager.h>
-#include <FBaseString.h>
-#include <FBaseColHashMap.h>
-#include <FBaseUuId.h>
-#include <FBaseColIList.h>
-#include <FSysSystemInfo.h>
-
-#include <system_info.h>
-#include <device.h>
-#include <pthread.h>
-
-namespace Tizen { namespace System
-{
-
-class _SystemInfo
-{
-public:
-       _SystemInfo();
-       ~_SystemInfo();
-
-public:
-       result CachingSystemInformation(void);
-
-       result GetValue(const Tizen::Base::String& key, Tizen::Base::String& value);
-
-       result GetValue(const Tizen::Base::String& key, int& value);
-
-       result GetValue(const Tizen::Base::String& key, bool& value);
-
-       result OnRequestOccured(Tizen::App::AppId appId, Tizen::Base::Collection::ArrayList* request, Tizen::Base::Collection::ArrayList* response);
-
-};
-
-} } // Tizen::System
-
-#endif  // _FSYS_SERVICE_SYS_INFO_H_