Allows access to the vehicle API.
[NoInterfaceObject] interface VehicleManagerObject { readonly attribute Vehicle vehicle; };
Tizen implements VehicleManagerObject;
[NoInterfaceObject] interface Vehicle { const unsigned short ZONE_None = 0; const unsigned short ZONE_Front = 0x01; const unsigned short ZONE_Middle = 0x02; const unsigned short ZONE_Right = 0x04; const unsigned short ZONE_Left = 0x08; const unsigned short ZONE_Rear = 0x10; const unsigned short ZONE_Center = 0x20; DOMString[] supported(); any get(DOMString objectType, optional short zone); void getAsync(DOMString objectType, VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCallback, optional short zone); void subscribe(DOMString objectType, VehiclePropertyCallback successCallback, optional unsigned short zone, optional VehiclePropertyErrorCallback errorCallback); void set(DOMString objectType, object value, optional VehiclePropertyErrorCallback errorCallback); void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback); unsigned short[] listZones(DOMString objectType); };
DOMString[] supported();
Return value:
A vehicle property type array.any get(DOMString objectType, optional short zone);
Parameters:
Return value:
A vehicle property value object.void getAsync(DOMString objectType, VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCallback, optional short zone);
Parameters:
void subscribe(DOMString objectType, VehiclePropertyCallback successCallback, optional unsigned short zone, optional VehiclePropertyErrorCallback errorCallback);
Parameters:
void set(DOMString objectType, object value, optional VehiclePropertyErrorCallback errorCallback);
Parameters:
void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
Parameters:
unsigned short[] listZones(DOMString objectType);
Parameters:
Return value:
An array.[NoInterfaceObject] interface VehiclePropertyType : Event { attribute DOMTimeStamp time; attribute short zone; attribute DOMString source; };
[NoInterfaceObject] interface VehiclePropertyError { const unsigned short PERMISSION_DENIED = 1; const unsigned short PROPERTY_UNAVAILABLE = 2; const unsigned short TIMEOUT = 3; const unsigned short UNKNOWN = 10; attribute unsigned short code; attribute DOMString message; };
[NoInterfaceObject] interface VehicleSpeed : VehiclePropertyType { attribute unsigned long vehicleSpeed; };
[NoInterfaceObject] interface EngineSpeed : VehiclePropertyType { attribute unsigned long engineSpeed; };
[NoInterfaceObject] interface VehiclePowerMode : VehiclePropertyType { const unsigned short VEHICLEPOWERMODE_OFF = 0; const unsigned short VEHICLEPOWERMODE_ACCESSORY1 = 1; const unsigned short VEHICLEPOWERMODE_ACCESSORY2 = 2; const unsigned short VEHICLEPOWERMODE_RUN = 3; attribute octet vehiclePowerMode; };
[NoInterfaceObject] interface TripMeter : VehiclePropertyType { attribute unsigned long[] tripMeters; };
[NoInterfaceObject] interface Acceleration : VehiclePropertyType { attribute unsigned long x; attribute unsigned long y; attribute unsigned long z; };
[NoInterfaceObject] interface Transmission : VehiclePropertyType { const unsigned short TRANSMISSIONPOSITION_NEUTRAL = 0; const unsigned short TRANSMISSIONPOSITION_FIRST = 1; const unsigned short TRANSMISSIONPOSITION_SECOND = 2; const unsigned short TRANSMISSIONPOSITION_THIRD = 3; const unsigned short TRANSMISSIONPOSITION_FORTH = 4; const unsigned short TRANSMISSIONPOSITION_FIFTH = 5; const unsigned short TRANSMISSIONPOSITION_SIXTH = 6; const unsigned short TRANSMISSIONPOSITION_SEVENTH = 7; const unsigned short TRANSMISSIONPOSITION_EIGHTH = 8; const unsigned short TRANSMISSIONPOSITION_NINTH = 9; const unsigned short TRANSMISSIONPOSITION_TENTH = 10; const unsigned short TRANSMISSIONPOSITION_CVT = 64; const unsigned short TRANSMISSIONPOSITION_REVERSE = 128; const unsigned short TRANSMISSIONPOSITION_PARK = 255; const unsigned short TRANSMISSIONMODE_NORMAL = 0; const unsigned short TRANSMISSIONMODE_SPORT = 1; const unsigned short TRANSMISSIONMODE_ECONOMY = 2; const unsigned short TRANSMISSIONMODE_OEMCUSTOM1 = 3; const unsigned short TRANSMISSIONMODE_OEMCUSTOM2 = 4; attribute octet gearPosition; attribute octet mode; };
[NoInterfaceObject] interface CruiseControlStatus : VehiclePropertyType { attribute boolean activated; attribute unsigned short speed; };
[NoInterfaceObject] interface WheelBrake : VehiclePropertyType { attribute boolean engaged; };
[NoInterfaceObject] interface LightStatus : VehiclePropertyType { attribute boolean head; attribute boolean rightTurn; attribute boolean leftTurn; attribute boolean brake; attribute boolean fog; attribute boolean hazard; attribute boolean parking; attribute boolean highBeam; };
[NoInterfaceObject] interface InteriorLightStatus : VehiclePropertyType { attribute boolean passenger; attribute boolean driver; attribute boolean center; };
[NoInterfaceObject] interface Horn : VehiclePropertyType { attribute boolean on; };
[NoInterfaceObject] interface Fuel : VehiclePropertyType { attribute unsigned short level; attribute unsigned short range; attribute unsigned short instantConsumption; attribute unsigned short instantEconomy; attribute unsigned short averageEconomy; };
[NoInterfaceObject] interface EngineOil : VehiclePropertyType { attribute unsigned short remaining; attribute long temperature; attribute unsigned short pressure; };
[NoInterfaceObject] interface Location : VehiclePropertyType { attribute double latitude; attribute double longitude; attribute double altitude; attribute unsigned short direction; };
[NoInterfaceObject] interface ExteriorBrightness : VehiclePropertyType { attribute unsigned long exteriorBrightness; };
[NoInterfaceObject] interface Temperature : VehiclePropertyType { attribute short interior; attribute short exterior; };
[NoInterfaceObject] interface RainSensor : VehiclePropertyType { attribute unsigned short rainSensor; };
[NoInterfaceObject] interface WindshieldWiper : VehiclePropertyType { const unsigned short WIPERSPEED_OFF = 0; const unsigned short WIPERSPEED_SLOWEST = 1; const unsigned short WIPERSPEED_FASTEST = 5; const unsigned short WIPERSPEED_AUTO = 10; attribute unsigned short windshieldWiper; };
[NoInterfaceObject] interface HVAC : VehiclePropertyType { const unsigned short AIRFLOWDIRECTION_FRONTPANEL = 0; const unsigned short AIRFLOWDIRECTION_FLOORDUCT = 0x01; const unsigned short AIRFLOWDIRECTION_FRONT = 0x02; const unsigned short AIRFLOWDIRECTION_DEFROSTER = 0x04; attribute unsigned short airflowDirection; attribute unsigned short fanSpeed; attribute unsigned short targetTemperature; attribute boolean airConditioning; attribute boolean airRecirculation; attribute boolean heater; attribute boolean steeringWheelHeater; attribute boolean seatHeater; attribute boolean seatCooler; };
[NoInterfaceObject] interface WindowStatus : VehiclePropertyType { const unsigned short WINDOWLOCATION_DRIVER = 0; const unsigned short WINDOWLOCATION_PASSENGER = 1; const unsigned short WINDOWLOCATION_LEFTREAR = 2; const unsigned short WINDOWLOCATION_RIGHTREAR = 3; const unsigned short WINDOWLOCATION_REAR = 4; attribute unsigned short openness; attribute boolean defrost; };
[NoInterfaceObject] interface Sunroof : VehiclePropertyType { attribute unsigned short openness; attribute unsigned short tilt; };
[NoInterfaceObject] interface ConvertibleRoof : VehiclePropertyType { attribute unsigned short openness; };
[NoInterfaceObject] interface VehicleId : VehiclePropertyType { attribute DOMString WMI; attribute DOMString VIN; };
[NoInterfaceObject] interface Size : VehiclePropertyType { attribute unsigned long width; attribute unsigned long height; attribute unsigned long length; };
[NoInterfaceObject] interface FuelInfo : VehiclePropertyType { const unsigned short FUELTYPE_GASOLINE = 0; const unsigned short FUELTYPE_HIGH_OCTANE = 1; const unsigned short FUELTYPE_DIESEL = 2; const unsigned short FUELTYPE_ELECTRIC = 3; const unsigned short FUELTYPE_HYDROGEN = 4; const unsigned short REFUELPOSITION_LEFT = 0; const unsigned short REFUELPOSITION_RIGHT = 1; const unsigned short REFUELPOSITION_FRONT = 2; const unsigned short REFUELPOSITION_REAR = 3; attribute unsigned short type; attribute unsigned short refuelPosition; };
[NoInterfaceObject] interface VehicleType : VehiclePropertyType { const unsigned short VEHICLETYPE_SEDAN = 0; const unsigned short VEHICLETYPE_COUPE = 1; const unsigned short VEHICLETYPE_CABRIOLE = 2; const unsigned short VEHICLETYPE_ROADSTER = 3; const unsigned short VEHICLETYPE_SUV = 4; const unsigned short VEHICLETYPE_TRUCK = 5; attribute unsigned short type; };
[NoInterfaceObject] interface Doors : VehiclePropertyType { attribute unsigned short[] doorsPerRow; };
[NoInterfaceObject] interface TransmissionGearType : VehiclePropertyType { const unsigned short TRANSMISSIONGEARTYPE_AUTO = 0; const unsigned short TRANSMISSIONGEARTYPE_MANUAL = 1; const unsigned short TRANSMISSIONGEARTYPE_CV = 2; attribute unsigned short transmissionGearType; };
[NoInterfaceObject] interface WheelInformation : VehiclePropertyType { attribute unsigned short frontWheelRadius; attribute unsigned short rearWheelRadius; attribute unsigned long wheelTrack; attribute boolean ABS; };
[NoInterfaceObject] interface Odometer : VehiclePropertyType { attribute unsigned long odometer; };
[NoInterfaceObject] interface Fluid : VehiclePropertyType { attribute unsigned short transmission; attribute unsigned short brake; attribute unsigned short washer; };
[NoInterfaceObject] interface Battery : VehiclePropertyType { attribute double voltage; attribute double current; };
[NoInterfaceObject] interface TirePressure : VehiclePropertyType { attribute double leftFront; attribute double rightFront; attribute double leftRear; attribute double rightRear; };
[NoInterfaceObject] interface TireTemperature : VehiclePropertyType { attribute double leftFront; attribute double rightFront; attribute double leftRear; attribute double rightRear; };
[NoInterfaceObject] interface SecurityAlert : VehiclePropertyType { attribute boolean securityAlert; };
[NoInterfaceObject] interface ParkingBrake : VehiclePropertyType { attribute boolean parkingBrake; };
[NoInterfaceObject] interface ParkingLight : VehiclePropertyType { attribute boolean parkingLight; };
[NoInterfaceObject] interface HazardLight : VehiclePropertyType { attribute boolean hazardLight; };
[NoInterfaceObject] interface AntilockBrakingSystem : VehiclePropertyType { attribute boolean antilockBrakingSystem; };
[NoInterfaceObject] interface TractionControlSystem : VehiclePropertyType { attribute boolean tractionControlSystem; };
[NoInterfaceObject] interface VehicleTopSpeedLimit : VehiclePropertyType { attribute unsigned short vehicleTopSpeedLimit; };
[NoInterfaceObject] interface AirbagStatus : VehiclePropertyType { const unsigned short AIRBAGSTATUS_INACTIVE = 0; const unsigned short AIRBAGSTATUS_ACTIVE = 1; const unsigned short AIRBAGSTATUS_DEPLOYED = 2; attribute unsigned short airbagStatus; };
[NoInterfaceObject] interface DoorStatus : VehiclePropertyType { const unsigned short DOORSTATUS_CLOSED = 0; const unsigned short DOORSTATUS_OPEN = 1; const unsigned short DOORSTATUS_AJAR = 2; attribute unsigned short doorStatus; attribute boolean doorLockStatus; attribute boolean childLockStatus; };
[NoInterfaceObject] interface SeatBeltStatus : VehiclePropertyType { attribute boolean seatBeltStatus; };
[NoInterfaceObject] interface OccupantStatus : VehiclePropertyType { const unsigned short OCCUPANTSTATUS_VACANT = 0; const unsigned short OCCUPANTSTATUS_CHILD = 1; const unsigned short OCCUPANTSTATUS_ADULT = 2; attribute unsigned short occupantStatus; };
[NoInterfaceObject] interface ObstacleDistance : VehiclePropertyType { const unsigned short DISTANCESENSORLOCATION_LEFTFRONT = 0; const unsigned short DISTANCESENSORLOCATION_RIGHTFRONT = 1; const unsigned short DISTANCESENSORLOCATION_LEFTREAR = 2; const unsigned short DISTANCESENSORLOCATION_RIGHTREAR = 3; const unsigned short DISTANCESENSORLOCATION_LEFTBLINDSPOT = 4; const unsigned short DISTANCESENSORLOCATION_RIGHTBLINDSPOT = 5; attribute double obstacleDistance; };
[NoInterfaceObject] interface NightMode : VehiclePropertyType { attribute boolean nightMode; };
[NoInterfaceObject] interface DrivingMode : VehiclePropertyType { attribute unsigned short drivingMode; };
[Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyCallback { void onsuccess(VehiclePropertyType value); };
void onsuccess(VehiclePropertyType value);
Parameters:
[Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyErrorCallback { void onfailure(VehiclePropertyError error); };
void onfailure(VehiclePropertyError error);
Parameters:
[Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyListCallback { void onsuccess(VehiclePropertyType[] values); };
void onsuccess(VehiclePropertyType[] values);
Parameters:
[Callback=FunctionOnly, NoInterfaceObject] interface SupportedPropertiesCallback { void onsuccess(DOMString[] properties); };
void onsuccess(DOMString[] properties);
Parameters:
dictionary DefrostDictionary { unsigned short window; boolean defrost; };
module Vehicle { [NoInterfaceObject] interface VehicleManagerObject { readonly attribute Vehicle vehicle; }; Tizen implements VehicleManagerObject; [NoInterfaceObject] interface Vehicle { const unsigned short ZONE_None = 0; const unsigned short ZONE_Front = 0x01; const unsigned short ZONE_Middle = 0x02; const unsigned short ZONE_Right = 0x04; const unsigned short ZONE_Left = 0x08; const unsigned short ZONE_Rear = 0x10; const unsigned short ZONE_Center = 0x20; DOMString[] supported(); any get(DOMString objectType, optional short zone); void getAsync(DOMString objectType, VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCallback, optional short zone); void subscribe(DOMString objectType, VehiclePropertyCallback successCallback, optional unsigned short zone, optional VehiclePropertyErrorCallback errorCallback); void set(DOMString objectType, object value, optional VehiclePropertyErrorCallback errorCallback); void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback); unsigned short[] listZones(DOMString objectType); }; [NoInterfaceObject] interface VehiclePropertyType : Event { attribute DOMTimeStamp time; attribute short zone; attribute DOMString source; }; [NoInterfaceObject] interface VehiclePropertyError { const unsigned short PERMISSION_DENIED = 1; const unsigned short PROPERTY_UNAVAILABLE = 2; const unsigned short TIMEOUT = 3; const unsigned short UNKNOWN = 10; attribute unsigned short code; attribute DOMString message; }; [NoInterfaceObject] interface VehicleSpeed : VehiclePropertyType { attribute unsigned long vehicleSpeed; }; [NoInterfaceObject] interface EngineSpeed : VehiclePropertyType { attribute unsigned long engineSpeed; }; [NoInterfaceObject] interface VehiclePowerMode : VehiclePropertyType { const unsigned short VEHICLEPOWERMODE_OFF = 0; const unsigned short VEHICLEPOWERMODE_ACCESSORY1 = 1; const unsigned short VEHICLEPOWERMODE_ACCESSORY2 = 2; const unsigned short VEHICLEPOWERMODE_RUN = 3; attribute octet vehiclePowerMode; }; [NoInterfaceObject] interface TripMeter : VehiclePropertyType { attribute unsigned long[] tripMeters; }; [NoInterfaceObject] interface Acceleration : VehiclePropertyType { attribute unsigned long x; attribute unsigned long y; attribute unsigned long z; }; [NoInterfaceObject] interface Transmission : VehiclePropertyType { const unsigned short TRANSMISSIONPOSITION_NEUTRAL = 0; const unsigned short TRANSMISSIONPOSITION_FIRST = 1; const unsigned short TRANSMISSIONPOSITION_SECOND = 2; const unsigned short TRANSMISSIONPOSITION_THIRD = 3; const unsigned short TRANSMISSIONPOSITION_FORTH = 4; const unsigned short TRANSMISSIONPOSITION_FIFTH = 5; const unsigned short TRANSMISSIONPOSITION_SIXTH = 6; const unsigned short TRANSMISSIONPOSITION_SEVENTH = 7; const unsigned short TRANSMISSIONPOSITION_EIGHTH = 8; const unsigned short TRANSMISSIONPOSITION_NINTH = 9; const unsigned short TRANSMISSIONPOSITION_TENTH = 10; const unsigned short TRANSMISSIONPOSITION_CVT = 64; const unsigned short TRANSMISSIONPOSITION_REVERSE = 128; const unsigned short TRANSMISSIONPOSITION_PARK = 255; const unsigned short TRANSMISSIONMODE_NORMAL = 0; const unsigned short TRANSMISSIONMODE_SPORT = 1; const unsigned short TRANSMISSIONMODE_ECONOMY = 2; const unsigned short TRANSMISSIONMODE_OEMCUSTOM1 = 3; const unsigned short TRANSMISSIONMODE_OEMCUSTOM2 = 4; attribute octet gearPosition; attribute octet mode; }; [NoInterfaceObject] interface WheelBrake : VehiclePropertyType { attribute boolean engaged; }; [NoInterfaceObject] interface LightStatus : VehiclePropertyType { attribute boolean head; attribute boolean rightTurn; attribute boolean leftTurn; attribute boolean brake; attribute boolean fog; attribute boolean hazard; attribute boolean parking; attribute boolean highBeam; }; [NoInterfaceObject] interface InteriorLightStatus : VehiclePropertyType { attribute boolean passenger; attribute boolean driver; attribute boolean center; }; [NoInterfaceObject] interface Horn : VehiclePropertyType { attribute boolean on; }; [NoInterfaceObject] interface Fuel : VehiclePropertyType { attribute unsigned short level; attribute unsigned short range; attribute unsigned short instantConsumption; attribute unsigned short instantEconomy; attribute unsigned short averageEconomy; }; [NoInterfaceObject] interface EngineOil : VehiclePropertyType { attribute unsigned short remaining; attribute long temperature; attribute unsigned short pressure; }; [NoInterfaceObject] interface Location : VehiclePropertyType { attribute double latitude; attribute double longitude; attribute double altitude; attribute unsigned short direction; }; [NoInterfaceObject] interface ExteriorBrightness : VehiclePropertyType { attribute unsigned long exteriorBrightness; }; [NoInterfaceObject] interface Temperature : VehiclePropertyType { attribute short interior; attribute short exterior; }; [NoInterfaceObject] interface RainSensor : VehiclePropertyType { attribute unsigned short rainSensor; }; [NoInterfaceObject] interface WindshieldWiper : VehiclePropertyType { const unsigned short WIPERSPEED_OFF = 0; const unsigned short WIPERSPEED_SLOWEST = 1; const unsigned short WIPERSPEED_FASTEST = 5; const unsigned short WIPERSPEED_AUTO = 10; attribute unsigned short windshieldWiper; }; [NoInterfaceObject] interface HVAC : VehiclePropertyType { const unsigned short AIRFLOWDIRECTION_FRONTPANEL = 0; const unsigned short AIRFLOWDIRECTION_FLOORDUCT = 0x01; const unsigned short AIRFLOWDIRECTION_FRONT = 0x02; const unsigned short AIRFLOWDIRECTION_DEFROSTER = 0x04; attribute unsigned short airflowDirection; attribute unsigned short fanSpeed; attribute unsigned short targetTemperature; attribute boolean airConditioning; attribute boolean airRecirculation; attribute boolean heater; attribute boolean steeringWheelHeater; attribute boolean seatHeater; attribute boolean seatCooler; }; [NoInterfaceObject] interface WindowStatus : VehiclePropertyType { const unsigned short WINDOWLOCATION_DRIVER = 0; const unsigned short WINDOWLOCATION_PASSENGER = 1; const unsigned short WINDOWLOCATION_LEFTREAR = 2; const unsigned short WINDOWLOCATION_RIGHTREAR = 3; const unsigned short WINDOWLOCATION_REAR = 4; attribute unsigned short openness; attribute boolean defrost; }; [NoInterfaceObject] interface Sunroof : VehiclePropertyType { attribute unsigned short openness; attribute unsigned short tilt; }; [NoInterfaceObject] interface ConvertibleRoof : VehiclePropertyType { attribute unsigned short openness; }; [NoInterfaceObject] interface VehicleId : VehiclePropertyType { attribute DOMString WMI; attribute DOMString VIN; }; [NoInterfaceObject] interface Size : VehiclePropertyType { attribute unsigned long width; attribute unsigned long height; attribute unsigned long length; }; [NoInterfaceObject] interface FuelInfo : VehiclePropertyType { const unsigned short FUELTYPE_GASOLINE = 0; const unsigned short FUELTYPE_HIGH_OCTANE = 1; const unsigned short FUELTYPE_DIESEL = 2; const unsigned short FUELTYPE_ELECTRIC = 3; const unsigned short FUELTYPE_HYDROGEN = 4; const unsigned short REFUELPOSITION_LEFT = 0; const unsigned short REFUELPOSITION_RIGHT = 1; const unsigned short REFUELPOSITION_FRONT = 2; const unsigned short REFUELPOSITION_REAR = 3; attribute unsigned short type; attribute unsigned short refuelPosition; }; [NoInterfaceObject] interface VehicleType : VehiclePropertyType { const unsigned short VEHICLETYPE_SEDAN = 0; const unsigned short VEHICLETYPE_COUPE = 1; const unsigned short VEHICLETYPE_CABRIOLE = 2; const unsigned short VEHICLETYPE_ROADSTER = 3; const unsigned short VEHICLETYPE_SUV = 4; const unsigned short VEHICLETYPE_TRUCK = 5; attribute unsigned short type; }; [NoInterfaceObject] interface Doors : VehiclePropertyType { attribute unsigned short[] doorsPerRow; }; [NoInterfaceObject] interface TransmissionGearType : VehiclePropertyType { const unsigned short TRANSMISSIONGEARTYPE_AUTO = 0; const unsigned short TRANSMISSIONGEARTYPE_MANUAL = 1; const unsigned short TRANSMISSIONGEARTYPE_CV = 2; attribute unsigned short transmissionGearType; }; [NoInterfaceObject] interface WheelInformation : VehiclePropertyType { attribute unsigned short frontWheelRadius; attribute unsigned short rearWheelRadius; attribute unsigned long wheelTrack; attribute boolean ABS; }; [NoInterfaceObject] interface Odometer : VehiclePropertyType { attribute unsigned long odometer; }; [NoInterfaceObject] interface Fluid : VehiclePropertyType { attribute unsigned short transmission; attribute unsigned short brake; attribute unsigned short washer; }; [NoInterfaceObject] interface Battery : VehiclePropertyType { attribute double voltage; attribute double current; }; [NoInterfaceObject] interface TirePressure : VehiclePropertyType { attribute double leftFront; attribute double rightFront; attribute double leftRear; attribute double rightRear; }; [NoInterfaceObject] interface TireTemperature : VehiclePropertyType { attribute double leftFront; attribute double rightFront; attribute double leftRear; attribute double rightRear; }; [NoInterfaceObject] interface SecurityAlert : VehiclePropertyType { attribute boolean securityAlert; }; [NoInterfaceObject] interface ParkingBrake : VehiclePropertyType { attribute boolean parkingBrake; }; [NoInterfaceObject] interface ParkingLight : VehiclePropertyType { attribute boolean parkingLight; }; [NoInterfaceObject] interface HazardLight : VehiclePropertyType { attribute boolean hazardLight; }; [NoInterfaceObject] interface AntilockBrakingSystem : VehiclePropertyType { attribute boolean antilockBrakingSystem; }; [NoInterfaceObject] interface TractionControlSystem : VehiclePropertyType { attribute boolean tractionControlSystem; }; [NoInterfaceObject] interface VehicleTopSpeedLimit : VehiclePropertyType { attribute unsigned short vehicleTopSpeedLimit; }; [NoInterfaceObject] interface AirbagStatus : VehiclePropertyType { const unsigned short AIRBAGSTATUS_INACTIVE = 0; const unsigned short AIRBAGSTATUS_ACTIVE = 1; const unsigned short AIRBAGSTATUS_DEPLOYED = 2; attribute unsigned short airbagStatus; }; [NoInterfaceObject] interface DoorStatus : VehiclePropertyType { const unsigned short DOORSTATUS_CLOSED = 0; const unsigned short DOORSTATUS_OPEN = 1; const unsigned short DOORSTATUS_AJAR = 2; attribute unsigned short doorStatus; attribute boolean doorLockStatus; attribute boolean childLockStatus; }; [NoInterfaceObject] interface SeatBeltStatus : VehiclePropertyType { attribute boolean seatBeltStatus; }; [NoInterfaceObject] interface OccupantStatus : VehiclePropertyType { const unsigned short OCCUPANTSTATUS_VACANT = 0; const unsigned short OCCUPANTSTATUS_CHILD = 1; const unsigned short OCCUPANTSTATUS_ADULT = 2; attribute unsigned short occupantStatus; }; [NoInterfaceObject] interface ObstacleDistance : VehiclePropertyType { const unsigned short DISTANCESENSORLOCATION_LEFTFRONT = 0; const unsigned short DISTANCESENSORLOCATION_RIGHTFRONT = 1; const unsigned short DISTANCESENSORLOCATION_LEFTREAR = 2; const unsigned short DISTANCESENSORLOCATION_RIGHTREAR = 3; const unsigned short DISTANCESENSORLOCATION_LEFTBLINDSPOT = 4; const unsigned short DISTANCESENSORLOCATION_RIGHTBLINDSPOT = 5; attribute double obstacleDistance; }; [NoInterfaceObject] interface NightMode : VehiclePropertyType { attribute boolean nightMode; }; [NoInterfaceObject] interface DrivingMode : VehiclePropertyType { attribute unsigned short drivingMode; }; [Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyCallback { void onsuccess(VehiclePropertyType value); }; [Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyErrorCallback { void onfailure(VehiclePropertyError error); }; [Callback=FunctionOnly, NoInterfaceObject] interface VehiclePropertyListCallback { void onsuccess(VehiclePropertyType[] values); }; [Callback=FunctionOnly, NoInterfaceObject] interface SupportedPropertiesCallback { void onsuccess(DOMString[] properties); }; dictionary DefrostDictionary { unsigned short window; boolean defrost; }; };