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_INPUT_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // BluetoothInputClient is used to communicate with the Input interface | 27 // BluetoothInputClient is used to communicate with the Input interface |
28 // of a bluetooth device, rather than the generic device interface. Input | 28 // of a bluetooth device, rather than the generic device interface. Input |
29 // devices are those conforming to the Bluetooth SIG HID (Human Interface | 29 // devices are those conforming to the Bluetooth SIG HID (Human Interface |
30 // Device) Profile such as keyboards, mice, trackpads and joysticks. | 30 // Device) Profile such as keyboards, mice, trackpads and joysticks. |
31 class CHROMEOS_EXPORT BluetoothInputClient { | 31 class CHROMEOS_EXPORT BluetoothInputClient { |
32 public: | 32 public: |
33 // Structure of properties associated with bluetooth input devices. | 33 // Structure of properties associated with bluetooth input devices. |
34 struct Properties : public BluetoothPropertySet { | 34 struct Properties : public BluetoothPropertySet { |
35 // Indicates that the device is currently connected. Read-only. | 35 // Indicates that the device is currently connected. Read-only. |
36 BluetoothProperty<bool> connected; | 36 dbus::Property<bool> connected; |
37 | 37 |
38 Properties(dbus::ObjectProxy* object_proxy, | 38 Properties(dbus::ObjectProxy* object_proxy, |
39 PropertyChangedCallback callback); | 39 PropertyChangedCallback callback); |
40 virtual ~Properties(); | 40 virtual ~Properties(); |
41 }; | 41 }; |
42 | 42 |
43 // Interface for observing changes from a bluetooth input device. | 43 // Interface for observing changes from a bluetooth input device. |
44 class Observer { | 44 class Observer { |
45 public: | 45 public: |
46 virtual ~Observer() {} | 46 virtual ~Observer() {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 protected: | 105 protected: |
106 BluetoothInputClient(); | 106 BluetoothInputClient(); |
107 | 107 |
108 private: | 108 private: |
109 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); | 109 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace chromeos | 112 } // namespace chromeos |
113 | 113 |
114 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 114 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
OLD | NEW |