added tizen engineer mode to system
[profile/ivi/wrt-plugins-ivi.git] / src / Vehicle / Vehicle.idl
index ba4a229..5657799 100644 (file)
@@ -58,12 +58,12 @@ callback SupportedPropertiesCallback = void (sequence<DOMString> properties);
 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
@@ -78,6 +78,16 @@ interface Vehicle  {
         **/
        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
@@ -89,10 +99,10 @@ interface Vehicle  {
        /**
         *  \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'
@@ -880,3 +890,5 @@ interface DrivingMode : VehiclePropertyType {
        attribute unsigned short drivingMode;
 };
 
+
+