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_ADAPTER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_ADAPTER_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 "base/values.h" | 13 #include "base/values.h" |
14 #include "chromeos/chromeos_export.h" | 14 #include "chromeos/chromeos_export.h" |
15 #include "chromeos/dbus/dbus_client.h" | 15 #include "chromeos/dbus/dbus_client.h" |
16 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
17 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
18 #include "dbus/property.h" | 17 #include "dbus/property.h" |
19 | 18 |
20 namespace chromeos { | 19 namespace chromeos { |
21 | 20 |
22 // BluetoothAdapterClient is used to communicate with objects representing | 21 // BluetoothAdapterClient is used to communicate with objects representing |
23 // local Bluetooth Adapters. | 22 // local Bluetooth Adapters. |
24 class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient { | 23 class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient { |
25 public: | 24 public: |
26 // Structure of properties associated with bluetooth adapters. | 25 // Structure of properties associated with bluetooth adapters. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 131 |
133 // Removes from the adapter with object path |object_path| the remote | 132 // Removes from the adapter with object path |object_path| the remote |
134 // device with object path |object_path| from the list of known devices | 133 // device with object path |object_path| from the list of known devices |
135 // and discards any pairing information. | 134 // and discards any pairing information. |
136 virtual void RemoveDevice(const dbus::ObjectPath& object_path, | 135 virtual void RemoveDevice(const dbus::ObjectPath& object_path, |
137 const dbus::ObjectPath& device_path, | 136 const dbus::ObjectPath& device_path, |
138 const base::Closure& callback, | 137 const base::Closure& callback, |
139 const ErrorCallback& error_callback) = 0; | 138 const ErrorCallback& error_callback) = 0; |
140 | 139 |
141 // Creates the instance. | 140 // Creates the instance. |
142 static BluetoothAdapterClient* Create(DBusClientImplementationType type); | 141 static BluetoothAdapterClient* Create(); |
143 | 142 |
144 // Constants used to indicate exceptional error conditions. | 143 // Constants used to indicate exceptional error conditions. |
145 static const char kNoResponseError[]; | 144 static const char kNoResponseError[]; |
146 static const char kUnknownAdapterError[]; | 145 static const char kUnknownAdapterError[]; |
147 | 146 |
148 protected: | 147 protected: |
149 BluetoothAdapterClient(); | 148 BluetoothAdapterClient(); |
150 | 149 |
151 private: | 150 private: |
152 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); | 151 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); |
153 }; | 152 }; |
154 | 153 |
155 } // namespace chromeos | 154 } // namespace chromeos |
156 | 155 |
157 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ | 156 #endif // CHROMEOS_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ |
OLD | NEW |