interface Vehicle {
const unsigned short ZONE_None = 0;
- const unsigned short ZONE_Front = 1;
- const unsigned short ZONE_Middle = 0x10;
- const unsigned short ZONE_Right = 0x100;
- const unsigned short ZONE_Left = 0x1000;
- const unsigned short ZONE_Rear = 0x10000;
- const unsigned short ZONE_Center = 0x10000;
+ 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;
/**
* \brief returns supported object types
**/
any get(DOMString objectType, optional short zone);
+
+ /**
+ * \brief fetch the current value for 'objectType'
+ * \param objectType is the requested property to be retrieved.
+ * \param successCallback is called with the result of the call
+ * \param errorCallback is called if there is an error
+ * \param zone specify the zone in which this object type is in
+ **/
+ void getAsync(DOMString objectType, VehiclePropertyCallback successCallback, optional VehiclePropertyErrorCallback errorCb, optional short zone);
+
/** \brief subscribe to the given property and get callbacks when it changes
* \param objectType property to set
* \param successCallback callback will be called when the "objectType" changes
/**
* \brief set the given objectType to value
* \param objectType object type to set
- * \param value value to set, should contain zone information ie "zone" : 0
- * \param errorCallback callback if error has been called.
+ * \param value value to set, should contain zone information if there is a zone ie "zone" : 0
+ * \param errorCallback callback if error during set.
**/
- void set(DOMString objectType, VehiclePropertyType value, optional VehiclePropertyErrorCallback errorCallback);
+ void set(DOMString objectType, object value, optional VehiclePropertyErrorCallback errorCallback);
/**
* \brief get values for a given objectType within a certain past time period between 'startTime' and 'endTime'
attribute unsigned short drivingMode;
};
+
+