mypackage_wrt/preview/data/sysInfo_data.js
changeset 42 20be4dd42b12
equal deleted inserted replaced
41:315255cd1aef 42:20be4dd42b12
       
     1 /**
       
     2  * SAPI Sample Data - SysInfo
       
     3  */
       
     4 
       
     5 
       
     6 (function(){  
       
     7 
       
     8 var data_5800 = {
       
     9 			"battery":{
       
    10 				"batterystrength":{
       
    11 					"Status":85,
       
    12 					"Entity":"Battery",
       
    13 					"Key":"BatteryStrength"
       
    14 					},
       
    15 				"chargingstatus":{
       
    16 					"Status":0,
       
    17 					"Entity":"Battery",
       
    18 					"Key":"ChargingStatus"
       
    19 					}
       
    20 			},
       
    21 			"connectivity":{
       
    22 				"bluetooth":{
       
    23 					"Status":1,
       
    24 					"Entity":"Connectivity",
       
    25 					"Key":"BlueTooth"
       
    26 					},
       
    27 				"infrared":{
       
    28 					"Status":-1,
       
    29 					"Entity":"Connectivity",
       
    30 					"Key":"InfraRed"
       
    31 					},
       
    32 				"activeconnections":{
       
    33 					"ConnectionList":[{
       
    34 								"IAPID":5,
       
    35 								"IAPName":"Browser",
       
    36 								"IAPConnectionName":"",
       
    37 								"NetworkName":"Browser",
       
    38 								"ConnectionType":7,
       
    39 								"ConnectionStatus":1
       
    40 								},{
       
    41 								"IAPID":1,
       
    42 								"IAPName":"airtelgprs.com",
       
    43 								"IAPConnectionName":"Mobile Office",
       
    44 								"NetworkName":"GPRS",
       
    45 								"ConnectionType":6,
       
    46 								"ConnectionStatus":1
       
    47 								}],
       
    48 					"Entity":"Connectivity",
       
    49 					"Key":"ActiveConnections"
       
    50 				},					
       
    51 				"wlanmacaddress":{
       
    52 					"StringData":"00:21:fe:97:c5:27",
       
    53 					"Entity":"Connectivity",
       
    54 					"Key":"WLanMacAddress"
       
    55 					}
       
    56 			},
       
    57 			"device":{
       
    58 				"firmwareversion":{
       
    59 					"StringData":"V 20.0.012 RnD\n04-03-09\nRM-356\n(c)NMP",
       
    60 					"Entity":"Device",
       
    61 					"Key":"FirmwareVersion"},
       
    62 				"platformversion":{
       
    63 					"MajorVersion":"5",
       
    64 					"MinorVersion":"0",
       
    65 					"Entity":"Device",
       
    66 					"Key":"PlatformVersion"
       
    67 					},
       
    68 				"producttype":{
       
    69 					"StringData":"RM-356",
       
    70 					"Entity":"Device",
       
    71 					"Key":"ProductType"
       
    72 					},
       
    73 				"manufacturer":{
       
    74 					"StringData":"Nokia",
       
    75 					"Entity":"Device",
       
    76 					"Key":"Manufacturer"
       
    77 					},
       
    78 				"machineid":{
       
    79 					"Status":536926806,
       
    80 					"Entity":"Device",
       
    81 					"Key":"MachineId"
       
    82 					},
       
    83 				"phonemodel":{
       
    84 					"StringData":"5800 XpressMusic",
       
    85 					"Entity":"Device",
       
    86 					"Key":"PhoneModel"
       
    87 					},
       
    88 				"imei":{
       
    89 					"StringData":"004401102480155",
       
    90 					"Entity":"Device",
       
    91 					"Key":"IMEI"
       
    92 					}
       
    93 			},
       
    94 			"display":{
       
    95 				"brightness":{
       
    96 					"Status":50,
       
    97 					"Entity":"Display",
       
    98 					"Key":"Brightness"
       
    99 					},
       
   100 				"screensavertimeout":{
       
   101 					"Status":15,
       
   102 					"Entity":"Display",
       
   103 					"Key":"ScreenSaverTimeout"
       
   104 					},
       
   105 				"keyguardtime":{
       
   106 					"Status":60,
       
   107 					"Entity":"Display",
       
   108 					"Key":"KeyGuardTime"
       
   109 					},
       
   110 				"keyguardtime":{
       
   111 					"Status":60,
       
   112 					"Entity":"Display",
       
   113 					"Key":"KeyGuardTime"
       
   114 					},
       
   115 				"autolocktime":{
       
   116 					"Status":0,
       
   117 					"Entity":"Display",
       
   118 					"Key":"AutoLockTime"
       
   119 					},
       
   120 				"autolockstatus":{
       
   121 					"Status":0,
       
   122 					"Entity":"Display",
       
   123 					"Key":"AutoLockStatus"
       
   124 					},
       
   125 				"lighttimeout":{
       
   126 					"Status":45,
       
   127 					"Entity":"Display",
       
   128 					"Key":"LightTimeout"
       
   129 					},
       
   130 				"displayresolution":{
       
   131 					"XPixels":640,
       
   132 					"YPixels":360,
       
   133 					"Entity":"Display",
       
   134 					"Key":"DisplayResolution"
       
   135 					},
       
   136 				"displayorientation":{
       
   137 					"Status":3,
       
   138 					"Entity":"Display",
       
   139 					"Key":"DisplayOrientation"
       
   140 					},
       
   141 				"wallpaper":{
       
   142 					"StringData":"C://Data//Others//wallpaper.jpeg",
       
   143 					"Entity":"Display",
       
   144 					"Key":"Wallpaper"
       
   145 					}
       
   146 				
       
   147 			},
       
   148 			"features":{
       
   149 				"bluetooth":{
       
   150 					"Status":1,
       
   151 					"Entity":"Features",
       
   152 					"Key":"BlueTooth"
       
   153 					},
       
   154 				"infrared":{
       
   155 					"Status":0,
       
   156 					"Entity":"Features",
       
   157 					"Key":"InfraRed"
       
   158 					},
       
   159 				"camera":{
       
   160 					"Status":1,
       
   161 					"Entity":"Features",
       
   162 					"Key":"CAMERA"
       
   163 					},
       
   164 				"memorycard":{
       
   165 					"Status":1,
       
   166 					"Entity":"Features",
       
   167 					"Key":"MemoryCard"
       
   168 					},
       
   169 				"fmradio":{
       
   170 					"Status":1,
       
   171 					"Entity":"Features",
       
   172 					"Key":"FMRADIO"
       
   173 					},
       
   174 				"qwerty":{
       
   175 					"Status":1,
       
   176 					"Entity":"Features",
       
   177 					"Key":"QWERTY"
       
   178 					},
       
   179 				"wlan":{
       
   180 					"Status":1,
       
   181 					"Entity":"Features",
       
   182 					"Key":"WLAN"
       
   183 					},
       
   184 				"usb":{
       
   185 					"Status":1,
       
   186 					"Entity":"Features",
       
   187 					"Key":"USB"
       
   188 					},
       
   189 				"pen":{
       
   190 					"Status":1,
       
   191 					"Entity":"Features",
       
   192 					"Key":"Pen"
       
   193 					},
       
   194 				"led":{
       
   195 					"Status":0,
       
   196 					"Entity":"Features",
       
   197 					"Key":"LED"
       
   198 					},
       
   199 				"coverui":{
       
   200 					"Status":0,
       
   201 					"Entity":"Features",
       
   202 					"Key":"CoverUI"
       
   203 					},
       
   204 				"sidevolumekeys":{
       
   205 					"Status":1,
       
   206 					"Entity":"Features",
       
   207 					"Key":"SideVolumeKeys"
       
   208 					},
       
   209 				"vibra":{
       
   210 					"Status":1,
       
   211 					"Entity":"Features",
       
   212 					"Key":"Vibra"
       
   213 					}
       
   214 			},
       
   215 			"general":{
       
   216 				"connectedaccessories":{
       
   217 					"AccessoryList":[{"AccessoryType":0,"AccessoryState":1}],
       
   218 					"Entity":"General",
       
   219 					"Key":"ConnectedAccessories"
       
   220 					},
       
   221 				"accessorystatus":{
       
   222 					"AccessoryInfo":{"AccessoryType":0,"AccessoryState":0},
       
   223 					"Entity":"General",
       
   224 					"Key":"AccessoryStatus"
       
   225 					},
       
   226 				"inputlanguage":{
       
   227 					"Status":1,
       
   228 					"Entity":"General",
       
   229 					"Key":"InputLanguage"
       
   230 					},
       
   231 				"supportedlanguages":{
       
   232 					"LanguageList":[1,2,3,5,13,4],
       
   233 					"Entity":"General",
       
   234 					"Key":"SupportedLanguages"
       
   235 					},
       
   236 				"predictivetext":{
       
   237 					"Status":0,
       
   238 					"Entity":"General",
       
   239 					"Key":"PredictiveText"
       
   240 					},
       
   241 				"vibraactive":{
       
   242 					"Status":1,
       
   243 					"Entity":"General",
       
   244 					"Key":"VibraActive"
       
   245 					},
       
   246 				"availableusbmodes":{
       
   247 					"StringList":["PC Suite","Mass storage","Image transfer","Media transfer"],
       
   248 					"Entity":"General",
       
   249 					"Key":"AvailableUSBModes"
       
   250 					},
       
   251 				"activeusbmode":{
       
   252 					"StringData":"Mass storage",
       
   253 					"Entity":"General",
       
   254 					"Key":"ActiveUSBMode"
       
   255 					},
       
   256 				"flipstatus":{
       
   257 					"Status":-1,
       
   258 					"Entity":"General",
       
   259 					"Key":"FlipStatus"
       
   260 					},
       
   261 				"gripstatus":{
       
   262 					"Status":1,
       
   263 					"Entity":"General",
       
   264 					"Key":"GripStatus"
       
   265 					}
       
   266 			},
       
   267 			"memory":{
       
   268 				"listdrives":{
       
   269 					"DriveList":["C:\\","D:\\","E:\\","Z:\\"],
       
   270 					"Entity":"Memory",
       
   271 					"Key":"ListDrives"
       
   272 					},
       
   273 				"memorycard":{
       
   274 					"Status":1,
       
   275 					"Entity":"Memory",
       
   276 					"Key":"MemoryCard"
       
   277 					},
       
   278 				"driveinfo":{
       
   279 					"Drive": {
       
   280 							"C:\\": {
       
   281 								"Drive": "C:\\",
       
   282 								"CriticalSpace": 131072,
       
   283 								"MediaType": 9,
       
   284 								"TotalSpace": 90210304,
       
   285 								"FreeSpace": 79319040,
       
   286 								"DriveName": "",
       
   287 								"BatterState": 0
       
   288 								},
       
   289 							"D:\\": {
       
   290 								"Drive": "D:\\",
       
   291 								"CriticalSpace": 2700000,
       
   292 								"MediaType": 5,
       
   293 								"TotalSpace": 52469760,
       
   294 								"FreeSpace": 52457472,
       
   295 								"DriveName": "",
       
   296 								"BatterState": 0
       
   297 								},
       
   298 							"Z:\\": {
       
   299 								"Drive": "Z:\\",
       
   300 								"CriticalSpace": 131072,
       
   301 								"MediaType": 7,
       
   302 								"TotalSpace": 0,
       
   303 								"FreeSpace": 0,
       
   304 								"DriveName": "RomDrive",
       
   305 								"BatterState": 0
       
   306 								}
       
   307 							},
       
   308 					"Entity":"Memory",
       
   309 					"Key":"DriveInfo"
       
   310 					}
       
   311 			},
       
   312 			"network":{
       
   313 				"registrationstatus":{
       
   314 					"Status":4,
       
   315 					"Entity":"Network",
       
   316 					"Key":"RegistrationStatus"
       
   317 					},
       
   318 				"networkmode":{
       
   319 					"Status":0,
       
   320 					"Entity":"Network",
       
   321 					"Key":"NetworkMode"
       
   322 					},
       
   323 				"signalstrength":{
       
   324 					"Status":61,
       
   325 					"Entity":"Network",
       
   326 					"Key":"SignalStrength"
       
   327 					},
       
   328 				"currentnetwork":{
       
   329 					"NetworkName":"Airtel",
       
   330 					"NetworkStatus":1,
       
   331 					"NetworkMode":1,
       
   332 					"CountryCode":"404",
       
   333 					"NetworkCode":"45",
       
   334 					"LocationStatus":false,
       
   335 					"Entity":"Network",
       
   336 					"Key":"CurrentNetwork"
       
   337 					}
       
   338 			}
       
   339 	}; 
       
   340 	/**
       
   341 	 * register data!
       
   342 	 */
       
   343 	device.implementation.loadData('Service.SysInfo', '', data_5800);
       
   344 
       
   345 })()