diff options
author | armansito <armansito@chromium.org> | 2015-02-06 12:21:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-06 20:22:01 +0000 |
commit | 2e5cbe58a08a122c8896ae6542b5822a827a1707 (patch) | |
tree | 0826f76e86a2486600d69bcea7077f0c5baaf9b1 /chromeos/dbus/bluetooth_gatt_characteristic_client.h | |
parent | 873d9c13d08de9449b659fd5dad1fcf579758a3a (diff) | |
download | chromium_src-2e5cbe58a08a122c8896ae6542b5822a827a1707.zip chromium_src-2e5cbe58a08a122c8896ae6542b5822a827a1707.tar.gz chromium_src-2e5cbe58a08a122c8896ae6542b5822a827a1707.tar.bz2 |
chromeos/dbus: Update Bluetooth GATT API clients to upstream definition
This CL ports the GATT API bindings from the D-Bus API in our Chrome OS fork to
the API definition in doc/gatt-api.txt in BlueZ upstream.
TBR=keybuk@chromium.org
BUG=440968
Review URL: https://codereview.chromium.org/788193004
Cr-Commit-Position: refs/heads/master@{#315095}
Diffstat (limited to 'chromeos/dbus/bluetooth_gatt_characteristic_client.h')
-rw-r--r-- | chromeos/dbus/bluetooth_gatt_characteristic_client.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chromeos/dbus/bluetooth_gatt_characteristic_client.h b/chromeos/dbus/bluetooth_gatt_characteristic_client.h index 651bd18..b040b56 100644 --- a/chromeos/dbus/bluetooth_gatt_characteristic_client.h +++ b/chromeos/dbus/bluetooth_gatt_characteristic_client.h @@ -6,6 +6,7 @@ #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ #include <string> +#include <vector> #include "base/basictypes.h" #include "base/callback.h" @@ -29,6 +30,11 @@ class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { // [read-only] dbus::Property<dbus::ObjectPath> service; + // The cached value of the characteristic. This property gets updated only + // after a successful read request and when a notification or indication is + // received. [read-only] + dbus::Property<std::vector<uint8_t>> value; + // Whether or not this characteristic is currently sending ValueUpdated // signals. [read-only] dbus::Property<bool> notifying; @@ -36,11 +42,11 @@ class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { // List of flags representing the GATT "Characteristic Properties bit field" // and properties read from the GATT "Characteristic Extended Properties" // descriptor bit field. [read-only, optional] - dbus::Property<std::vector<std::string> > flags; + dbus::Property<std::vector<std::string>> flags; // Array of object paths representing the descriptors of this // characteristic. [read-only] - dbus::Property<std::vector<dbus::ObjectPath> > descriptors; + dbus::Property<std::vector<dbus::ObjectPath>> descriptors; Properties(dbus::ObjectProxy* object_proxy, const std::string& interface_name, @@ -67,13 +73,6 @@ class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { virtual void GattCharacteristicPropertyChanged( const dbus::ObjectPath& object_path, const std::string& property_name) {} - - // Called when a "ValueUpdated" signal is received from the remote GATT - // characteristic with object path |object_path| with characteristic value - // |value|. - virtual void GattCharacteristicValueUpdated( - const dbus::ObjectPath& object_path, - const std::vector<uint8>& value) {} }; // Callbacks used to report the result of asynchronous methods. |