| 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_CHARACTERISTIC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "device/bluetooth/bluetooth_export.h" | 14 #include "device/bluetooth/bluetooth_export.h" |
| 15 #include "device/bluetooth/bluetooth_gatt_service.h" | 15 #include "device/bluetooth/bluetooth_gatt_service.h" |
| 16 #include "device/bluetooth/bluetooth_uuid.h" | 16 #include "device/bluetooth/bluetooth_uuid.h" |
| 17 | 17 |
| 18 namespace device { | 18 namespace device { |
| 19 | 19 |
| 20 class BluetoothRemoteGattDescriptor; | |
| 21 class BluetoothGattNotifySession; | |
| 22 | |
| 23 // BluetoothGattCharacteristic represents a local or remote GATT characteristic. | 20 // BluetoothGattCharacteristic represents a local or remote GATT characteristic. |
| 24 // A GATT characteristic is a basic data element used to construct a GATT | 21 // A GATT characteristic is a basic data element used to construct a GATT |
| 25 // service. Hence, instances of a BluetoothGattCharacteristic are associated | 22 // service. Hence, instances of a BluetoothGattCharacteristic are associated |
| 26 // with a BluetoothGattService. | 23 // with a BluetoothGattService. |
| 27 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic { | 24 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic { |
| 28 public: | 25 public: |
| 29 // Values representing the possible properties of a characteristic, which | 26 // Values representing the possible properties of a characteristic, which |
| 30 // define how the characteristic can be used. Each of these properties serve | 27 // define how the characteristic can be used. Each of these properties serve |
| 31 // a role as defined in the Bluetooth Specification. | 28 // a role as defined in the Bluetooth Specification. |
| 32 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present, | 29 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 BluetoothGattCharacteristic(); | 103 BluetoothGattCharacteristic(); |
| 107 virtual ~BluetoothGattCharacteristic(); | 104 virtual ~BluetoothGattCharacteristic(); |
| 108 | 105 |
| 109 private: | 106 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); | 107 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); |
| 111 }; | 108 }; |
| 112 | 109 |
| 113 } // namespace device | 110 } // namespace device |
| 114 | 111 |
| 115 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ | 112 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ |
| OLD | NEW |