gecko/dom/bluetooth/BluetoothDevice.h

49 lines
1.1 KiB
C++

/* 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/. */
#ifndef mozilla_dom_bluetooth_bluetoothdevice_h__
#define mozilla_dom_bluetooth_bluetoothdevice_h__
#include "BluetoothCommon.h"
#include "nsDOMEventTargetHelper.h"
#include "nsIDOMBluetoothDevice.h"
#include "nsString.h"
BEGIN_BLUETOOTH_NAMESPACE
class BluetoothDevice : public nsDOMEventTargetHelper
, public nsIDOMBluetoothDevice
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMBLUETOOTHDEVICE
NS_FORWARD_NSIDOMEVENTTARGET(nsDOMEventTargetHelper::)
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(BluetoothDevice,
nsDOMEventTargetHelper)
BluetoothDevice();
protected:
nsString mAdapter;
nsString mAddress;
PRUint32 mClass;
bool mConnected;
bool mLegacyPairing;
nsString mName;
bool mPaired;
nsTArray<nsString> mUuids;
bool mTrusted;
nsString mAlias;
NS_DECL_EVENT_HANDLER(propertychanged)
NS_DECL_EVENT_HANDLER(disconnectrequested)
};
END_BLUETOOTH_NAMESPACE
#endif