2012-05-24 04:02:23 +00:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
2012-08-21 03:21:24 +00:00
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
2012-05-24 04:02:23 +00: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;
|
|
|
|
|
2013-03-30 09:45:37 +00:00
|
|
|
[scriptable, builtinclass, uuid(303a262a-1dd1-486d-a108-d8c582e86765)]
|
2012-05-24 04:02:23 +00:00
|
|
|
interface nsIDOMBluetoothManager : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
readonly attribute bool enabled;
|
|
|
|
|
2012-07-18 03:41:54 +00:00
|
|
|
nsIDOMDOMRequest getDefaultAdapter();
|
2012-08-30 06:08:50 +00:00
|
|
|
|
2012-11-07 18:12:41 +00:00
|
|
|
bool isConnected(in unsigned short aProfile);
|
|
|
|
|
2012-08-31 04:32:16 +00:00
|
|
|
[implicit_jscontext] attribute jsval onenabled;
|
|
|
|
[implicit_jscontext] attribute jsval ondisabled;
|
2012-09-03 06:38:44 +00:00
|
|
|
[implicit_jscontext] attribute jsval onadapteradded;
|
2012-05-24 04:02:23 +00:00
|
|
|
};
|