| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class BluetoothDeviceClient; | 25 class BluetoothDeviceClient; |
| 26 | 26 |
| 27 // BluetoothNodeClient is used to represent persistent device nodes | 27 // BluetoothNodeClient is used to represent persistent device nodes |
| 28 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices | 28 // bound to bluetooth devices, such as RFCOMM TTY bindings to ttyX devices |
| 29 // in Linux. | 29 // in Linux. |
| 30 class CHROMEOS_EXPORT BluetoothNodeClient { | 30 class CHROMEOS_EXPORT BluetoothNodeClient { |
| 31 public: | 31 public: |
| 32 // Structure of properties associated with persistent device nodes. | 32 // Structure of properties associated with persistent device nodes. |
| 33 struct Properties : public BluetoothPropertySet { | 33 struct Properties : public BluetoothPropertySet { |
| 34 // The name of the device node under /dev. Read-only. | 34 // The name of the device node under /dev. Read-only. |
| 35 BluetoothProperty<std::string> name; | 35 dbus::Property<std::string> name; |
| 36 | 36 |
| 37 // Object path of the device the node binding belongs to. Read-only. | 37 // Object path of the device the node binding belongs to. Read-only. |
| 38 BluetoothProperty<dbus::ObjectPath> device; | 38 dbus::Property<dbus::ObjectPath> device; |
| 39 | 39 |
| 40 Properties(dbus::ObjectProxy* object_proxy, | 40 Properties(dbus::ObjectProxy* object_proxy, |
| 41 PropertyChangedCallback callback); | 41 PropertyChangedCallback callback); |
| 42 virtual ~Properties(); | 42 virtual ~Properties(); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Interface for observing changes from a persistent device node binding. | 45 // Interface for observing changes from a persistent device node binding. |
| 46 class Observer { | 46 class Observer { |
| 47 public: | 47 public: |
| 48 virtual ~Observer() {} | 48 virtual ~Observer() {} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 protected: | 73 protected: |
| 74 BluetoothNodeClient(); | 74 BluetoothNodeClient(); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); | 77 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace chromeos | 80 } // namespace chromeos |
| 81 | 81 |
| 82 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ | 82 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ |
| OLD | NEW |