OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BLUETOOTH_DEVICE_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // connected to any application or service. If the device is not paired, it | 257 // connected to any application or service. If the device is not paired, it |
258 // could be still connected to the adapter for other reason, for example, to | 258 // could be still connected to the adapter for other reason, for example, to |
259 // request the adapter's SDP records. The same holds for paired devices, since | 259 // request the adapter's SDP records. The same holds for paired devices, since |
260 // they could be connected to the adapter but not to an application. | 260 // they could be connected to the adapter but not to an application. |
261 virtual bool IsConnected() const = 0; | 261 virtual bool IsConnected() const = 0; |
262 | 262 |
263 // Indicates whether an active GATT connection exists to the device. | 263 // Indicates whether an active GATT connection exists to the device. |
264 virtual bool IsGattConnected() const = 0; | 264 virtual bool IsGattConnected() const = 0; |
265 | 265 |
266 // Indicates whether the paired device accepts connections initiated from the | 266 // Indicates whether the paired device accepts connections initiated from the |
267 // adapter. This value is undefined for unpaired devices. | 267 // adapter. This value is undefined for unpaired devices. Only available for |
| 268 // Chrome OS. |
268 virtual bool IsConnectable() const = 0; | 269 virtual bool IsConnectable() const = 0; |
269 | 270 |
270 // Indicates whether there is a call to Connect() ongoing. For this attribute, | 271 // Indicates whether there is a call to Connect() ongoing. For this attribute, |
271 // we consider a call is ongoing if none of the callbacks passed to Connect() | 272 // we consider a call is ongoing if none of the callbacks passed to Connect() |
272 // were called after the corresponding call to Connect(). | 273 // were called after the corresponding call to Connect(). |
273 virtual bool IsConnecting() const = 0; | 274 virtual bool IsConnecting() const = 0; |
274 | 275 |
275 // Returns the set of UUIDs that this device supports. | 276 // Returns the set of UUIDs that this device supports. |
276 // * For classic Bluetooth devices this data is collected from both the EIR | 277 // * For classic Bluetooth devices this data is collected from both the EIR |
277 // data and SDP tables. | 278 // data and SDP tables. |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 // Returns a localized string containing the device's bluetooth address and | 667 // Returns a localized string containing the device's bluetooth address and |
667 // a device type for display when |name_| is empty. | 668 // a device type for display when |name_| is empty. |
668 base::string16 GetAddressWithLocalizedDeviceTypeName() const; | 669 base::string16 GetAddressWithLocalizedDeviceTypeName() const; |
669 | 670 |
670 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); | 671 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); |
671 }; | 672 }; |
672 | 673 |
673 } // namespace device | 674 } // namespace device |
674 | 675 |
675 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 676 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
OLD | NEW |