OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 uint16_t GetVendorID() const override; | 47 uint16_t GetVendorID() const override; |
48 uint16_t GetProductID() const override; | 48 uint16_t GetProductID() const override; |
49 uint16_t GetDeviceID() const override; | 49 uint16_t GetDeviceID() const override; |
50 uint16_t GetAppearance() const override; | 50 uint16_t GetAppearance() const override; |
51 bool IsPaired() const override; | 51 bool IsPaired() const override; |
52 bool IsConnected() const override; | 52 bool IsConnected() const override; |
53 bool IsGattConnected() const override; | 53 bool IsGattConnected() const override; |
54 bool IsConnectable() const override; | 54 bool IsConnectable() const override; |
55 bool IsConnecting() const override; | 55 bool IsConnecting() const override; |
56 UUIDList GetUUIDs() const override; | 56 UUIDList GetUUIDs() const override; |
57 int16_t GetInquiryRSSI() const override; | 57 int8_t GetInquiryRSSI() const override; |
58 int16_t GetInquiryTxPower() const override; | 58 int8_t GetInquiryTxPower() const override; |
59 bool ExpectingPinCode() const override; | 59 bool ExpectingPinCode() const override; |
60 bool ExpectingPasskey() const override; | 60 bool ExpectingPasskey() const override; |
61 bool ExpectingConfirmation() const override; | 61 bool ExpectingConfirmation() const override; |
62 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 62 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
63 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, | 63 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, |
64 const base::Closure& callback, | 64 const base::Closure& callback, |
65 const ConnectErrorCallback& error_callback) override; | 65 const ConnectErrorCallback& error_callback) override; |
66 void SetPinCode(const std::string& pincode) override; | 66 void SetPinCode(const std::string& pincode) override; |
67 void SetPasskey(uint32_t passkey) override; | 67 void SetPasskey(uint32_t passkey) override; |
68 void ConfirmPairing() override; | 68 void ConfirmPairing() override; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Note: This should remain the last member so it'll be destroyed and | 212 // Note: This should remain the last member so it'll be destroyed and |
213 // invalidate its weak pointers before any other members are destroyed. | 213 // invalidate its weak pointers before any other members are destroyed. |
214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; | 214 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; |
215 | 215 |
216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); | 216 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); |
217 }; | 217 }; |
218 | 218 |
219 } // namespace bluez | 219 } // namespace bluez |
220 | 220 |
221 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ | 221 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ |
OLD | NEW |