3 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #ifndef WRTPLUGINS_API_POWERINFO_H_
20 #define WRTPLUGINS_API_POWERINFO_H_
22 #include <JavaScriptCore/JavaScript.h>
23 #include <CommonsJavaScript/PrivateObject.h>
24 #include <CommonsJavaScript/JSUtils.h>
25 #include <CommonsJavaScript/Converter.h>
27 #include <dpl/shared_ptr.h>
31 namespace Systeminfo {
33 struct PowerProperties
55 struct StorageProperties
58 unsigned long capacity;
59 unsigned long availableCapacity;
71 struct DisplayProperties
73 unsigned long resolutionWidth;
74 unsigned long resolutionHeight;
75 unsigned long dotsPerInchWidth;
76 unsigned long dotsPerInchHeight;
78 double physicalHeight;
93 struct DeviceProperties
109 struct WifiNetworkProperties
113 std::string ipAddress;
114 double signalStrength;
116 WifiNetworkProperties() :
125 struct CellularNetworkProperties
129 std::string ipAddress;
132 unsigned short cellId;
134 std::string serviceType;
138 CellularNetworkProperties() :