2012-05-23 21:02:23 -07:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
2012-08-20 20:21:24 -07:00
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
2012-05-23 21:02:23 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
|
|
|
|
|
|
|
interface nsIDOMDOMRequest;
|
|
|
|
interface nsIDOMBluetoothAdapter;
|
|
|
|
|
2012-11-07 10:12:41 -08:00
|
|
|
[scriptable, builtinclass, uuid(3300693f-ae91-4a3f-b887-bf502c6a97ee)]
|
2012-05-23 21:02:23 -07:00
|
|
|
interface nsIDOMBluetoothManager : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
readonly attribute bool enabled;
|
|
|
|
|
2012-07-17 20:41:54 -07:00
|
|
|
nsIDOMDOMRequest getDefaultAdapter();
|
2012-08-29 23:08:50 -07:00
|
|
|
|
2012-11-07 10:12:41 -08:00
|
|
|
bool isConnected(in unsigned short aProfile);
|
|
|
|
|
2012-08-30 21:32:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onenabled;
|
|
|
|
[implicit_jscontext] attribute jsval ondisabled;
|
2012-09-02 23:38:44 -07:00
|
|
|
[implicit_jscontext] attribute jsval onadapteradded;
|
2012-05-23 21:02:23 -07:00
|
|
|
};
|