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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 13 #include "chromeos/chromeos_export.h" |
14 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 14 #include "chromeos/dbus/bluetooth_property.h" |
| 15 #include "chromeos/dbus/dbus_client_implementation_type.h" |
15 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
16 | 17 |
17 namespace dbus { | 18 namespace dbus { |
18 class Bus; | 19 class Bus; |
19 } // namespace dbus | 20 } // namespace dbus |
20 | 21 |
21 namespace chromeos { | 22 namespace chromeos { |
22 | 23 |
23 // BluetoothManagerClient is used to communicate with the bluetooth | 24 // BluetoothManagerClient is used to communicate with the bluetooth |
24 // daemon's Manager interface. | 25 // daemon's Manager interface. |
25 class BluetoothManagerClient { | 26 class CHROMEOS_EXPORT BluetoothManagerClient { |
26 public: | 27 public: |
27 // Structure of properties associated with the bluetooth manager. | 28 // Structure of properties associated with the bluetooth manager. |
28 struct Properties : public BluetoothPropertySet { | 29 struct Properties : public BluetoothPropertySet { |
29 // List of object paths of local Bluetooth adapters. Read-only. | 30 // List of object paths of local Bluetooth adapters. Read-only. |
30 BluetoothProperty<std::vector<dbus::ObjectPath> > adapters; | 31 BluetoothProperty<std::vector<dbus::ObjectPath> > adapters; |
31 | 32 |
32 Properties(dbus::ObjectProxy* object_proxy, | 33 Properties(dbus::ObjectProxy* object_proxy, |
33 PropertyChangedCallback callback); | 34 PropertyChangedCallback callback); |
34 virtual ~Properties(); | 35 virtual ~Properties(); |
35 }; | 36 }; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 90 |
90 protected: | 91 protected: |
91 BluetoothManagerClient(); | 92 BluetoothManagerClient(); |
92 | 93 |
93 private: | 94 private: |
94 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); | 95 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace chromeos | 98 } // namespace chromeos |
98 | 99 |
99 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ | 100 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
OLD | NEW |