Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 12310048: Bluetooth: Add a "connectable" property to the BluetoothDevice. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 319b54990a6e686f266d3260f65e8b532b23d08e..ec963866642d0620fd90f55a215068e270eccf0e 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -62,7 +62,8 @@ class BluetoothDevice {
ERROR_AUTH_CANCELED,
ERROR_AUTH_REJECTED,
ERROR_AUTH_TIMEOUT,
- ERROR_UNSUPPORTED_DEVICE
+ ERROR_UNSUPPORTED_DEVICE,
+ ERROR_SDP_FAILED
};
// Interface for observing changes from bluetooth devices.
@@ -178,6 +179,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;
@@ -323,6 +328,10 @@ class BluetoothDevice {
// The Bluetooth address of the device.
std::string address_;
+ // Indicates whether the device normally accepts connections initiated from
+ // the adapter once paired.
+ bool connectable_;
keybuk 2013/02/21 21:08:58 nit: should go below the other bools, to match the
deymo 2013/02/22 23:09:09 Done.
+
// Tracked device state, updated by the adapter managing the lifecyle of
// the device.
bool visible_;

Powered by Google App Engine
This is Rietveld 408576698