| 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_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Object path of the adapter the device belongs to. Read-only. | 85 // Object path of the adapter the device belongs to. Read-only. |
| 86 dbus::Property<dbus::ObjectPath> adapter; | 86 dbus::Property<dbus::ObjectPath> adapter; |
| 87 | 87 |
| 88 // Indicates whether the device is likely to only support pre-2.1 | 88 // Indicates whether the device is likely to only support pre-2.1 |
| 89 // PIN Code pairing rather than 2.1 Secure Simple Pairing, this can | 89 // PIN Code pairing rather than 2.1 Secure Simple Pairing, this can |
| 90 // give false positives. Read-only. | 90 // give false positives. Read-only. |
| 91 dbus::Property<bool> legacy_pairing; | 91 dbus::Property<bool> legacy_pairing; |
| 92 | 92 |
| 93 Properties(dbus::ObjectProxy* object_proxy, | 93 Properties(dbus::ObjectProxy* object_proxy, |
| 94 PropertyChangedCallback callback); | 94 const PropertyChangedCallback& callback); |
| 95 virtual ~Properties(); | 95 virtual ~Properties(); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 // Interface for observing changes from a remote bluetooth device. | 98 // Interface for observing changes from a remote bluetooth device. |
| 99 class Observer { | 99 class Observer { |
| 100 public: | 100 public: |
| 101 virtual ~Observer() {} | 101 virtual ~Observer() {} |
| 102 | 102 |
| 103 // Called when the device with object path |object_path| has a | 103 // Called when the device with object path |object_path| has a |
| 104 // change in value of the property named |property_name|. | 104 // change in value of the property named |property_name|. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 protected: | 202 protected: |
| 203 BluetoothDeviceClient(); | 203 BluetoothDeviceClient(); |
| 204 | 204 |
| 205 private: | 205 private: |
| 206 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); | 206 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 } // namespace chromeos | 209 } // namespace chromeos |
| 210 | 210 |
| 211 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 211 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| OLD | NEW |