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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
6 #define 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 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 // BluetoothManagerClient is used to communicate with the bluetooth | 25 // BluetoothManagerClient is used to communicate with the bluetooth |
26 // daemon's Manager interface. | 26 // daemon's Manager interface. |
27 class CHROMEOS_EXPORT BluetoothManagerClient { | 27 class CHROMEOS_EXPORT BluetoothManagerClient { |
28 public: | 28 public: |
29 // Structure of properties associated with the bluetooth manager. | 29 // Structure of properties associated with the bluetooth manager. |
30 struct Properties : public BluetoothPropertySet { | 30 struct Properties : public BluetoothPropertySet { |
31 // List of object paths of local Bluetooth adapters. Read-only. | 31 // List of object paths of local Bluetooth adapters. Read-only. |
32 BluetoothProperty<std::vector<dbus::ObjectPath> > adapters; | 32 dbus::Property<std::vector<dbus::ObjectPath> > adapters; |
33 | 33 |
34 Properties(dbus::ObjectProxy* object_proxy, | 34 Properties(dbus::ObjectProxy* object_proxy, |
35 PropertyChangedCallback callback); | 35 PropertyChangedCallback callback); |
36 virtual ~Properties(); | 36 virtual ~Properties(); |
37 }; | 37 }; |
38 | 38 |
39 // Interface for observing changes from the bluetooth manager. | 39 // Interface for observing changes from the bluetooth manager. |
40 class Observer { | 40 class Observer { |
41 public: | 41 public: |
42 virtual ~Observer() {} | 42 virtual ~Observer() {} |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 protected: | 92 protected: |
93 BluetoothManagerClient(); | 93 BluetoothManagerClient(); |
94 | 94 |
95 private: | 95 private: |
96 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); | 96 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace chromeos | 99 } // namespace chromeos |
100 | 100 |
101 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ | 101 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
OLD | NEW |