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 DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "device/bluetooth/bluetooth_export.h" |
12 #include "device/bluetooth/bluetooth_gatt_characteristic.h" | 13 #include "device/bluetooth/bluetooth_gatt_characteristic.h" |
13 #include "device/bluetooth/bluetooth_uuid.h" | 14 #include "device/bluetooth/bluetooth_uuid.h" |
14 | 15 |
15 namespace device { | 16 namespace device { |
16 | 17 |
17 // BluetoothGattDescriptor represents a local or remote GATT characteristic | 18 // BluetoothGattDescriptor represents a local or remote GATT characteristic |
18 // descriptor. A GATT characteristic descriptor provides further information | 19 // descriptor. A GATT characteristic descriptor provides further information |
19 // about a characteristic's value. They can be used to describe the | 20 // about a characteristic's value. They can be used to describe the |
20 // characteristic's features or to control certain behaviors. | 21 // characteristic's features or to control certain behaviors. |
21 class BluetoothGattDescriptor { | 22 class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptor { |
22 public: | 23 public: |
23 // The Bluetooth Specification declares several predefined descriptors that | 24 // The Bluetooth Specification declares several predefined descriptors that |
24 // profiles can use. The following are definitions for the list of UUIDs | 25 // profiles can use. The following are definitions for the list of UUIDs |
25 // and descriptions of the characteristic descriptors that they represent. | 26 // and descriptions of the characteristic descriptors that they represent. |
26 // Possible values for and further information on each descriptor can be found | 27 // Possible values for and further information on each descriptor can be found |
27 // in Core v4.0, Volume 3, Part G, Section 3.3.3. All of these descriptors are | 28 // in Core v4.0, Volume 3, Part G, Section 3.3.3. All of these descriptors are |
28 // optional and may not be present for a given characteristic. | 29 // optional and may not be present for a given characteristic. |
29 | 30 |
30 // The "Characteristic Extended Properties" descriptor. This defines | 31 // The "Characteristic Extended Properties" descriptor. This defines |
31 // additional "Characteristic Properties" which cannot fit into the allocated | 32 // additional "Characteristic Properties" which cannot fit into the allocated |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 BluetoothGattDescriptor(); | 182 BluetoothGattDescriptor(); |
182 virtual ~BluetoothGattDescriptor(); | 183 virtual ~BluetoothGattDescriptor(); |
183 | 184 |
184 private: | 185 private: |
185 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptor); | 186 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptor); |
186 }; | 187 }; |
187 | 188 |
188 } // namespace device | 189 } // namespace device |
189 | 190 |
190 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ | 191 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
OLD | NEW |