| 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_DESCRIPTOR_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/dbus/dbus_client.h" | |
| 15 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
| 16 #include "dbus/property.h" | 15 #include "dbus/property.h" |
| 16 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace bluez { |
| 19 | 19 |
| 20 // BluetoothGattDescriptorClient is used to communicate with remote GATT | 20 // BluetoothGattDescriptorClient is used to communicate with remote GATT |
| 21 // characteristic descriptor objects exposed by the Bluetooth daemon. | 21 // characteristic descriptor objects exposed by the Bluetooth daemon. |
| 22 class CHROMEOS_EXPORT BluetoothGattDescriptorClient : public DBusClient { | 22 class CHROMEOS_EXPORT BluetoothGattDescriptorClient : public BluezDBusClient { |
| 23 public: | 23 public: |
| 24 // Structure of properties associated with GATT descriptors. | 24 // Structure of properties associated with GATT descriptors. |
| 25 struct Properties : public dbus::PropertySet { | 25 struct Properties : public dbus::PropertySet { |
| 26 // The 128-bit characteristic descriptor UUID. [read-only] | 26 // The 128-bit characteristic descriptor UUID. [read-only] |
| 27 dbus::Property<std::string> uuid; | 27 dbus::Property<std::string> uuid; |
| 28 | 28 |
| 29 // Object path of the GATT characteristic the descriptor belongs to. | 29 // Object path of the GATT characteristic the descriptor belongs to. |
| 30 // [read-only] | 30 // [read-only] |
| 31 dbus::Property<dbus::ObjectPath> characteristic; | 31 dbus::Property<dbus::ObjectPath> characteristic; |
| 32 | 32 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 static const char kNoResponseError[]; | 103 static const char kNoResponseError[]; |
| 104 static const char kUnknownDescriptorError[]; | 104 static const char kUnknownDescriptorError[]; |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 BluetoothGattDescriptorClient(); | 107 BluetoothGattDescriptorClient(); |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorClient); | 110 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorClient); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace chromeos | 113 } // namespace bluez |
| 114 | 114 |
| 115 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ | 115 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ |
| OLD | NEW |