\def-api-feature http://tizen.org/api/mediaserver
\brief Allows access to the mediaserver API
-
+module MediaServer
*/
-module MediaServer {
/**
* \brief Scans local network for MediaServers.
- * \arg MediaServerFoundServerCallback successCallback callback invoqued for each MediaServer discovered.
- * \arg MediaServerErrorCallback errorCallback
+ * \param successCallback callback invoqued for each MediaServer discovered.
+ * \param errorCallback
**/
scanNetwork(MediaServerFoundServerCallback successCallback, optional MediaServerErrorCallback errorCallback);
};
/**
* \brief Browses for media item under a given MediaContainer.
- * \arg DOMString containerId
- * \arg DOMString sortMode
- * \arg unsigned long count
- * \arg unsigned long offset
- * \arg MediaServerBrowseFindCallback successCallback
- * \arg MediaServerErrorCallback errorCallback
+ * \param containerId
+ * \param sortMode
+ * \param count
+ * \param offset
+ * \param successCallback
+ * \param errorCallback
**/
browse(DOMString containerId, DOMString sortMode, unsigned long count, unsigned long offset, MediaServerBrowseFindCallback successCallback, optional MediaServerErrorCallback errorCallback);
/**
* \brief Searches for media item under a given MediaContainer.
- * \arg DOMString containerId
- * \arg DOMString searchFilter
- * \arg DOMString sortMode
- * \arg unsigned long count
- * \arg unsigned long offset
- * \arg MediaServerBrowseFindCallback successCallback
- * \arg MediaServerErrorCallback errorCallback
+ * \param containerId
+ * \param searchFilter
+ * \param sortMode
+ * \param count
+ * \param offset
+ * \param successCallback
+ * \param errorCallback
**/
find(DOMString containerId, DOMString searchFilter, DOMString sortMode, unsigned long count, unsigned long offset, MediaServerBrowseFindCallback successCallback, optional MediaServerErrorCallback errorCallback);
};
callback MediaServerErrorCallback = void (MediaServerError error);
-};
attribute EventHandler onend;
};
- interface SpeechRecognitionError : Event {
enum ErrorCode {
"no-speech",
"aborted",
"language-not-supported"
};
+ interface SpeechRecognitionError : Event {
readonly attribute ErrorCode error;
readonly attribute DOMString message;
};
// A complete one-shot simple response
interface SpeechRecognitionResult {
readonly attribute unsigned long length;
- getter SpeechRecognitionAlternative item(in unsigned long index);
+ getter SpeechRecognitionAlternative item(unsigned long index);
readonly attribute boolean final;
};
// A collection of responses (used in continuous mode)
interface SpeechRecognitionResultList {
readonly attribute unsigned long length;
- getter SpeechRecognitionResult item(in unsigned long index);
+ getter SpeechRecognitionResult item(unsigned long index);
};
// A full response, which could be interim or final, part of a continuous response or not
[Constructor]
interface SpeechGrammarList {
readonly attribute unsigned long length;
- getter SpeechGrammar item(in unsigned long index);
- void addFromURI(in DOMString src,
- optional float weight);
- void addFromString(in DOMString string,
- optional float weight);
+ getter SpeechGrammar item(unsigned long index);
+ void addFromURI(DOMString src, optional float weight);
+ void addFromString(DOMString string, optional float weight);
};
Details.
\def-api-feature http://tizen.org/api/vehicle
-\brief Allows access to the vehicle API
-
+\brief Allows access to the vehicle API
*/
-module Vehicle {
-
partial interface Navigator {
attribute Vehicle vehicle;
};
const unsigned short ZONE_None = 0;
const unsigned short ZONE_Front = 1;
- const unsigned short ZONE_Middle = 1 << 1;
- const unsigned short ZONE_Right = 1 << 2;
- const unsigned short ZONE_Left = 1 << 3;
- const unsigned short ZONE_Rear = 1 << 4;
- const unsigned short ZONE_Center = 1 << 5;
+ 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;
/**
* \brief returns supported object types
/**
* \brief fetch the current value for 'objectType'.
- * \arg DOMString objectType is the requested property to be retrieved.
- * \arg optional short zone specify the zone in which this object type is in
- * \returns object representing the requested 'objectType'
+ * \param objectType is the requested property to be retrieved.
+ * \param zone specify the zone in which this object type is in
+ * \return object representing the requested 'objectType'
**/
any get(DOMString objectType, optional short zone);
/** \brief subscribe to the given property and get callbacks when it changes
- * \arg DOMString property property to set
- * \arg VehiclePropertyCallback successCallback callback will be called when the "objectType" changes
- * \arg VehiclePropertyErrorCallback errorCallback callback if error has been called.
+ * \param objectType property to set
+ * \param successCallback callback will be called when the "objectType" changes
+ * \param errorCallback callback if error has been called.
**/
subscribe(DOMString objectType, VehiclePropertyCallback successCallback, optional unsigned short zone, optional VehiclePropertyErrorCallback errorCallback);
/**
* \brief set the given objectType to value
- * \arg DOMString objectType object type to set
- * \arg VehiclePropertyType value value to set, should contain zone information ie "zone" : 0
- * \arg VehiclePropertyErrorCallback errorCallback callback if error has been called.
+ * \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.
**/
set(DOMString objectType, VehiclePropertyType value, optional VehiclePropertyErrorCallback errorCallback);
/**
* \brief get values for a given objectType within a certain past time period between 'startTime' and 'endTime'
- * \arg DOMString objectType object type to request
- * \arg zone in which the objectType is located or 0 if no zone.
- * \arg Date startTime, starting period of time.
- * \arg Date endTime, ending period of time.
- * \arg VehiclePropertyListCallback successCallback. Callback with the result of the method call
- * \arg VehiclePropertyErrorCallback errorCallback. Callback if an error has occurred.
+ * \param objectType object type to request
+ * \param zone in which the objectType is located or 0 if no zone.
+ * \param startTime, starting period of time.
+ * \param endTime, ending period of time.
+ * \param successCallback Callback with the result of the method call
+ * \param errorCallback Callback if an error has occurred.
**/
getHistory(DOMString objectType, unsigned short zone, Date startTime, Date endTime, VehiclePropertyListCallback successCallback, optional VehiclePropertyErrorCallback errorCallback);
};
[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_OFF = 0;
+ const unsigned short VEHICLEPOWERMODE_ACCESSORY1 = 1;
+ const unsigned short VEHICLEPOWERMODE_ACCESSORY2 = 2;
const unsigned short VEHICLEPOWERMODE_RUN = 3;
/** VehiclePowerMode
/** Interior
* \brief Must return the temperature of the interior of the vehicle in celcius.
**/
- attribute signed short interior;
+ attribute short interior;
/** Exterior
* \brief Must return the temperature of the exterior of the vehicle in celcius.
**/
- attribute signed short exterior;
+ attribute short exterior;
};
[NoInterfaceObject]
dictionary DefrostDictionary {
unsigned short window;
boolean defrost;
-}
+};
[NoInterfaceObject]
interface HVAC : VehiclePropertyType {
- const unsigned short AIRFLOWDIRECTION_FRONTPANEL = 0;
- const unsigned short AIRFLOWDIRECTION_FLOORDUCT= 1;
- const unsigned short AIRFLOWDIRECTION_FRONT = 0x02;
- const unsigned short AIRFLOWDIRECTION_DEFROSTER = 0x04;
+ const unsigned short AIRFLOWDIRECTION_FRONTPANEL = 0;
+ const unsigned short AIRFLOWDIRECTION_FLOORDUCT= 1;
+ const unsigned short AIRFLOWDIRECTION_FRONT = 0x02;
+ const unsigned short AIRFLOWDIRECTION_DEFROSTER = 0x04;
/** AirflowDirection
* \brief Must return airflow direction. See
/** AirRecirculation
* \brief Must return air recirculation on (true) / off (false).
**/
- readwrite attribute boolean airRecirculation;
+ attribute boolean airRecirculation;
/** Heater
* \brief Must return heater on (true) / off (false).
* \brief Must return window status for each window location. object returned is a
* dictionary { unsigned short windowlocation, unsigned short percentage opened }
**/
- readwrite attribute object WindowStatus;
+ attribute object WindowStatus;
};
[NoInterfaceObject]
/** Openness
* \brief Must return window status for sunroof openness percentage.
**/
- readwrite attribute unsigned short openness;
+ attribute unsigned short openness;
/** Tilt
* \brief Must return tilt status for sunroof percentage.
**/
- readwrite attribute unsigned short tilt;
+ attribute unsigned short tilt;
};
[NoInterfaceObject]
/** Openness
* \brief Must return window status for sunroof openness percentage.
**/
- readwrite attribute unsigned short openness;
+ attribute unsigned short openness;
};
[NoInterfaceObject]
attribute object obstacleDistance;
};
-};