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 DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_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 // BluetoothGattCharacteristicClient is used to communicate with remote GATT | 20 // BluetoothGattCharacteristicClient is used to communicate with remote GATT |
21 // characteristic objects exposed by the Bluetooth daemon. | 21 // characteristic objects exposed by the Bluetooth daemon. |
22 class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { | 22 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicClient |
| 23 : public BluezDBusClient { |
23 public: | 24 public: |
24 // Structure of properties associated with GATT characteristics. | 25 // Structure of properties associated with GATT characteristics. |
25 struct Properties : public dbus::PropertySet { | 26 struct Properties : public dbus::PropertySet { |
26 // The 128-bit characteristic UUID. [read-only] | 27 // The 128-bit characteristic UUID. [read-only] |
27 dbus::Property<std::string> uuid; | 28 dbus::Property<std::string> uuid; |
28 | 29 |
29 // Object path of the GATT service the characteristic belongs to. | 30 // Object path of the GATT service the characteristic belongs to. |
30 // [read-only] | 31 // [read-only] |
31 dbus::Property<dbus::ObjectPath> service; | 32 dbus::Property<dbus::ObjectPath> service; |
32 | 33 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 static const char kNoResponseError[]; | 132 static const char kNoResponseError[]; |
132 static const char kUnknownCharacteristicError[]; | 133 static const char kUnknownCharacteristicError[]; |
133 | 134 |
134 protected: | 135 protected: |
135 BluetoothGattCharacteristicClient(); | 136 BluetoothGattCharacteristicClient(); |
136 | 137 |
137 private: | 138 private: |
138 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); | 139 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); |
139 }; | 140 }; |
140 | 141 |
141 } // namespace chromeos | 142 } // namespace bluez |
142 | 143 |
143 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ | 144 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ |
OLD | NEW |