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 CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Structure of properties associated with GATT characteristics. | 23 // Structure of properties associated with GATT characteristics. |
24 struct Properties : public dbus::PropertySet { | 24 struct Properties : public dbus::PropertySet { |
25 // The 128-bit characteristic UUID. [read-only] | 25 // The 128-bit characteristic UUID. [read-only] |
26 dbus::Property<std::string> uuid; | 26 dbus::Property<std::string> uuid; |
27 | 27 |
28 // Object path of the GATT service the characteristic belongs to. | 28 // Object path of the GATT service the characteristic belongs to. |
29 // [read-only] | 29 // [read-only] |
30 dbus::Property<dbus::ObjectPath> service; | 30 dbus::Property<dbus::ObjectPath> service; |
31 | 31 |
32 // Whether or not this characteristic is currently sending ValueUpdated | 32 // Whether or not this characteristic is currently sending ValueUpdated |
33 // signals. | 33 // signals. [read-only] |
34 dbus::Property<bool> notifying; | 34 dbus::Property<bool> notifying; |
35 | 35 |
36 // List of flags representing the GATT "Characteristic Properties bit field" | 36 // List of flags representing the GATT "Characteristic Properties bit field" |
37 // and properties read from the GATT "Characteristic Extended Properties" | 37 // and properties read from the GATT "Characteristic Extended Properties" |
38 // descriptor bit field. [read-only, optional] | 38 // descriptor bit field. [read-only, optional] |
39 dbus::Property<std::vector<std::string> > flags; | 39 dbus::Property<std::vector<std::string> > flags; |
40 | 40 |
| 41 // Array of object paths representing the descriptors of this |
| 42 // characteristic. [read-only] |
| 43 dbus::Property<std::vector<dbus::ObjectPath> > descriptors; |
| 44 |
41 Properties(dbus::ObjectProxy* object_proxy, | 45 Properties(dbus::ObjectProxy* object_proxy, |
42 const std::string& interface_name, | 46 const std::string& interface_name, |
43 const PropertyChangedCallback& callback); | 47 const PropertyChangedCallback& callback); |
44 virtual ~Properties(); | 48 virtual ~Properties(); |
45 }; | 49 }; |
46 | 50 |
47 // Interface for observing changes from a remote GATT characteristic. | 51 // Interface for observing changes from a remote GATT characteristic. |
48 class Observer { | 52 class Observer { |
49 public: | 53 public: |
50 virtual ~Observer() {} | 54 virtual ~Observer() {} |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 protected: | 135 protected: |
132 BluetoothGattCharacteristicClient(); | 136 BluetoothGattCharacteristicClient(); |
133 | 137 |
134 private: | 138 private: |
135 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); | 139 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); |
136 }; | 140 }; |
137 | 141 |
138 } // namespace chromeos | 142 } // namespace chromeos |
139 | 143 |
140 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 144 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
OLD | NEW |