#include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "base/uuid.h"
#include "dbus/object_path.h"
#include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
namespace bluez {
base::WeakPtr<BluetoothLocalGattServiceBlueZ>
BluetoothLocalGattServiceBlueZ::Create(
BluetoothAdapterBlueZ* adapter,
const device::BluetoothUUID& uuid,
bool is_primary,
device::BluetoothLocalGattService::Delegate* delegate) { … }
BluetoothLocalGattServiceBlueZ::BluetoothLocalGattServiceBlueZ(
BluetoothAdapterBlueZ* adapter,
const device::BluetoothUUID& uuid,
bool is_primary,
device::BluetoothLocalGattService::Delegate* delegate)
: … { … }
BluetoothLocalGattServiceBlueZ::~BluetoothLocalGattServiceBlueZ() = default;
device::BluetoothUUID BluetoothLocalGattServiceBlueZ::GetUUID() const { … }
bool BluetoothLocalGattServiceBlueZ::IsPrimary() const { … }
void BluetoothLocalGattServiceBlueZ::Register(base::OnceClosure callback,
ErrorCallback error_callback) { … }
void BluetoothLocalGattServiceBlueZ::Unregister(base::OnceClosure callback,
ErrorCallback error_callback) { … }
bool BluetoothLocalGattServiceBlueZ::IsRegistered() { … }
void BluetoothLocalGattServiceBlueZ::Delete() { … }
device::BluetoothLocalGattCharacteristic*
BluetoothLocalGattServiceBlueZ::GetCharacteristic(
const std::string& identifier) { … }
base::WeakPtr<device::BluetoothLocalGattCharacteristic>
BluetoothLocalGattServiceBlueZ::CreateCharacteristic(
const device::BluetoothUUID& uuid,
device::BluetoothGattCharacteristic::Properties properties,
device::BluetoothGattCharacteristic::Permissions permissions) { … }
const std::map<dbus::ObjectPath,
std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ>>&
BluetoothLocalGattServiceBlueZ::GetCharacteristics() const { … }
dbus::ObjectPath BluetoothLocalGattServiceBlueZ::AddGuidToObjectPath(
const std::string& path) { … }
void BluetoothLocalGattServiceBlueZ::AddCharacteristic(
std::unique_ptr<BluetoothLocalGattCharacteristicBlueZ> characteristic) { … }
}