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

Side by Side Diff: device/bluetooth/dbus/bluetooth_device_client.h

Issue 1862093002: bluetooth: replace GattServices D-Bus property with ServicesResolved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Received signal strength indicator that is set when the device is 86 // Received signal strength indicator that is set when the device is
87 // discovered during inquiry. Read-only. 87 // discovered during inquiry. Read-only.
88 dbus::Property<int16_t> rssi; 88 dbus::Property<int16_t> rssi;
89 89
90 // List of GATT service object paths. Each referenced object exports the 90 // List of GATT service object paths. Each referenced object exports the
91 // org.bluez.GattService1 interface and represents a remote GATT service. 91 // org.bluez.GattService1 interface and represents a remote GATT service.
92 // This property will be updated once all remote GATT services of this 92 // This property will be updated once all remote GATT services of this
93 // device have been discovered and exported over D-Bus. Read-only. 93 // device have been discovered and exported over D-Bus. Read-only.
94 dbus::Property<std::vector<dbus::ObjectPath>> gatt_services; 94 dbus::Property<std::vector<dbus::ObjectPath>> gatt_services;
95 95
96 // Indicate whether or not service discovery has been resolved. Read-only.
97 dbus::Property<bool> services_resolved;
98
96 Properties(dbus::ObjectProxy* object_proxy, 99 Properties(dbus::ObjectProxy* object_proxy,
97 const std::string& interface_name, 100 const std::string& interface_name,
98 const PropertyChangedCallback& callback); 101 const PropertyChangedCallback& callback);
99 ~Properties() override; 102 ~Properties() override;
100 }; 103 };
101 104
102 // Interface for observing changes from a remote bluetooth device. 105 // Interface for observing changes from a remote bluetooth device.
103 class Observer { 106 class Observer {
104 public: 107 public:
105 virtual ~Observer() {} 108 virtual ~Observer() {}
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 protected: 209 protected:
207 BluetoothDeviceClient(); 210 BluetoothDeviceClient();
208 211
209 private: 212 private:
210 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); 213 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient);
211 }; 214 };
212 215
213 } // namespace bluez 216 } // namespace bluez
214 217
215 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 218 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698