Confirmed users
149
edits
No edit summary |
(Modified Adapter and Device interface) |
||
| Line 21: | Line 21: | ||
interface nsIDOMBluetoothAdapter : nsIDOMEventTarget | interface nsIDOMBluetoothAdapter : nsIDOMEventTarget | ||
{ | { | ||
readonly attribute DOMString address; | readonly attribute DOMString address; | ||
readonly attribute unsigned long class; | readonly attribute unsigned long class; | ||
readonly attribute bool discovering; | |||
readonly attribute bool enabled; | |||
attribute bool discoverable; | |||
attribute unsigned long discoverabletimeout; | |||
attribute DOMString name; | attribute DOMString name; | ||
nsIDOMDOMRequest setEnabled(bool enabled); | |||
bool startDiscovery(); | |||
void stopDiscovery(); | |||
nsIDOMBluetoothDevice getDevice(DOMString address); | |||
bool connect(in nsIDOMBluetoothDevice device); | |||
void | void disconnect(in nsIDOMBluetoothDevice device); | ||
attribute nsIDOMEventListener ondevicefound; | attribute nsIDOMEventListener ondevicefound; | ||
attribute nsIDOMEventListener ondevicedisappeared; | attribute nsIDOMEventListener ondevicedisappeared; | ||
attribute nsIDOMEventListener | attribute nsIDOMEventListener ondeviceconnected; | ||
attribute nsIDOMEventListener | attribute nsIDOMEventListener ondevicedisconnected; | ||
}; | }; | ||
===== Device ===== | ===== Device ===== | ||
interface nsIDOMBluetoothDevice : nsISupports | |||
{ | |||
readonly attribute DOMString address; | |||
readonly attribute unsigned long class; | |||
readonly attribute bool connected; | |||
readonly attribute DOMString name; | |||
readonly attribute jsval serviceUuids; | |||
}; | |||
==== DBus Usage and Licensing ==== | ==== DBus Usage and Licensing ==== | ||