| Index: device/bluetooth/bluetooth_device.h
|
| diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
|
| index 319b54990a6e686f266d3260f65e8b532b23d08e..e38519145f87547067560f98d46336d8e1e805d0 100644
|
| --- a/device/bluetooth/bluetooth_device.h
|
| +++ b/device/bluetooth/bluetooth_device.h
|
| @@ -178,6 +178,10 @@ class BluetoothDevice {
|
| // and at least one service available for use.
|
| virtual bool IsConnected() const;
|
|
|
| + // Indicates whether the bonded device accepts connections initiated from the
|
| + // adapter. This value is undefined for unbonded devices.
|
| + virtual bool IsConnectable() const;
|
| +
|
| // Returns the services (as UUID strings) that this device provides.
|
| typedef std::vector<std::string> ServiceList;
|
| virtual const ServiceList& GetServices() const = 0;
|
| @@ -329,6 +333,10 @@ class BluetoothDevice {
|
| bool bonded_;
|
| bool connected_;
|
|
|
| + // Indicates whether the device normally accepts connections initiated from
|
| + // the adapter once paired.
|
| + bool connectable_;
|
| +
|
| private:
|
| // Returns a localized string containing the device's bluetooth address and
|
| // a device type for display when |name_| is empty.
|
|
|