Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: device/bluetooth/bluetooth_gatt_characteristic.h

Issue 748873004: Revert of bluetooth: Make device/bluetooth a shared library component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/bluetooth/bluetooth_export.h ('k') | device/bluetooth/bluetooth_gatt_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <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 "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "device/bluetooth/bluetooth_export.h"
15 #include "device/bluetooth/bluetooth_gatt_service.h" 14 #include "device/bluetooth/bluetooth_gatt_service.h"
16 #include "device/bluetooth/bluetooth_uuid.h" 15 #include "device/bluetooth/bluetooth_uuid.h"
17 16
18 namespace device { 17 namespace device {
19 18
20 class BluetoothGattDescriptor; 19 class BluetoothGattDescriptor;
21 class BluetoothGattNotifySession; 20 class BluetoothGattNotifySession;
22 21
23 // BluetoothGattCharacteristic represents a local or remote GATT characteristic. 22 // BluetoothGattCharacteristic represents a local or remote GATT characteristic.
24 // A GATT characteristic is a basic data element used to construct a GATT 23 // A GATT characteristic is a basic data element used to construct a GATT
25 // service. Hence, instances of a BluetoothGattCharacteristic are associated 24 // service. Hence, instances of a BluetoothGattCharacteristic are associated
26 // with a BluetoothGattService. There are two ways in which this class is used: 25 // with a BluetoothGattService. There are two ways in which this class is used:
27 // 26 //
28 // 1. To represent GATT characteristics that belong to a service hosted by a 27 // 1. To represent GATT characteristics that belong to a service hosted by a
29 // remote device. In this case the characteristic will be constructed by 28 // remote device. In this case the characteristic will be constructed by
30 // the subsystem. 29 // the subsystem.
31 // 2. To represent GATT characteristics that belong to a locally hosted 30 // 2. To represent GATT characteristics that belong to a locally hosted
32 // service. To achieve this, users can construct instances of 31 // service. To achieve this, users can construct instances of
33 // BluetoothGattCharacteristic directly and add it to the desired 32 // BluetoothGattCharacteristic directly and add it to the desired
34 // BluetoothGattService instance that represents a local service. 33 // BluetoothGattService instance that represents a local service.
35 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic { 34 class BluetoothGattCharacteristic {
36 public: 35 public:
37 // Values representing the possible properties of a characteristic, which 36 // Values representing the possible properties of a characteristic, which
38 // define how the characteristic can be used. Each of these properties serve 37 // define how the characteristic can be used. Each of these properties serve
39 // a role as defined in the Bluetooth Specification. 38 // a role as defined in the Bluetooth Specification.
40 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present, 39 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present,
41 // indicates that there is a characteristic descriptor (namely the 40 // indicates that there is a characteristic descriptor (namely the
42 // "Characteristic Extended Properties Descriptor" with UUID 0x2900) that 41 // "Characteristic Extended Properties Descriptor" with UUID 0x2900) that
43 // contains additional properties pertaining to the characteristic. 42 // contains additional properties pertaining to the characteristic.
44 // The properties "ReliableWrite| and |WriteAuxiliaries| are retrieved from 43 // The properties "ReliableWrite| and |WriteAuxiliaries| are retrieved from
45 // that characteristic. 44 // that characteristic.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 BluetoothGattCharacteristic(); 202 BluetoothGattCharacteristic();
204 virtual ~BluetoothGattCharacteristic(); 203 virtual ~BluetoothGattCharacteristic();
205 204
206 private: 205 private:
207 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); 206 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic);
208 }; 207 };
209 208
210 } // namespace device 209 } // namespace device
211 210
212 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ 211 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_export.h ('k') | device/bluetooth/bluetooth_gatt_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698