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

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: niiiiiiiiiiits 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698