| 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_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 struct Properties : public dbus::PropertySet { | 23 struct Properties : public dbus::PropertySet { |
| 24 // The 128-bit service UUID. [read-only] | 24 // The 128-bit service UUID. [read-only] |
| 25 dbus::Property<std::string> uuid; | 25 dbus::Property<std::string> uuid; |
| 26 | 26 |
| 27 // Object path of the Bluetooth device that the GATT service belongs to. | 27 // Object path of the Bluetooth device that the GATT service belongs to. |
| 28 dbus::Property<dbus::ObjectPath> device; | 28 dbus::Property<dbus::ObjectPath> device; |
| 29 | 29 |
| 30 // Whether or not this service is a primary service. | 30 // Whether or not this service is a primary service. |
| 31 dbus::Property<bool> primary; | 31 dbus::Property<bool> primary; |
| 32 | 32 |
| 33 // Array of object paths representing the characteristics of this service. |
| 34 // [read-only] |
| 35 dbus::Property<std::vector<dbus::ObjectPath> > characteristics; |
| 36 |
| 33 // Array of object paths representing the included services of this service. | 37 // Array of object paths representing the included services of this service. |
| 34 // [read-only] | 38 // [read-only] |
| 35 dbus::Property<std::vector<dbus::ObjectPath> > includes; | 39 dbus::Property<std::vector<dbus::ObjectPath> > includes; |
| 36 | 40 |
| 37 Properties(dbus::ObjectProxy* object_proxy, | 41 Properties(dbus::ObjectProxy* object_proxy, |
| 38 const std::string& interface_name, | 42 const std::string& interface_name, |
| 39 const PropertyChangedCallback& callback); | 43 const PropertyChangedCallback& callback); |
| 40 virtual ~Properties(); | 44 virtual ~Properties(); |
| 41 }; | 45 }; |
| 42 | 46 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 protected: | 84 protected: |
| 81 BluetoothGattServiceClient(); | 85 BluetoothGattServiceClient(); |
| 82 | 86 |
| 83 private: | 87 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(BluetoothGattServiceClient); | 88 DISALLOW_COPY_AND_ASSIGN(BluetoothGattServiceClient); |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace chromeos | 91 } // namespace chromeos |
| 88 | 92 |
| 89 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_SERVICE_CLIENT_H_ | 93 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_SERVICE_CLIENT_H_ |
| OLD | NEW |