| 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_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 16 #include "chromeos/chromeos_export.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 BluetoothAdapterClient; | 27 class BluetoothAdapterClient; |
| 27 | 28 |
| 28 // BluetoothDeviceClient is used to communicate with a bluetooth Device | 29 // BluetoothDeviceClient is used to communicate with a bluetooth Device |
| 29 // interface. | 30 // interface. |
| 30 class BluetoothDeviceClient { | 31 class CHROMEOS_EXPORT BluetoothDeviceClient { |
| 31 public: | 32 public: |
| 32 // Structure of properties associated with bluetooth devices. | 33 // Structure of properties associated with bluetooth devices. |
| 33 struct Properties : public BluetoothPropertySet { | 34 struct Properties : public BluetoothPropertySet { |
| 34 // The Bluetooth device address of the device. Read-only. | 35 // The Bluetooth device address of the device. Read-only. |
| 35 BluetoothProperty<std::string> address; | 36 BluetoothProperty<std::string> address; |
| 36 | 37 |
| 37 // The Bluetooth friendly name of the device. Read-only, to give a | 38 // The Bluetooth friendly name of the device. Read-only, to give a |
| 38 // different local name, use the |alias| property. | 39 // different local name, use the |alias| property. |
| 39 BluetoothProperty<std::string> name; | 40 BluetoothProperty<std::string> name; |
| 40 | 41 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 202 |
| 202 protected: | 203 protected: |
| 203 BluetoothDeviceClient(); | 204 BluetoothDeviceClient(); |
| 204 | 205 |
| 205 private: | 206 private: |
| 206 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); | 207 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 } // namespace chromeos | 210 } // namespace chromeos |
| 210 | 211 |
| 211 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 212 #endif // CHROMEOS_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| OLD | NEW |