WebAPI/WebBluetooth: Difference between revisions

Jump to navigation Jump to search
Modified Adapter and Device interface
No edit summary
(Modified Adapter and Device interface)
Line 21: Line 21:
   interface nsIDOMBluetoothAdapter : nsIDOMEventTarget
   interface nsIDOMBluetoothAdapter : nsIDOMEventTarget
   {
   {
    attribute boolean powered;
    attribute boolean discoverable;
     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;
     attribute boolean pairable;
 
     attribute unsigned long pairabletimeout;
     nsIDOMDOMRequest setEnabled(bool enabled);
     attribute unsigned long discoverabletimeout;
     bool startDiscovery();
     readonly attribute boolean discovering;
     void stopDiscovery();  
      
     nsIDOMBluetoothDevice getDevice(DOMString address);
    void startDiscovery();
     bool connect(in nsIDOMBluetoothDevice device);
     void stopDiscovery();
     void disconnect(in nsIDOMBluetoothDevice device);
     
 
     attribute nsIDOMEventListener ondevicefound;
     attribute nsIDOMEventListener ondevicefound;
    attribute nsIDOMEventListener onpropertychanged;
     attribute nsIDOMEventListener ondevicedisappeared;
     attribute nsIDOMEventListener ondevicedisappeared;
     attribute nsIDOMEventListener ondevicecreated;
     attribute nsIDOMEventListener ondeviceconnected;
     attribute nsIDOMEventListener ondeviceremoved;
     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 ====
Confirmed users
149

edits

Navigation menu