OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 DEVICE_BLUETOOTH_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "chromeos/chromeos_export.h" | |
14 #include "chromeos/dbus/dbus_client.h" | |
15 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
16 #include "dbus/property.h" | 14 #include "dbus/property.h" |
| 15 #include "device/bluetooth/bluetooth_export.h" |
| 16 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace bluez { |
19 | 19 |
20 // BluetoothInputClient is used to communicate with objects representing | 20 // BluetoothInputClient is used to communicate with objects representing |
21 // Bluetooth Input (HID) devices. | 21 // Bluetooth Input (HID) devices. |
22 class CHROMEOS_EXPORT BluetoothInputClient : public DBusClient { | 22 class DEVICE_BLUETOOTH_EXPORT BluetoothInputClient : public BluezDBusClient { |
23 public: | 23 public: |
24 // Structure of properties associated with bluetooth input devices. | 24 // Structure of properties associated with bluetooth input devices. |
25 struct Properties : public dbus::PropertySet { | 25 struct Properties : public dbus::PropertySet { |
26 // The Bluetooth input device reconnect mode. Read-only. | 26 // The Bluetooth input device reconnect mode. Read-only. |
27 dbus::Property<std::string> reconnect_mode; | 27 dbus::Property<std::string> reconnect_mode; |
28 | 28 |
29 Properties(dbus::ObjectProxy* object_proxy, | 29 Properties(dbus::ObjectProxy* object_proxy, |
30 const std::string& interface_name, | 30 const std::string& interface_name, |
31 const PropertyChangedCallback& callback); | 31 const PropertyChangedCallback& callback); |
32 ~Properties() override; | 32 ~Properties() override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Creates the instance. | 69 // Creates the instance. |
70 static BluetoothInputClient* Create(); | 70 static BluetoothInputClient* Create(); |
71 | 71 |
72 protected: | 72 protected: |
73 BluetoothInputClient(); | 73 BluetoothInputClient(); |
74 | 74 |
75 private: | 75 private: |
76 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); | 76 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace chromeos | 79 } // namespace bluez |
80 | 80 |
81 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 81 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
OLD | NEW |