AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Factories.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SPEAKERMANAGER_SPEAKERMANAGER_INCLUDE_ACSDK_SPEAKERMANAGER_FACTORIES_H_
17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SPEAKERMANAGER_SPEAKERMANAGER_INCLUDE_ACSDK_SPEAKERMANAGER_FACTORIES_H_
18 
19 #include <memory>
20 
39 
40 namespace alexaClientSDK {
41 namespace speakerManager {
42 
76 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> createSpeakerManagerCapabilityAgent(
77  std::shared_ptr<SpeakerManagerConfigInterface> config,
78  std::shared_ptr<SpeakerManagerStorageInterface> storage,
79  std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager,
80  std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender,
81  std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender,
82  std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> metricRecorder,
83  const std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface>& shutdownNotifier,
84  const std::shared_ptr<avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface>&
85  endpointCapabilitiesRegistrar,
86  const std::vector<std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeInterface>>& volumeInterfaces =
87  {}) noexcept;
88 
94 std::shared_ptr<avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface> createChannelVolumeFactory() noexcept;
95 
107 std::shared_ptr<SpeakerManagerStorageInterface> createSpeakerManagerStorage(
108  std::shared_ptr<avsCommon::sdkInterfaces::storage::MiscStorageInterface> storage) noexcept;
109 
138 std::shared_ptr<SpeakerManagerConfigInterface> createSpeakerManagerConfig() noexcept;
139 
140 } // namespace speakerManager
141 } // namespace alexaClientSDK
142 
143 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SPEAKERMANAGER_SPEAKERMANAGER_INCLUDE_ACSDK_SPEAKERMANAGER_FACTORIES_H_
std::shared_ptr< SpeakerManagerStorageInterface > createSpeakerManagerStorage(std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > storage) noexcept
Adapt generic MiscStorageInterface into SpeakerManagerStorageInterface.
std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > createSpeakerManagerCapabilityAgent(std::shared_ptr< SpeakerManagerConfigInterface > config, std::shared_ptr< SpeakerManagerStorageInterface > storage, std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender, std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender, std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder, const std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > &shutdownNotifier, const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface > &endpointCapabilitiesRegistrar, const std::vector< std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeInterface >> &volumeInterfaces={}) noexcept
Creates speaker manager CA.
std::shared_ptr< avsCommon::sdkInterfaces::ChannelVolumeFactoryInterface > createChannelVolumeFactory() noexcept
Create default implementation of ChannelVolumeFactoryInterface.
Definition: CapabilityConfiguration.h:190
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
std::shared_ptr< SpeakerManagerConfigInterface > createSpeakerManagerConfig() noexcept
Creates configuration interface for speaker manager.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36

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