2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 #ifndef WEBAPI_PLUGINS_SYSTEMINFO_SYSTEMINFO_UTILS_H__
18 #define WEBAPI_PLUGINS_SYSTEMINFO_SYSTEMINFO_UTILS_H__
21 #include <TelNetwork.h>
22 #include <system_settings.h>
23 #include <vconf-internal-keys.h>
26 #include "common/picojson.h"
27 #include "common/platform_result.h"
28 #include "systeminfo/systeminfo_device_capability.h"
31 namespace systeminfo {
41 class SysteminfoUtils {
43 static common::PlatformResult GetVconfInt(const char *key, int *value);
44 static common::PlatformResult GetRuntimeInfoString(system_settings_key_e key,
45 std::string *platform_string);
46 static common::PlatformResult CheckTelephonySupport();
47 static common::PlatformResult CheckWifiSupport();
48 static common::PlatformResult CheckCameraFlashSupport();
49 static common::PlatformResult CheckIfEthernetNetworkSupported();
50 static common::PlatformResult GetTotalMemory(long long *result);
51 static common::PlatformResult GetAvailableMemory(long long *result);
52 static common::PlatformResult RegisterVconfCallback(const char *in_key, vconf_callback_fn cb,
54 static common::PlatformResult UnregisterVconfCallback(const char *in_key, vconf_callback_fn cb);
55 static common::PlatformResult RegisterTapiChangeCallback(TapiHandle *handle, const char *noti_id,
56 tapi_notification_cb callback,
58 static common::PlatformResult UnregisterTapiChangeCallback(TapiHandle *handle,
62 typedef unsigned char byte;
64 } // namespace systeminfo
67 #endif // WEBAPI_PLUGINS_SYSTEMINFO_SYSTEMINFO_UTILS_H__