2012-07-17 20:41:54 -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-07-17 20:41:54 -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"
|
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[scriptable, builtinclass, uuid(4a679fc6-572a-4ddc-8e93-cfbddb9f2d6a)]
|
2012-07-17 20:41:54 -07:00
|
|
|
interface nsIDOMBluetoothDevice : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
readonly attribute DOMString address;
|
|
|
|
readonly attribute DOMString name;
|
2012-08-29 20:15:35 -07:00
|
|
|
readonly attribute DOMString icon;
|
2012-07-17 20:41:54 -07:00
|
|
|
[binaryname(DeviceClass)] readonly attribute unsigned long class;
|
2012-07-31 21:53:04 -07:00
|
|
|
[implicit_jscontext] readonly attribute jsval uuids;
|
2012-09-05 20:06:20 -07:00
|
|
|
[implicit_jscontext] readonly attribute jsval services;
|
2012-07-17 20:41:54 -07:00
|
|
|
readonly attribute bool connected;
|
|
|
|
readonly attribute bool paired;
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onpropertychanged;
|
|
|
|
[implicit_jscontext] attribute jsval onconnected;
|
|
|
|
[implicit_jscontext] attribute jsval ondisconnected;
|
2012-07-17 20:41:54 -07:00
|
|
|
};
|