AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Attributes | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager Class Reference

#include <MockBluetoothDeviceManager.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager:
Collaboration graph
[legend]

Public Member 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
 
 MockBluetoothDeviceManager (std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface > hostcontroller, std::list< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface >> discoveredDevices, std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus)
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceManagerInterface
virtual ~BluetoothDeviceManagerInterface ()=default
 

Protected Attributes

std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterfacem_hostController
 
std::list< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > > m_discoveredDevices
 
std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBusm_eventBus
 

Detailed Description

Mock class that implements the BluetoothDeviceManagerInterface.

Constructor & Destructor Documentation

◆ MockBluetoothDeviceManager()

alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::MockBluetoothDeviceManager ( std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface hostcontroller,
std::list< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface >>  discoveredDevices,
std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus eventBus 
)
inline

Constructor

Parameters
hostcontrollerBluetoothHostController
discoveredDevicesa list of discovered devices.
eventBusBluetoothEventBus.

Member Function Documentation

◆ getDiscoveredDevices()

std::list< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::getDiscoveredDevices ( )
inlineoverridevirtual

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< avsCommon::utils::bluetooth::BluetoothEventBus > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::getEventBus ( )
inlineoverridevirtual

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< avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::getHostController ( )
inlineoverridevirtual

Member Data Documentation

◆ m_discoveredDevices

std::list<std::shared_ptr<avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface> > alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::m_discoveredDevices
protected

◆ m_eventBus

std::shared_ptr<avsCommon::utils::bluetooth::BluetoothEventBus> alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::m_eventBus
protected

◆ m_hostController

std::shared_ptr<avsCommon::sdkInterfaces::bluetooth::BluetoothHostControllerInterface> alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::test::MockBluetoothDeviceManager::m_hostController
protected

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

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