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_NODE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 public: | 30 public: |
31 // Structure of properties associated with persistent device nodes. | 31 // Structure of properties associated with persistent device nodes. |
32 struct Properties : public BluetoothPropertySet { | 32 struct Properties : public BluetoothPropertySet { |
33 // The name of the device node under /dev. Read-only. | 33 // The name of the device node under /dev. Read-only. |
34 dbus::Property<std::string> name; | 34 dbus::Property<std::string> name; |
35 | 35 |
36 // Object path of the device the node binding belongs to. Read-only. | 36 // Object path of the device the node binding belongs to. Read-only. |
37 dbus::Property<dbus::ObjectPath> device; | 37 dbus::Property<dbus::ObjectPath> device; |
38 | 38 |
39 Properties(dbus::ObjectProxy* object_proxy, | 39 Properties(dbus::ObjectProxy* object_proxy, |
40 PropertyChangedCallback callback); | 40 const PropertyChangedCallback& callback); |
41 virtual ~Properties(); | 41 virtual ~Properties(); |
42 }; | 42 }; |
43 | 43 |
44 // Interface for observing changes from a persistent device node binding. | 44 // Interface for observing changes from a persistent device node binding. |
45 class Observer { | 45 class Observer { |
46 public: | 46 public: |
47 virtual ~Observer() {} | 47 virtual ~Observer() {} |
48 | 48 |
49 // Called when the node binding with object path |object_path| has a | 49 // Called when the node binding with object path |object_path| has a |
50 // change in value of the property named |property_name|. | 50 // change in value of the property named |property_name|. |
(...skipping 21 matching lines...) Expand all Loading... |
72 protected: | 72 protected: |
73 BluetoothNodeClient(); | 73 BluetoothNodeClient(); |
74 | 74 |
75 private: | 75 private: |
76 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); | 76 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace chromeos | 79 } // namespace chromeos |
80 | 80 |
81 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 81 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
OLD | NEW |