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