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

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

Issue 2094633003: Bluetooth: Mac: implementation for start notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_read_characteristicscan_servicescan_cleanup
Patch Set: Addressing msarda's comments Created 4 years, 5 months 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_REMOTE_GATT_SERVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void DiscoverCharacteristics(); 53 void DiscoverCharacteristics();
54 // Called by the BluetoothLowEnergyDeviceMac instance when the characteristics 54 // Called by the BluetoothLowEnergyDeviceMac instance when the characteristics
55 // has been discovered. 55 // has been discovered.
56 void DidDiscoverCharacteristics(); 56 void DidDiscoverCharacteristics();
57 // Called by the BluetoothLowEnergyDeviceMac instance when the 57 // Called by the BluetoothLowEnergyDeviceMac instance when the
58 // characteristics value has been read. 58 // characteristics value has been read.
59 void DidUpdateValue(CBCharacteristic* characteristic, NSError* error); 59 void DidUpdateValue(CBCharacteristic* characteristic, NSError* error);
60 // Called by the BluetoothLowEnergyDeviceMac instance when the 60 // Called by the BluetoothLowEnergyDeviceMac instance when the
61 // characteristics value has been written. 61 // characteristics value has been written.
62 void DidWriteValue(CBCharacteristic* characteristic, NSError* error); 62 void DidWriteValue(CBCharacteristic* characteristic, NSError* error);
63 // Called by the BluetoothLowEnergyDeviceMac instance when the notify session
64 // has been started or failed.
65 void DidUpdateNotificationState(CBCharacteristic* characteristic,
66 NSError* error);
63 // Returns true if the characteristics has been discovered. 67 // Returns true if the characteristics has been discovered.
64 bool IsDiscoveryComplete(); 68 bool IsDiscoveryComplete();
65 69
66 // Returns the mac adapter. 70 // Returns the mac adapter.
67 BluetoothAdapterMac* GetMacAdapter() const; 71 BluetoothAdapterMac* GetMacAdapter() const;
68 // Returns CBPeripheral. 72 // Returns CBPeripheral.
69 CBPeripheral* GetCBPeripheral() const; 73 CBPeripheral* GetCBPeripheral() const;
70 // Returns CBService. 74 // Returns CBService.
71 CBService* GetService() const; 75 CBService* GetService() const;
72 // Returns a remote characteristic based on the CBCharacteristic. 76 // Returns a remote characteristic based on the CBCharacteristic.
(...skipping 15 matching lines...) Expand all
88 BluetoothUUID uuid_; 92 BluetoothUUID uuid_;
89 // Is true if the characteristics has been discovered. 93 // Is true if the characteristics has been discovered.
90 bool is_discovery_complete_; 94 bool is_discovery_complete_;
91 95
92 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac); 96 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac);
93 }; 97 };
94 98
95 } // namespace device 99 } // namespace device
96 100
97 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_ 101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698