OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MEDIA_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_MEDIA_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chromeos/chromeos_export.h" | |
15 #include "chromeos/dbus/dbus_client.h" | |
16 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
17 #include "dbus/property.h" | 15 #include "dbus/property.h" |
| 16 #include "device/bluetooth/bluetooth_export.h" |
| 17 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
18 | 18 |
19 namespace chromeos { | 19 namespace bluez { |
20 | 20 |
21 // BluetoothMediaClient is used to communicate with the Media interface of a | 21 // BluetoothMediaClient is used to communicate with the Media interface of a |
22 // local Bluetooth adapter. | 22 // local Bluetooth adapter. |
23 class CHROMEOS_EXPORT BluetoothMediaClient : public DBusClient { | 23 class DEVICE_BLUETOOTH_EXPORT BluetoothMediaClient : public BluezDBusClient { |
24 public: | 24 public: |
25 // Properties used to register a Media Endpoint. | 25 // Properties used to register a Media Endpoint. |
26 struct CHROMEOS_EXPORT EndpointProperties { | 26 struct DEVICE_BLUETOOTH_EXPORT EndpointProperties { |
27 EndpointProperties(); | 27 EndpointProperties(); |
28 ~EndpointProperties(); | 28 ~EndpointProperties(); |
29 | 29 |
30 // UUID of the profile implemented by the endpoint. | 30 // UUID of the profile implemented by the endpoint. |
31 std::string uuid; | 31 std::string uuid; |
32 | 32 |
33 // Assigned codec value supported by the endpoint. The byte should match the | 33 // Assigned codec value supported by the endpoint. The byte should match the |
34 // codec specification indicated by the UUID. | 34 // codec specification indicated by the UUID. |
35 // Since SBC codec is mandatory for A2DP, the default value of codec should | 35 // Since SBC codec is mandatory for A2DP, the default value of codec should |
36 // be 0x00. | 36 // be 0x00. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 static BluetoothMediaClient* Create(); | 96 static BluetoothMediaClient* Create(); |
97 | 97 |
98 protected: | 98 protected: |
99 BluetoothMediaClient(); | 99 BluetoothMediaClient(); |
100 | 100 |
101 private: | 101 private: |
102 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaClient); | 102 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaClient); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace chromeos | 105 } // namespace bluez |
106 | 106 |
107 #endif // CHROMEOS_DBUS_BLUETOOTH_MEDIA_CLIENT_H_ | 107 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_MEDIA_CLIENT_H_ |
OLD | NEW |