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

Unified Diff: chromeos/dbus/bluetooth_device_client.h

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: chromeos/dbus/bluetooth_device_client.h
diff --git a/chromeos/dbus/bluetooth_device_client.h b/chromeos/dbus/bluetooth_device_client.h
index 11f5a1cb772db7d88f3971a417f4ade59405c27a..25d1bbfa3e38a90f7f978ac65607d0c17cb051e1 100644
--- a/chromeos/dbus/bluetooth_device_client.h
+++ b/chromeos/dbus/bluetooth_device_client.h
@@ -76,8 +76,23 @@ class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient {
// Remote Device ID information in Linux kernel modalias format. Read-only.
dbus::Property<std::string> modalias;
- // Received signal strength indicator. Read-only.
- dbus::Property<int16> rssi;
+ // Received signal strength indicator that is set when the device is
+ // discovered during inquiry. Read-only.
+ dbus::Property<int16> inquiry_rssi;
keybuk 2014/05/09 00:35:25 Properties must match the D-Bus name, keep this as
Tim Song 2014/05/09 02:55:29 Done.
+
+ // Received signal strength indicator when a connection is open to the
+ // device. This property is not set unless connection monitor is enabled.
+ // Read-only.
+ dbus::Property<int16> connection_rssi;
+
+ // The transmit power level of the host when a connection is open
+ // to the device. This property is not set unless connection monitor is
+ // enabled. Read-only.
+ dbus::Property<int16> tx_power;
keybuk 2014/05/09 00:35:25 This is called connection_tx_power in your cros_sy
Tim Song 2014/05/09 02:55:29 Done.
+
+ // The maximum transmit power level of the host that can be set
+ // when connected to the device. Read-only.
+ dbus::Property<int16> tx_power_max;
keybuk 2014/05/09 00:35:25 ditto
Tim Song 2014/05/09 02:55:29 Done.
Properties(dbus::ObjectProxy* object_proxy,
const std::string& interface_name,
@@ -169,6 +184,19 @@ class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient {
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+ // Starts connection monitor for the device with object path
+ // |object_path|. Connection monitor is a mode the connection properties,
+ // RSSI and TX power are tracked and updated when they change.
+ virtual void StartConnectionMonitor(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
+ // Stops connection monitor for the device with object path
+ // |object_path|.
+ virtual void StopConnectionMonitor(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
// Creates the instance.
static BluetoothDeviceClient* Create();

Powered by Google App Engine
This is Rietveld 408576698