AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager Class Reference

#include <BlueZBluetoothDeviceManager.h>

Inheritance diagram for alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager:
Collaboration graph
[legend]

Public Member Functions

virtual ~BlueZBluetoothDeviceManager () override
 
BluetoothDeviceManagerInterface Functions
std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterfacegetHostController () override
 
std::list< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > > getDiscoveredDevices () override
 
std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBusgetEventBus () override
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterface
virtual ~BluetoothDeviceManagerInterface ()=default
 

Static Public Member Functions

static std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterfacecreateBluetoothDeviceManagerInterface (std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus)
 
static std::unique_ptr< BlueZBluetoothDeviceManagercreate (std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus)
 

Detailed Description

BlueZ implementation of BluetoothDeviceManagerInterface. This class is required to allow only one instance of BluetoothDeviceManagerInterface in the SDK.

Constructor & Destructor Documentation

◆ ~BlueZBluetoothDeviceManager()

alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::~BlueZBluetoothDeviceManager ( )
overridevirtual

Member Function Documentation

◆ create()

std::unique_ptr< BlueZBluetoothDeviceManager > alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::create ( std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus eventBus)
static

Factory method to create a class.

Deprecated:
Parameters
eventBusBluethoothEvent typed EventBus to be used for event routing.
Returns
A new instance of BlueZBluetoothDeviceManager on success, nullptr otherwise.

◆ createBluetoothDeviceManagerInterface()

std::shared_ptr< BluetoothDeviceManagerInterface > alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::createBluetoothDeviceManagerInterface ( std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus eventBus)
static

Factory method to create a BluetoothDeviceManagerInterface.

Parameters
eventBusBluetoothEvent typed EventBus to be used for event routing.
Returns
A unique pointer to a new BluetoothDeviceManagerInterface on success, nullptr otherwise.

◆ getDiscoveredDevices()

std::list< std::shared_ptr< BluetoothDeviceInterface > > alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::getDiscoveredDevices ( )
overridevirtual

Get a list of devices the Host Controller is aware of. This list must contain:

i) Paired devices. ii) Devices found during the scanning process.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterface.

◆ getEventBus()

std::shared_ptr< BluetoothEventBus > alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::getEventBus ( )
overridevirtual

Get the BluetoothEventBus used by this device manager to post bluetooth related events.

Returns
A BluetoothEventBus object associated with the device manager.

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterface.

◆ getHostController()

std::shared_ptr< BluetoothHostControllerInterface > alexaClientSDK::bluetoothImplementations::blueZ::BlueZBluetoothDeviceManager::getHostController ( )
overridevirtual

Get BluetoothHostControllerInterface instance

Returns
Pointer to a BluetoothHostControllerInterface instance

Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterface.


The documentation for this class was generated from the following files:

AlexaClientSDK 1.26.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0