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

#include <DeviceConnectionRulesAdapter.h>

Inheritance diagram for alexaClientSDK::acsdkBluetooth::DeviceConnectionRulesAdapter:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkBluetooth::DeviceConnectionRulesAdapter:
Collaboration graph
[legend]

Public Member Functions

 DeviceConnectionRulesAdapter (std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface >> rules)
 
BluetoothDeviceConnectionRulesProviderInterface
std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface > > getRules () override
 
- Public Member Functions inherited from alexaClientSDK::acsdkBluetoothInterfaces::BluetoothDeviceConnectionRulesProviderInterface
virtual ~BluetoothDeviceConnectionRulesProviderInterface ()=default
 

Detailed Description

This class is provided to maintain backwards compatibility with applications that have not yet implemented a custom BluetoothDeviceConnectionRulesProviderInterface (if the default BasicDeviceConnectionRulesProvider is insufficient).

This class adapts unordered sets of BluetoothDeviceConnectionRules into a BluetoothDeviceConnectionRulesProviderInterface.

Constructor & Destructor Documentation

◆ DeviceConnectionRulesAdapter()

alexaClientSDK::acsdkBluetooth::DeviceConnectionRulesAdapter::DeviceConnectionRulesAdapter ( std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface >>  rules)

Constructor.

Parameters
rulesThe set of BluetoothDeviceConnectionRuleInterfaces to provide.

Member Function Documentation

◆ getRules()

std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface > > alexaClientSDK::acsdkBluetooth::DeviceConnectionRulesAdapter::getRules ( )
overridevirtual

Returns the unordered set of BluetoothDeviceConnectionRuleInterfaces added to this provider.

Returns
The set of rules.

Implements alexaClientSDK::acsdkBluetoothInterfaces::BluetoothDeviceConnectionRulesProviderInterface.


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