| 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_GATT_MANAGER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/dbus_client.h" | |
| 13 #include "dbus/object_path.h" | 12 #include "dbus/object_path.h" |
| 13 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace bluez { |
| 16 | 16 |
| 17 // BluetoothGattManagerClient is used to communicate with the GATT Service | 17 // BluetoothGattManagerClient is used to communicate with the GATT Service |
| 18 // manager object of the Bluetooth daemon. | 18 // manager object of the Bluetooth daemon. |
| 19 class CHROMEOS_EXPORT BluetoothGattManagerClient : public DBusClient { | 19 class CHROMEOS_EXPORT BluetoothGattManagerClient : public BluezDBusClient { |
| 20 public: | 20 public: |
| 21 // Options used to register a GATT service hierarchy. | 21 // Options used to register a GATT service hierarchy. |
| 22 struct CHROMEOS_EXPORT Options { | 22 struct CHROMEOS_EXPORT Options { |
| 23 // TODO(armansito): This parameter is not yet clearly defined. Add fields | 23 // TODO(armansito): This parameter is not yet clearly defined. Add fields |
| 24 // later as we know more about how this will be used. | 24 // later as we know more about how this will be used. |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 ~BluetoothGattManagerClient() override; | 27 ~BluetoothGattManagerClient() override; |
| 28 | 28 |
| 29 // The ErrorCallback is used by GATT manager methods to indicate failure. It | 29 // The ErrorCallback is used by GATT manager methods to indicate failure. It |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 // Constants used to indicate exceptional error conditions. | 60 // Constants used to indicate exceptional error conditions. |
| 61 static const char kNoResponseError[]; | 61 static const char kNoResponseError[]; |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 BluetoothGattManagerClient(); | 64 BluetoothGattManagerClient(); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient); | 67 DISALLOW_COPY_AND_ASSIGN(BluetoothGattManagerClient); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace chromeos | 70 } // namespace bluez |
| 71 | 71 |
| 72 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ | 72 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_MANAGER_CLIENT_H_ |
| OLD | NEW |