| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // List of object paths of known Bluetooth devices, known devices are | 72 // List of object paths of known Bluetooth devices, known devices are |
| 73 // those that have previously been connected or paired or are currently | 73 // those that have previously been connected or paired or are currently |
| 74 // connected or paired. Read-only. | 74 // connected or paired. Read-only. |
| 75 dbus::Property<std::vector<dbus::ObjectPath> > devices; | 75 dbus::Property<std::vector<dbus::ObjectPath> > devices; |
| 76 | 76 |
| 77 // List of 128-bit UUIDs that represent the available local services. | 77 // List of 128-bit UUIDs that represent the available local services. |
| 78 // Read-only. | 78 // Read-only. |
| 79 dbus::Property<std::vector<std::string> > uuids; | 79 dbus::Property<std::vector<std::string> > uuids; |
| 80 | 80 |
| 81 Properties(dbus::ObjectProxy* object_proxy, | 81 Properties(dbus::ObjectProxy* object_proxy, |
| 82 PropertyChangedCallback callback); | 82 const PropertyChangedCallback& callback); |
| 83 virtual ~Properties(); | 83 virtual ~Properties(); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // Interface for observing changes from a local bluetooth adapter. | 86 // Interface for observing changes from a local bluetooth adapter. |
| 87 class Observer { | 87 class Observer { |
| 88 public: | 88 public: |
| 89 virtual ~Observer() {} | 89 virtual ~Observer() {} |
| 90 | 90 |
| 91 // Called when the adapter with object path |object_path| has a | 91 // Called when the adapter with object path |object_path| has a |
| 92 // change in value of the property named |property_name|. | 92 // change in value of the property named |property_name|. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 protected: | 256 protected: |
| 257 BluetoothAdapterClient(); | 257 BluetoothAdapterClient(); |
| 258 | 258 |
| 259 private: | 259 private: |
| 260 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); | 260 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 } // namespace chromeos | 263 } // namespace chromeos |
| 264 | 264 |
| 265 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 265 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
| OLD | NEW |