Update vehicle widl file 83/13183/1
authorziv.chang <ziv.chang@intel.com>
Fri, 29 Nov 2013 04:01:10 +0000 (12:01 +0800)
committerziv.chang <ziv.chang@intel.com>
Fri, 29 Nov 2013 04:04:02 +0000 (12:04 +0800)
update tizen.widlprocxml due to latest vehicle api

Change-Id: I8f0c7e59ead4209308094b08dd1615f4b3f08f74
Signed-off-by: ziv.chang <ziv.chang@intel.com>
package/changelog
package/pkginfo.manifest
widlprocxmls/tizen.widlprocxml

index 236daee..b08dcc0 100644 (file)
@@ -1,3 +1,7 @@
+* 3.0.3
+- update vehicle api widl file
+== ziv.chang <ziv.chang@intel.com> 2013-11-29
+
 * 3.0.2
 - add missing files
 == ziv.chang <ziv.chang@intel.com> 2013-11-19
index f8080b8..6f792dc 100644 (file)
@@ -1,4 +1,4 @@
-Version:3.0.2
+Version:3.0.3
 Maintainer: Ziv Chang<ziv.chang@intel.com>
 
 Package:ivi-3.0-web-add-ons
index 0705493..6dbf55d 100755 (executable)
@@ -3,9 +3,12 @@
 <Definitions>
 <Module name="Vehicle" id="::Vehicle">
   <webidl> module Vehicle {
-partial interface Navigator   { 
-         attribute <ref>Vehicle</ref> vehicle;
+[NoInterfaceObject]
+interface VehicleManagerObject {
+    readonly attribute <ref>Vehicle</ref> vehicle;
 };
+<ref>Tizen</ref> implements <ref>VehicleManagerObject</ref>;
+
 
 [NoInterfaceObject]
 interface VehiclePropertyType: <ref>Event</ref> { 
@@ -51,11 +54,13 @@ interface Vehicle  {
         any get(DOMString objectType, optional short zone);
 
 
-        <ref>subscribe</ref>(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        void subscribe(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+
+        void set(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
 
-        <ref>set</ref>(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
 
-        <ref>getHistory</ref>(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        sequence&lt;unsigned short> listZones(DOMString objectType);
 };
 
 [NoInterfaceObject]
@@ -533,9 +538,10 @@ interface ObstacleDistance : <ref>VehiclePropertyType</ref>  {
          attribute object obstacleDistance;
 };
 };</webidl>
-  <Interface name="Navigator" partial="partial" id="::Navigator">
-    <webidl>partial interface Navigator   { 
-         attribute <ref>Vehicle</ref> vehicle;
+  <Interface name="VehicleManagerObject" id="::VehicleManagerObject">
+    <webidl>[NoInterfaceObject]
+interface VehicleManagerObject {
+    readonly attribute <ref>Vehicle</ref> vehicle;
 };</webidl>
     <descriptive>
        <description>
@@ -556,11 +562,19 @@ Details.
           </descriptive>
         </def-api-feature>
     </descriptive>
-    <Attribute name="vehicle" id="::Navigator::vehicle">
-      <webidl>         attribute <ref>Vehicle</ref> vehicle;</webidl>
+    <ExtendedAttributeList>
+      <ExtendedAttribute name="NoInterfaceObject">
+        <webidl>NoInterfaceObject</webidl>
+      </ExtendedAttribute>
+    </ExtendedAttributeList>
+    <Attribute readonly="readonly" name="vehicle" id="::VehicleManagerObject::vehicle">
+      <webidl>    readonly attribute <ref>Vehicle</ref> vehicle;</webidl>
       <Type name="Vehicle"/>
     </Attribute>
   </Interface>
+  <Implements name1="Tizen" name2="VehicleManagerObject">
+    <webidl><ref>Tizen</ref> implements <ref>VehicleManagerObject</ref>;</webidl>
+  </Implements>
   <Interface name="VehiclePropertyType" id="::VehiclePropertyType">
     <webidl>[NoInterfaceObject]
 interface VehiclePropertyType: <ref>Event</ref> { 
@@ -714,11 +728,13 @@ interface Vehicle  {
         any get(DOMString objectType, optional short zone);
 
 
-        <ref>subscribe</ref>(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        void subscribe(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
 
-        <ref>set</ref>(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        void set(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
 
-        <ref>getHistory</ref>(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+        void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);
+
+        sequence&lt;unsigned short> listZones(DOMString objectType);
 };</webidl>
     <ExtendedAttributeList>
       <ExtendedAttribute name="NoInterfaceObject">
@@ -798,14 +814,14 @@ interface Vehicle  {
         </Argument>
       </ArgumentList>
     </Operation>
-    <Operation>
-      <webidl>        <ref>subscribe</ref>(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
+    <Operation name="subscribe" id="::Vehicle::subscribe">
+      <webidl>        void subscribe(DOMString objectType, <ref>VehiclePropertyCallback</ref> successCallback, optional unsigned short zone, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
       <descriptive>
           <brief>
  subscribe to the given property and get callbacks when it changes
           </brief>
       </descriptive>
-      <Type name="subscribe"/>
+      <Type type="void"/>
       <ArgumentList>
         <Argument name="objectType">
           <descriptive>
@@ -836,14 +852,14 @@ interface Vehicle  {
         </Argument>
       </ArgumentList>
     </Operation>
-    <Operation>
-      <webidl>        <ref>set</ref>(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
+    <Operation name="set" id="::Vehicle::set">
+      <webidl>        void set(DOMString objectType, <ref>VehiclePropertyType</ref> value, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
       <descriptive>
           <brief>
  set the given objectType to value
           </brief>
       </descriptive>
-      <Type name="set"/>
+      <Type type="void"/>
       <ArgumentList>
         <Argument name="objectType">
           <descriptive>
@@ -871,14 +887,14 @@ interface Vehicle  {
         </Argument>
       </ArgumentList>
     </Operation>
-    <Operation>
-      <webidl>        <ref>getHistory</ref>(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
+    <Operation name="getHistory" id="::Vehicle::getHistory">
+      <webidl>        void getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, <ref>VehiclePropertyListCallback</ref> successCallback, optional <ref>VehiclePropertyErrorCallback</ref> errorCallback);</webidl>
       <descriptive>
           <brief>
  get values for a given objectType within a certain past time period between 'startTime' and 'endTime'
           </brief>
       </descriptive>
-      <Type name="getHistory"/>
+      <Type type="void"/>
       <ArgumentList>
         <Argument name="objectType">
           <descriptive>
@@ -930,6 +946,17 @@ interface Vehicle  {
         </Argument>
       </ArgumentList>
     </Operation>
+    <Operation name="listZones" id="::Vehicle::listZones">
+      <webidl>        sequence&lt;unsigned short> listZones(DOMString objectType);</webidl>
+      <Type type="sequence">
+        <Type type="unsigned short"/>
+      </Type>
+      <ArgumentList>
+        <Argument name="objectType">
+          <Type type="DOMString"/>
+        </Argument>
+      </ArgumentList>
+    </Operation>
   </Interface>
   <Interface name="VehicleSpeed" id="::VehicleSpeed">
     <webidl>[NoInterfaceObject]