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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // BluetoothManagerClient is used to communicate with the bluetooth | 24 // BluetoothManagerClient is used to communicate with the bluetooth |
25 // daemon's Manager interface. | 25 // daemon's Manager interface. |
26 class CHROMEOS_EXPORT BluetoothManagerClient { | 26 class CHROMEOS_EXPORT BluetoothManagerClient { |
27 public: | 27 public: |
28 // Structure of properties associated with the bluetooth manager. | 28 // Structure of properties associated with the bluetooth manager. |
29 struct Properties : public BluetoothPropertySet { | 29 struct Properties : public BluetoothPropertySet { |
30 // List of object paths of local Bluetooth adapters. Read-only. | 30 // List of object paths of local Bluetooth adapters. Read-only. |
31 dbus::Property<std::vector<dbus::ObjectPath> > adapters; | 31 dbus::Property<std::vector<dbus::ObjectPath> > adapters; |
32 | 32 |
33 Properties(dbus::ObjectProxy* object_proxy, | 33 Properties(dbus::ObjectProxy* object_proxy, |
34 PropertyChangedCallback callback); | 34 const PropertyChangedCallback& callback); |
35 virtual ~Properties(); | 35 virtual ~Properties(); |
36 }; | 36 }; |
37 | 37 |
38 // Interface for observing changes from the bluetooth manager. | 38 // Interface for observing changes from the bluetooth manager. |
39 class Observer { | 39 class Observer { |
40 public: | 40 public: |
41 virtual ~Observer() {} | 41 virtual ~Observer() {} |
42 | 42 |
43 // Called when the manager has a change in value of the property | 43 // Called when the manager has a change in value of the property |
44 // named |property_name|. | 44 // named |property_name|. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 protected: | 91 protected: |
92 BluetoothManagerClient(); | 92 BluetoothManagerClient(); |
93 | 93 |
94 private: | 94 private: |
95 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); | 95 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace chromeos | 98 } // namespace chromeos |
99 | 99 |
100 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ | 100 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ |
OLD | NEW |