| 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 CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_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 "chrome/browser/chromeos/dbus/bluetooth_device_client.h" | 15 #include "chromeos/chromeos_export.h" |
| 16 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 16 #include "chromeos/dbus/bluetooth_device_client.h" |
| 17 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 17 #include "chromeos/dbus/bluetooth_property.h" |
| 18 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 18 #include "dbus/object_path.h" | 19 #include "dbus/object_path.h" |
| 19 | 20 |
| 20 namespace dbus { | 21 namespace dbus { |
| 21 class Bus; | 22 class Bus; |
| 22 } // namespace dbus | 23 } // namespace dbus |
| 23 | 24 |
| 24 namespace chromeos { | 25 namespace chromeos { |
| 25 | 26 |
| 26 class BluetoothManagerClient; | 27 class BluetoothManagerClient; |
| 27 | 28 |
| 28 // BluetoothAdapterClient is used to communicate with a bluetooth Adapter | 29 // BluetoothAdapterClient is used to communicate with a bluetooth Adapter |
| 29 // interface. | 30 // interface. |
| 30 class BluetoothAdapterClient { | 31 class CHROMEOS_EXPORT BluetoothAdapterClient { |
| 31 public: | 32 public: |
| 32 // Structure of properties associated with bluetooth adapters. | 33 // Structure of properties associated with bluetooth adapters. |
| 33 struct Properties : public BluetoothPropertySet { | 34 struct Properties : public BluetoothPropertySet { |
| 34 // The Bluetooth device address of the adapter. Read-only. | 35 // The Bluetooth device address of the adapter. Read-only. |
| 35 BluetoothProperty<std::string> address; | 36 BluetoothProperty<std::string> address; |
| 36 | 37 |
| 37 // The Bluetooth friendly name of the adapter, unlike remote devices, | 38 // The Bluetooth friendly name of the adapter, unlike remote devices, |
| 38 // this property can be changed to change the presentation for when | 39 // this property can be changed to change the presentation for when |
| 39 // the adapter is discoverable. | 40 // the adapter is discoverable. |
| 40 BluetoothProperty<std::string> name; | 41 BluetoothProperty<std::string> name; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 234 |
| 234 protected: | 235 protected: |
| 235 BluetoothAdapterClient(); | 236 BluetoothAdapterClient(); |
| 236 | 237 |
| 237 private: | 238 private: |
| 238 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); | 239 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace chromeos | 242 } // namespace chromeos |
| 242 | 243 |
| 243 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 244 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
| OLD | NEW |