/*!
- Ripple Mobile Environment Emulator v0.9.8 :: Built On Fri Dec 20 2013 12:14:50 GMT+0800 (CST)
+ Ripple Mobile Environment Emulator v0.9.8 :: Built On Fri Jan 03 2014 17:17:53 GMT+0800 (CST)
Apache License
Version 2.0, January 2004
"ppi": 316,
"browser": ["Generic"],
- "platforms": ["wac", "web", "phonegap", "tizen", "cordova", "ivi"],
+ "platforms": ["wac", "web", "phonegap", "tizen", "cordova"],
"userAgent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2"
};
};
});
+define('ripple/devices/IVI-HD', function (require, exports, module) {
+/*
+ * Copyright 2012 Intel Corporation
+ *
+ * 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.
+ */
+
+module.exports = {
+ "id": "IVI-HD",
+ "name": "IVI HD (800x480)",
+ "osName": "Generic",
+ "osVersion": "Generic",
+ "manufacturer": "Tizen",
+ "model": "Generic",
+ "uuid": "42",
+ "firmware": "Generic",
+
+ "screen": {
+ "width": 800,
+ "height": 480
+ },
+ "viewPort": {
+ "portrait": {
+ "width": 1024,
+ "height": 640,
+ "paddingTop": 0,
+ "paddingLeft": 0
+ },
+ "landscape": {
+ "width": 640,
+ "height": 1024,
+ "paddingTop": 0,
+ "paddingLeft": 0
+ }
+ },
+
+ "ppi": 316,
+ "browser": ["Generic"],
+ "platforms": ["ivi"],
+ "userAgent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2"
+};
+
+});
define('ripple/devices/Legend', function (require, exports, module) {
/*
* Copyright 2011 Research In Motion Limited.
"ppi": 316,
"browser": ["Generic"],
- "platforms": ["web", "phonegap", "tizen", "cordova", "ivi"],
+ "platforms": ["web", "phonegap", "tizen", "cordova"],
"userAgent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2"
};
"ppi": 316,
"browser": ["Generic"],
- "platforms": ["wac", "web", "phonegap", "tizen", "cordova", "ivi"],
+ "platforms": ["wac", "web", "phonegap", "tizen", "cordova"],
"userAgent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2"
};
"ppi": 316,
"browser": ["Generic"],
- "platforms": ["web", "phonegap", "tizen", "cordova", "ivi"],
+ "platforms": ["web", "phonegap", "tizen", "cordova"],
"userAgent": "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2"
};
"Curve9350-9360-9370",
"FWVGA",
"G1",
-*/
+*/ "IVI-HD",
"tizen-WVGA",
/*
"HPPre3",
});
vehicle.__defineGetter__("ZONE_Front", function () {
- return 1;
+ return 0x01;
});
vehicle.__defineGetter__("ZONE_Middle", function () {
- return 0x10;
+ return 0x02;
});
vehicle.__defineGetter__("ZONE_Right", function () {
- return 0x100;
+ return 0x04;
});
vehicle.__defineGetter__("ZONE_Left", function () {
- return 0x1000;
+ return 0x08;
});
vehicle.__defineGetter__("ZONE_Rear", function () {
- return 0x10000;
+ return 0x10;
});
vehicle.__defineGetter__("ZONE_Center", function () {
- return 0x10000;
+ return 0x20;
});
return vehicle;
VehiclePropertyType.call(this, propertyTypes);
- vehicleSpeed.time = propertyTypes.time || undefined;
vehicleSpeed.vehicleSpeed = propertyTypes.vehicleSpeed || 0;
- this.__defineGetter__("time", function () {
- return vehicleSpeed.time;
- });
-
this.__defineGetter__("vehicleSpeed", function () {
return vehicleSpeed.vehicleSpeed;
});
VehiclePropertyType.call(this, propertyTypes);
- engineSpeed.time = propertyTypes.time || undefined;
engineSpeed.engineSpeed = propertyTypes.engineSpeed || 0;
- this.__defineGetter__("time", function () {
- return engineSpeed.time;
- });
-
this.__defineGetter__("engineSpeed", function () {
return engineSpeed.engineSpeed;
});
VehiclePropertyType.call(this, propertyTypes);
- vehiclePowerMode.time = propertyTypes.time || undefined;
vehiclePowerMode.vehiclePowerMode = propertyTypes.vehiclePowerMode || 0;
- this.__defineGetter__("time", function () {
- return vehiclePowerMode.time;
- });
-
this.__defineGetter__("VEHICLEPOWERMODE_OFF", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- tripMeter.time = propertyTypes.time || undefined;
tripMeter.tripMeters = propertyTypes.tripMeters || [];
- this.__defineGetter__("time", function () {
- return tripMeter.time;
- });
-
this.__defineGetter__("tripMeters", function () {
return tripMeter.tripMeters;
});
VehiclePropertyType.call(this, propertyTypes);
- acceleration.time = propertyTypes.time || undefined;
acceleration.x = propertyTypes.x || 0;
acceleration.y = propertyTypes.y || 0;
acceleration.z = propertyTypes.z || 0;
- this.__defineGetter__("time", function () {
- return acceleration.time;
- });
-
this.__defineGetter__("x", function () {
return acceleration.x;
});
VehiclePropertyType.call(this, propertyTypes);
- transmission.time = propertyTypes.time || undefined;
transmission.gearPosition = propertyTypes.gearPosition || 0;
transmission.mode = propertyTypes.mode || 0;
- this.__defineGetter__("time", function () {
- return transmission.time;
- });
-
this.__defineGetter__("TRANSMISSIONPOSITION_NEUTRAL", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- cruiseControlStatus.time = propertyTypes.time || undefined;
cruiseControlStatus.activated = propertyTypes.activated || false;
cruiseControlStatus.speed = propertyTypes.speed || 0;
- this.__defineGetter__("time", function () {
- return cruiseControlStatus.time;
- });
-
this.__defineGetter__("activated", function () {
return cruiseControlStatus.activated;
});
VehiclePropertyType.call(this, propertyTypes);
- wheelBrake.time = propertyTypes.time || undefined;
wheelBrake.engaged = propertyTypes.engaged || false;
- this.__defineGetter__("time", function () {
- return wheelBrake.time;
- });
-
this.__defineGetter__("engaged", function () {
return wheelBrake.engaged;
});
VehiclePropertyType.call(this, propertyTypes);
- lightStatus.time = propertyTypes.time || undefined;
lightStatus.head = propertyTypes.head || false;
lightStatus.rightTurn = propertyTypes.rightTurn || false;
lightStatus.leftTurn = propertyTypes.leftTurn || false;
lightStatus.parking = propertyTypes.parking || false;
lightStatus.highBeam = propertyTypes.highBeam || false;
- this.__defineGetter__("time", function () {
- return lightStatus.time;
- });
-
this.__defineGetter__("head", function () {
return lightStatus.head;
});
VehiclePropertyType.call(this, propertyTypes);
- interiorLightStatus.time = propertyTypes.time || undefined;
interiorLightStatus.passenger = propertyTypes.passenger || false;
interiorLightStatus.driver = propertyTypes.driver || false;
interiorLightStatus.center = propertyTypes.center || false;
- this.__defineGetter__("time", function () {
- return interiorLightStatus.time;
- });
-
this.__defineGetter__("passenger", function () {
return interiorLightStatus.passenger;
});
VehiclePropertyType.call(this, propertyTypes);
- horn.time = propertyTypes.time || undefined;
horn.on = propertyTypes.on || false;
- this.__defineGetter__("time", function () {
- return horn.time;
- });
-
this.__defineGetter__("on", function () {
return horn.on;
});
VehiclePropertyType.call(this, propertyTypes);
- fuel.time = propertyTypes.time || undefined;
fuel.level = propertyTypes.level || 0;
fuel.range = propertyTypes.range || 0;
fuel.instantConsumption = propertyTypes.instantConsumption || 0;
fuel.instantEconomy = propertyTypes.instantEconomy || 0;
fuel.averageEconomy = propertyTypes.averageEconomy || 0;
- this.__defineGetter__("time", function () {
- return fuel.time;
- });
-
this.__defineGetter__("level", function () {
return fuel.level;
});
VehiclePropertyType.call(this, propertyTypes);
- engineOil.time = propertyTypes.time || undefined;
engineOil.remaining = propertyTypes.remaining || 0;
engineOil.temperature = propertyTypes.temperature || 0;
engineOil.pressure = propertyTypes.Pressure || 0;
- this.__defineGetter__("time", function () {
- return engineOil.time;
- });
-
this.__defineGetter__("remaining", function () {
return engineOil.remaining;
});
VehiclePropertyType.call(this, propertyTypes);
- location.time = propertyTypes.time || undefined;
location.latitude = propertyTypes.latitude || 0;
location.longitude = propertyTypes.longitude || 0;
location.altitude = propertyTypes.altitude || 0;
location.direction = propertyTypes.direction || 0;
- this.__defineGetter__("time", function () {
- return location.time;
- });
-
this.__defineGetter__("latitude", function () {
return location.latitude;
});
VehiclePropertyType.call(this, propertyTypes);
- eb.time = propertyTypes.time || undefined;
eb.exteriorBrightness = propertyTypes.exteriorBrightness || 0;
- this.__defineGetter__("time", function () {
- return eb.time;
- });
-
this.__defineGetter__("exteriorBrightness", function () {
return eb.exteriorBrightness;
});
VehiclePropertyType.call(this, propertyTypes);
- temperature.time = propertyTypes.time || undefined;
temperature.interior = propertyTypes.interior || 0;
temperature.exterior = propertyTypes.exterior || 0;
- this.__defineGetter__("time", function () {
- return temperature.time;
- });
-
this.__defineGetter__("interior", function () {
return temperature.interior;
});
VehiclePropertyType.call(this, propertyTypes);
- rainSensor.time = propertyTypes.time || undefined;
rainSensor.rainSensor = propertyTypes.rainSensor || 0;
- this.__defineGetter__("time", function () {
- return rainSensor.time;
- });
-
this.__defineGetter__("rainSensor", function () {
return rainSensor.rainSensor;
});
VehiclePropertyType.call(this, propertyTypes);
- windshieldWiper.time = propertyTypes.time || undefined;
windshieldWiper.windshieldWiper = propertyTypes.windshieldWiper || 0;
- this.__defineGetter__("time", function () {
- return windshieldWiper.time;
- });
-
this.__defineGetter__("WIPERSPEED_OFF", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- hvac.time = propertyTypes.time || undefined;
hvac.airflowDirection = propertyTypes.airflowDirection || 0;
hvac.fanSpeed = propertyTypes.fanSpeed || 0;
hvac.targetTemperature = propertyTypes.targetTemperature || 0;
hvac.seatHeater = propertyTypes.seatHeater || false;
hvac.seatCooler = propertyTypes.seatCooler || false;
- this.__defineGetter__("time", function () {
- return hvac.time;
- });
-
this.__defineGetter__("AIRFLOWDIRECTION_FRONTPANEL", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- windowStatus.time = propertyTypes.time || undefined;
windowStatus.openness = propertyTypes.openness || 0;
windowStatus.defrost = propertyTypes.defrost || false;
- this.__defineGetter__("time", function () {
- return windowStatus.time;
+ this.__defineGetter__("WINDOWLOCATION_DRIVER", function () {
+ return 0;
+ });
+
+ this.__defineGetter__("WINDOWLOCATION_PASSENGER", function () {
+ return 1;
+ });
+
+ this.__defineGetter__("WINDOWLOCATION_LEFTREAR", function () {
+ return 2;
+ });
+
+ this.__defineGetter__("WINDOWLOCATION_RIGHTREAR", function () {
+ return 3;
+ });
+
+ this.__defineGetter__("WINDOWLOCATION_REAR", function () {
+ return 4;
});
this.__defineGetter__("openness", function () {
VehiclePropertyType.call(this, propertyTypes);
- sunroof.time = propertyTypes.time || undefined;
sunroof.openness = propertyTypes.openness || 0;
sunroof.tilt = propertyTypes.tilt || 0;
- this.__defineGetter__("time", function () {
- return sunroof.time;
- });
-
this.__defineGetter__("openness", function () {
return sunroof.openness;
});
VehiclePropertyType.call(this, propertyTypes);
- convertibleRoof.time = propertyTypes.time || undefined;
convertibleRoof.openness = propertyTypes.openness || 0;
- this.__defineGetter__("time", function () {
- return convertibleRoof.time;
- });
-
this.__defineGetter__("openness", function () {
return convertibleRoof.openness;
});
VehiclePropertyType.call(this, propertyTypes);
- vehicleId.time = propertyTypes.time || undefined;
vehicleId.WMI = propertyTypes.WMI || "";
vehicleId.VIN = propertyTypes.VIN || "";
- this.__defineGetter__("time", function () {
- return vehicleId.time;
- });
-
this.__defineGetter__("WMI", function () {
return vehicleId.WMI;
});
VehiclePropertyType.call(this, propertyTypes);
- size.time = propertyTypes.time || undefined;
size.width = propertyTypes.width || 0;
size.height = propertyTypes.height || 0;
size.length = propertyTypes.length || 0;
- this.__defineGetter__("time", function () {
- return size.time;
- });
-
this.__defineGetter__("width", function () {
return size.width;
});
VehiclePropertyType.call(this, propertyTypes);
- fuelInfo.time = propertyTypes.time || undefined;
fuelInfo.type = propertyTypes.type || 0;
fuelInfo.refuelPosition = propertyTypes.refuelPosition || 0;
- this.__defineGetter__("time", function () {
- return fuelInfo.time;
- });
-
this.__defineGetter__("FUELTYPE_GASOLINE", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- vehicleType.time = propertyTypes.time || undefined;
vehicleType.type = propertyTypes.type || 0;
- this.__defineGetter__("time", function () {
- return vehicleType.time;
- });
-
this.__defineGetter__("VEHICLETYPE_SEDAN", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- doors.time = propertyTypes.time || undefined;
doors.doorsPerRow = propertyTypes.doorsPerRow || [];
- this.__defineGetter__("time", function () {
- return doors.time;
- });
-
this.__defineGetter__("doorsPerRow", function () {
return doors.doorsPerRow;
});
VehiclePropertyType.call(this, propertyTypes);
- trans.time = propertyTypes.time || undefined;
trans.transmissionGearType = propertyTypes.transmissionGearType || 0;
- this.__defineGetter__("time", function () {
- return trans.time;
- });
-
this.__defineGetter__("TRANSMISSIONGEARTYPE_AUTO", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- wheelInfo.time = propertyTypes.time || undefined;
wheelInfo.frontWheelRadius = propertyTypes.frontWheelRadius || 0;
wheelInfo.rearWheelRadius = propertyTypes.rearWheelRadius || 0;
wheelInfo.wheelTrack = propertyTypes.wheelTrack || 0;
wheelInfo.ABS = propertyTypes.ABS || false;
- this.__defineGetter__("time", function () {
- return wheelInfo.time;
- });
-
this.__defineGetter__("frontWheelRadius", function () {
return wheelInfo.frontWheelRadius;
});
VehiclePropertyType.call(this, propertyTypes);
- odm.time = propertyTypes.time || undefined;
odm.odometer = propertyTypes.odometer || 0;
- this.__defineGetter__("time", function () {
- return odm.time;
- });
-
this.__defineGetter__("odometer", function () {
return odm.odometer;
});
VehiclePropertyType.call(this, propertyTypes);
- fluid.time = propertyTypes.time || undefined;
fluid.transmission = propertyTypes.transmission || 0;
fluid.brake = propertyTypes.brake || 0;
fluid.washer = propertyTypes.washer || 0;
- this.__defineGetter__("time", function () {
- return fluid.time;
- });
-
this.__defineGetter__("transmission", function () {
return fluid.transmission;
});
VehiclePropertyType.call(this, propertyTypes);
- battery.time = propertyTypes.time || undefined;
battery.voltage = propertyTypes.voltage || 0;
battery.current = propertyTypes.current || 0;
- this.__defineGetter__("time", function () {
- return battery.time;
- });
-
this.__defineGetter__("voltage", function () {
return battery.voltage;
});
VehiclePropertyType.call(this, propertyTypes);
- tirePressure.time = propertyTypes.time || undefined;
tirePressure.leftFront = propertyTypes.leftFront || 0;
tirePressure.rightFront = propertyTypes.rightFront || 0;
tirePressure.leftRear = propertyTypes.leftRear || 0;
tirePressure.rightRear = propertyTypes.rightRear || 0;
- this.__defineGetter__("time", function () {
- return tirePressure.time;
- });
-
this.__defineGetter__("leftFront", function () {
return tirePressure.leftFront;
});
VehiclePropertyType.call(this, propertyTypes);
- tireTemperature.time = propertyTypes.time || undefined;
tireTemperature.leftFront = propertyTypes.leftFront || 0;
tireTemperature.rightFront = propertyTypes.rightFront || 0;
tireTemperature.leftRear = propertyTypes.leftRear || 0;
tireTemperature.rightRear = propertyTypes.rightRear || 0;
- this.__defineGetter__("time", function () {
- return tireTemperature.time;
- });
-
this.__defineGetter__("leftFront", function () {
return tireTemperature.leftFront;
});
VehiclePropertyType.call(this, propertyTypes);
- securityAlert.time = propertyTypes.time || undefined;
securityAlert.securityAlert = propertyTypes.securityAlert || false;
- this.__defineGetter__("time", function () {
- return securityAlert.time;
- });
-
this.__defineGetter__("securityAlert", function () {
return securityAlert.securityAlert;
});
VehiclePropertyType.call(this, propertyTypes);
- parkingBrake.time = propertyTypes.time || undefined;
parkingBrake.parkingBrake = propertyTypes.parkingBrake || false;
- this.__defineGetter__("time", function () {
- return parkingBrake.time;
- });
-
this.__defineGetter__("parkingBrake", function () {
return parkingBrake.parkingBrake;
});
VehiclePropertyType.call(this, propertyTypes);
- parkingLight.time = propertyTypes.time || undefined;
parkingLight.parkingLight = propertyTypes.parkingLight || false;
- this.__defineGetter__("time", function () {
- return parkingLight.time;
- });
-
this.__defineGetter__("parkingLight", function () {
return parkingLight.parkingLight;
});
VehiclePropertyType.call(this, propertyTypes);
- hazardLight.time = propertyTypes.time || undefined;
hazardLight.hazardLight = propertyTypes.hazardLight || false;
- this.__defineGetter__("time", function () {
- return hazardLight.time;
- });
-
this.__defineGetter__("hazardLight", function () {
return hazardLight.hazardLight;
});
VehiclePropertyType.call(this, propertyTypes);
- abs.time = propertyTypes.time || undefined;
abs.antilockBrakingSystem = propertyTypes.antilockBrakingSystem || false;
- this.__defineGetter__("time", function () {
- return abs.time;
- });
-
this.__defineGetter__("antilockBrakingSystem", function () {
return abs.antilockBrakingSystem;
});
VehiclePropertyType.call(this, propertyTypes);
- tcs.time = propertyTypes.time || undefined;
tcs.tractionControlSystem = propertyTypes.tractionControlSystem || false;
- this.__defineGetter__("time", function () {
- return tcs.time;
- });
-
this.__defineGetter__("tractionControlSystem", function () {
return tcs.tractionControlSystem;
});
VehiclePropertyType.call(this, propertyTypes);
- vtl.time = propertyTypes.time || undefined;
vtl.vehicleTopSpeedLimit = propertyTypes.vehicleTopSpeedLimit || false;
- this.__defineGetter__("time", function () {
- return vtl.time;
- });
-
this.__defineGetter__("vehicleTopSpeedLimit", function () {
return vtl.vehicleTopSpeedLimit;
});
VehiclePropertyType.call(this, propertyTypes);
- airbagStatus.time = propertyTypes.time || undefined;
airbagStatus.airbagStatus = propertyTypes.airbagStatus || 0;
- this.__defineGetter__("time", function () {
- return airbagStatus.time;
- });
-
this.__defineGetter__("AIRBAGSTATUS_INACTIVE", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- doorStatus.time = propertyTypes.time || undefined;
doorStatus.doorStatus = propertyTypes.doorStatus || 0;
doorStatus.doorLockStatus = propertyTypes.doorLockStatus || false;
doorStatus.childLockStatus = propertyTypes.childLockStatus || false;
- this.__defineGetter__("time", function () {
- return doorStatus.time;
- });
-
this.__defineGetter__("DOORSTATUS_CLOSED", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- seatBeltStatus.time = propertyTypes.time || undefined;
seatBeltStatus.seatBeltStatus = propertyTypes.seatBeltStatus || false;
- this.__defineGetter__("time", function () {
- return seatBeltStatus.time;
- });
-
this.__defineGetter__("seatBeltStatus", function () {
return seatBeltStatus.seatBeltStatus;
});
VehiclePropertyType.call(this, propertyTypes);
- occupantStatus.time = propertyTypes.time || undefined;
occupantStatus.occupantStatus = propertyTypes.occupantStatus || 0;
- this.__defineGetter__("time", function () {
- return occupantStatus.time;
- });
-
this.__defineGetter__("OCCUPANTSTATUS_VACANT", function () {
return 0;
});
VehiclePropertyType.call(this, propertyTypes);
- obstacleDistance.time = propertyTypes.time || undefined;
obstacleDistance.obstacleDistance = propertyTypes.obstacleDistance || 0;
- this.__defineGetter__("time", function () {
- return obstacleDistance.time;
+ this.__defineGetter__("DISTANCESENSORLOCATION_LEFTFRONT", function () {
+ return 0;
+ });
+
+ this.__defineGetter__("DISTANCESENSORLOCATION_RIGHTFRONT", function () {
+ return 1;
+ });
+
+ this.__defineGetter__("DISTANCESENSORLOCATION_LEFTREAR", function () {
+ return 2;
+ });
+
+ this.__defineGetter__("DISTANCESENSORLOCATION_RIGHTREAR", function () {
+ return 3;
+ });
+
+ this.__defineGetter__("DISTANCESENSORLOCATION_LEFTBLINDSPOT", function () {
+ return 4;
+ });
+
+ this.__defineGetter__("DISTANCESENSORLOCATION_RIGHTBLINDSPOT", function () {
+ return 5;
});
this.__defineGetter__("obstacleDistance", function () {
VehiclePropertyType.call(this, propertyTypes);
- nightMode.time = propertyTypes.time || undefined;
nightMode.nightMode = propertyTypes.nightMode || false;
- this.__defineGetter__("time", function () {
- return nightMode.time;
- });
-
this.__defineGetter__("nightMode", function () {
return nightMode.nightMode;
});
VehiclePropertyType.call(this, propertyTypes);
- drivingMode.time = propertyTypes.time || undefined;
drivingMode.drivingMode = propertyTypes.drivingMode || 0;
- this.__defineGetter__("time", function () {
- return drivingMode.time;
- });
-
this.__defineGetter__("drivingMode", function () {
return drivingMode.drivingMode;
});
_vehicleGlobalVars.currentDataIndex++;
}
-function _formatHistory (historyData) {
+function _formatHistory (historyData, time, zone, source) {
var format = {}, property, name, item, value;
for (property in historyData) {
if (!format[name]) {
format[name] = {};
+ format[name].time = time;
+ format[name].zone = zone;
+ format[name].source = source;
}
value = historyData[property];
autoContainer = jQuery("#vehicle-container #vehicle-running-show *[id$='-set']"),
supportedContainer = jQuery("#vehicle-container #vehicle-supported-hide *[id$='-supported']:checked"),
supported = [], currentConfig, configuration = [], setting = [], autoRunning = [],
- history = {}, itemKey, format, delTime;
+ history = {}, itemKey, format, delTime, time, zone, source;
supportedContainer.each(function (index, item) {
supported.push(item.value);
delete _vehicleGlobalVars.history[delTime];
}
- format = _formatHistory(history);
+ time = _vehicleGlobalVars.timeCurrent;
+ source = "";
+ zone = 0;
+
+ format = _formatHistory(history, time, zone, source);
_vehicleGlobalVars.history[_vehicleGlobalVars.timeCurrent] = format;
event.trigger("vehicle-cache-refresh", [supported, format]);
function _switchAutoManual (isAuto) {
var autoContainer = jQuery("#vehicle-container #vehicle-running-show .vehicle-property-value-auto"),
manualContainer = jQuery("#vehicle-container #vehicle-running-show .vehicle-property-value-manual"),
- arrayContainer = jQuery("#vehicle-container #vehicle-running-show .vehicle-property-array");
+ arrayContainer = jQuery("#vehicle-container #vehicle-running-show .vehicle-property-array"),
+ autoBtnContainer = jQuery("#vehicle-container #vehicle-running-auto");
if (isAuto) {
+ autoBtnContainer.addClass("vehicle-property-supported");
+ autoBtnContainer.removeClass("vehicle-property-unsupported");
autoContainer.show();
manualContainer.hide();
arrayContainer.hide();
}
else {
+ autoBtnContainer.addClass("vehicle-property-unsupported");
+ autoBtnContainer.removeClass("vehicle-property-supported");
autoContainer.hide();
manualContainer.show();
arrayContainer.show();