OLD | NEW |
---|---|
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> |
11 #include <unordered_map> | |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/callback.h" | 14 #include "base/callback.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
16 #include "base/values.h" | 17 #include "base/values.h" |
17 #include "dbus/object_path.h" | 18 #include "dbus/object_path.h" |
18 #include "dbus/property.h" | 19 #include "dbus/property.h" |
19 #include "device/bluetooth/bluetooth_export.h" | 20 #include "device/bluetooth/bluetooth_export.h" |
20 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" | 21 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 // Remote Device ID information in Linux kernel modalias format. Read-only. | 105 // Remote Device ID information in Linux kernel modalias format. Read-only. |
105 dbus::Property<std::string> modalias; | 106 dbus::Property<std::string> modalias; |
106 | 107 |
107 // Received signal strength indicator that is set when the device is | 108 // Received signal strength indicator that is set when the device is |
108 // discovered during inquiry. Read-only. | 109 // discovered during inquiry. Read-only. |
109 dbus::Property<int16_t> rssi; | 110 dbus::Property<int16_t> rssi; |
110 | 111 |
111 // Indicate whether or not service discovery has been resolved. Read-only. | 112 // Indicate whether or not service discovery has been resolved. Read-only. |
112 dbus::Property<bool> services_resolved; | 113 dbus::Property<bool> services_resolved; |
113 | 114 |
115 // List of Service data. Read-only. | |
ortuno
2016/10/05 06:27:10
nit: just copy the description from the bluez docs
puthik_chromium
2016/10/06 01:49:56
Done.
| |
116 dbus::Property<std::unordered_map<std::string, std::vector<uint8_t>>> | |
117 service_data; | |
118 | |
114 Properties(dbus::ObjectProxy* object_proxy, | 119 Properties(dbus::ObjectProxy* object_proxy, |
115 const std::string& interface_name, | 120 const std::string& interface_name, |
116 const PropertyChangedCallback& callback); | 121 const PropertyChangedCallback& callback); |
117 ~Properties() override; | 122 ~Properties() override; |
118 }; | 123 }; |
119 | 124 |
120 // Interface for observing changes from a remote bluetooth device. | 125 // Interface for observing changes from a remote bluetooth device. |
121 class Observer { | 126 class Observer { |
122 public: | 127 public: |
123 virtual ~Observer() {} | 128 virtual ~Observer() {} |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 protected: | 230 protected: |
226 BluetoothDeviceClient(); | 231 BluetoothDeviceClient(); |
227 | 232 |
228 private: | 233 private: |
229 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); | 234 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); |
230 }; | 235 }; |
231 | 236 |
232 } // namespace bluez | 237 } // namespace bluez |
233 | 238 |
234 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 239 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
OLD | NEW |