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" | |
14 #include "chromeos/dbus/dbus_client.h" | |
15 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
16 #include "dbus/property.h" | 14 #include "dbus/property.h" |
| 15 #include "device/bluetooth/bluetooth_export.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 DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptorClient |
| 23 : public BluezDBusClient { |
23 public: | 24 public: |
24 // Structure of properties associated with GATT descriptors. | 25 // Structure of properties associated with GATT descriptors. |
25 struct Properties : public dbus::PropertySet { | 26 struct Properties : public dbus::PropertySet { |
26 // The 128-bit characteristic descriptor UUID. [read-only] | 27 // The 128-bit characteristic descriptor UUID. [read-only] |
27 dbus::Property<std::string> uuid; | 28 dbus::Property<std::string> uuid; |
28 | 29 |
29 // Object path of the GATT characteristic the descriptor belongs to. | 30 // Object path of the GATT characteristic the descriptor belongs to. |
30 // [read-only] | 31 // [read-only] |
31 dbus::Property<dbus::ObjectPath> characteristic; | 32 dbus::Property<dbus::ObjectPath> characteristic; |
32 | 33 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 static const char kNoResponseError[]; | 104 static const char kNoResponseError[]; |
104 static const char kUnknownDescriptorError[]; | 105 static const char kUnknownDescriptorError[]; |
105 | 106 |
106 protected: | 107 protected: |
107 BluetoothGattDescriptorClient(); | 108 BluetoothGattDescriptorClient(); |
108 | 109 |
109 private: | 110 private: |
110 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorClient); | 111 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptorClient); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace chromeos | 114 } // namespace bluez |
114 | 115 |
115 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ | 116 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ |
OLD | NEW |