michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_bluetooth_bluetoothhidmanager_h__ michael@0: #define mozilla_dom_bluetooth_bluetoothhidmanager_h__ michael@0: michael@0: #include "BluetoothCommon.h" michael@0: #include "BluetoothProfileController.h" michael@0: #include "BluetoothProfileManagerBase.h" michael@0: michael@0: BEGIN_BLUETOOTH_NAMESPACE michael@0: michael@0: class BluetoothHidManager : public BluetoothProfileManagerBase michael@0: { michael@0: public: michael@0: BT_DECL_PROFILE_MGR_BASE michael@0: virtual void GetName(nsACString& aName) michael@0: { michael@0: aName.AssignLiteral("HID"); michael@0: } michael@0: michael@0: static BluetoothHidManager* Get(); michael@0: virtual ~BluetoothHidManager(); michael@0: michael@0: // HID-specific functions michael@0: void HandleInputPropertyChanged(const BluetoothSignal& aSignal); michael@0: michael@0: private: michael@0: BluetoothHidManager(); michael@0: bool Init(); michael@0: void Cleanup(); michael@0: void HandleShutdown(); michael@0: michael@0: void NotifyStatusChanged(); michael@0: michael@0: // data member michael@0: bool mConnected; michael@0: nsString mDeviceAddress; michael@0: nsRefPtr mController; michael@0: }; michael@0: michael@0: END_BLUETOOTH_NAMESPACE michael@0: michael@0: #endif //#ifndef mozilla_dom_bluetooth_bluetoothhidmanager_h__