| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Whether or not this characteristic is currently sending ValueUpdated | 41 // Whether or not this characteristic is currently sending ValueUpdated |
| 42 // signals. [read-only] | 42 // signals. [read-only] |
| 43 dbus::Property<bool> notifying; | 43 dbus::Property<bool> notifying; |
| 44 | 44 |
| 45 // List of flags representing the GATT "Characteristic Properties bit field" | 45 // List of flags representing the GATT "Characteristic Properties bit field" |
| 46 // and properties read from the GATT "Characteristic Extended Properties" | 46 // and properties read from the GATT "Characteristic Extended Properties" |
| 47 // descriptor bit field. [read-only, optional] | 47 // descriptor bit field. [read-only, optional] |
| 48 dbus::Property<std::vector<std::string>> flags; | 48 dbus::Property<std::vector<std::string>> flags; |
| 49 | 49 |
| 50 // Array of object paths representing the descriptors of this | |
| 51 // characteristic. [read-only] | |
| 52 dbus::Property<std::vector<dbus::ObjectPath>> descriptors; | |
| 53 | |
| 54 Properties(dbus::ObjectProxy* object_proxy, | 50 Properties(dbus::ObjectProxy* object_proxy, |
| 55 const std::string& interface_name, | 51 const std::string& interface_name, |
| 56 const PropertyChangedCallback& callback); | 52 const PropertyChangedCallback& callback); |
| 57 ~Properties() override; | 53 ~Properties() override; |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 // Interface for observing changes from a remote GATT characteristic. | 56 // Interface for observing changes from a remote GATT characteristic. |
| 61 class Observer { | 57 class Observer { |
| 62 public: | 58 public: |
| 63 virtual ~Observer() {} | 59 virtual ~Observer() {} |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 protected: | 133 protected: |
| 138 BluetoothGattCharacteristicClient(); | 134 BluetoothGattCharacteristicClient(); |
| 139 | 135 |
| 140 private: | 136 private: |
| 141 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); | 137 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); |
| 142 }; | 138 }; |
| 143 | 139 |
| 144 } // namespace bluez | 140 } // namespace bluez |
| 145 | 141 |
| 146 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 142 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
| OLD | NEW |