1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_bluetooth_bluetoothhidmanager_h__
8 #define mozilla_dom_bluetooth_bluetoothhidmanager_h__
10 #include "BluetoothCommon.h"
11 #include "BluetoothProfileController.h"
12 #include "BluetoothProfileManagerBase.h"
14 BEGIN_BLUETOOTH_NAMESPACE
16 class BluetoothHidManager
: public BluetoothProfileManagerBase
19 BT_DECL_PROFILE_MGR_BASE
20 virtual void GetName(nsACString
& aName
)
22 aName
.AssignLiteral("HID");
25 static BluetoothHidManager
* Get();
26 virtual ~BluetoothHidManager();
28 // HID-specific functions
29 void HandleInputPropertyChanged(const BluetoothSignal
& aSignal
);
32 BluetoothHidManager();
35 void HandleShutdown();
37 void NotifyStatusChanged();
41 nsString mDeviceAddress
;
42 nsRefPtr
<BluetoothProfileController
> mController
;
45 END_BLUETOOTH_NAMESPACE
47 #endif //#ifndef mozilla_dom_bluetooth_bluetoothhidmanager_h__