OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chromeos/chromeos_export.h" | 15 #include "chromeos/chromeos_export.h" |
16 #include "chromeos/dbus/bluetooth_device_client.h" | 16 #include "chromeos/dbus/bluetooth_device_client.h" |
17 #include "chromeos/dbus/bluetooth_out_of_band_pairing_data.h" | |
17 #include "chromeos/dbus/bluetooth_property.h" | 18 #include "chromeos/dbus/bluetooth_property.h" |
18 #include "chromeos/dbus/dbus_client_implementation_type.h" | 19 #include "chromeos/dbus/dbus_client_implementation_type.h" |
19 #include "dbus/object_path.h" | 20 #include "dbus/object_path.h" |
20 | 21 |
21 namespace dbus { | 22 namespace dbus { |
22 class Bus; | 23 class Bus; |
23 } // namespace dbus | 24 } // namespace dbus |
24 | 25 |
25 namespace chromeos { | 26 namespace chromeos { |
26 | 27 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 const dbus::ObjectPath& agent_path, | 221 const dbus::ObjectPath& agent_path, |
221 const std::string& capability, | 222 const std::string& capability, |
222 const AdapterCallback& callback) = 0; | 223 const AdapterCallback& callback) = 0; |
223 | 224 |
224 // Unregisters an adapter-wide agent with object path |agent_path| from | 225 // Unregisters an adapter-wide agent with object path |agent_path| from |
225 // the adapter with object path |object_path|. | 226 // the adapter with object path |object_path|. |
226 virtual void UnregisterAgent(const dbus::ObjectPath& object_path, | 227 virtual void UnregisterAgent(const dbus::ObjectPath& object_path, |
227 const dbus::ObjectPath& agent_path, | 228 const dbus::ObjectPath& agent_path, |
228 const AdapterCallback& callback) = 0; | 229 const AdapterCallback& callback) = 0; |
229 | 230 |
231 // Read the local Out Of Band Pairing Data and return it in |callback|. | |
232 virtual void ReadLocalOutOfBandPairingData( | |
233 const dbus::ObjectPath& object_path, | |
234 const OutOfBandPairingDataCallback& callback) = 0; | |
235 | |
236 // Set the Out Of Band Pairing Data for the device at |address| to |data|, | |
237 // indicating success via |callback|. Makes a copy of |data|. | |
238 virtual void AddRemoteOutOfBandPairingData( | |
239 const dbus::ObjectPath& object_path, | |
240 const std::string& address, | |
241 const OutOfBandPairingData& data, | |
242 const AdapterCallback& callback) = 0; | |
243 | |
244 // Clear the Out Of Band Pairing Data for the device at |address|, indicating | |
245 // success via |callback|. | |
246 virtual void RemoveRemoteOutOfBandPairingData( | |
247 const dbus::ObjectPath& object_path, | |
248 const std::string& address, | |
249 const AdapterCallback& callback) = 0; | |
keybuk
2012/06/07 20:52:48
NAK, this should go in BluetoothOutOfBandDataClien
| |
250 | |
230 // Creates the instance. | 251 // Creates the instance. |
231 static BluetoothAdapterClient* Create(DBusClientImplementationType type, | 252 static BluetoothAdapterClient* Create(DBusClientImplementationType type, |
232 dbus::Bus* bus, | 253 dbus::Bus* bus, |
233 BluetoothManagerClient* manager_client); | 254 BluetoothManagerClient* manager_client); |
234 | 255 |
235 protected: | 256 protected: |
236 BluetoothAdapterClient(); | 257 BluetoothAdapterClient(); |
237 | 258 |
238 private: | 259 private: |
239 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); | 260 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); |
240 }; | 261 }; |
241 | 262 |
242 } // namespace chromeos | 263 } // namespace chromeos |
243 | 264 |
244 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 265 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
OLD | NEW |