AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AlexaPresentationFeatureClient.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 ACSDK_ALEXAPRESENTATIONFEATURECLIENT_ALEXAPRESENTATIONFEATURECLIENT_H_
17 #define ACSDK_ALEXAPRESENTATIONFEATURECLIENT_ALEXAPRESENTATIONFEATURECLIENT_H_
18 
19 #include <memory>
20 
33 
34 namespace alexaClientSDK {
35 namespace featureClient {
43 public:
57  static std::unique_ptr<AlexaPresentationFeatureClient> create(
58  std::string aplVersion,
59  std::shared_ptr<aplCapabilityCommonInterfaces::VisualStateProviderInterface> stateProviderInterface,
60  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface>&
61  exceptionSender,
62  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::AVSConnectionManagerInterface>&
63  connectionManager,
64  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::ContextManagerInterface>& contextManager,
65  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointBuilderInterface>&
66  endpointBuilder,
67  const std::shared_ptr<alexaClientSDK::avsCommon::utils::metrics::MetricRecorderInterface>& metricRecorder,
68  const std::shared_ptr<sdkClient::SDKClientRegistry>& sdkClientRegistry);
69 
72  bool configure(const std::shared_ptr<alexaClientSDK::sdkClient::SDKClientRegistry>& sdkClientRegistry) override;
73  void doShutdown() override;
75 
81  std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentInterface> getAPLCapabilityAgent() const;
82 
89  std::shared_ptr<alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterface>
91 
98  std::weak_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface> observer);
99 
107  std::weak_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface> observer);
108 
111 
112 private:
121  std::shared_ptr<alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterface> alexaPresentationCA,
122  std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentInterface> aplCapabilityAgent,
123  std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentNotifierInterface> aplCapabilityAgentNotifier,
124  std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownManagerInterface> shutdownManager);
125 
127  std::shared_ptr<alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterface> m_alexaPresentationCA;
128 
130  std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentInterface> m_aplCapabilityAgent;
131 
133  std::shared_ptr<aplCapabilityCommonInterfaces::APLCapabilityAgentNotifierInterface> m_aplCapabilityAgentNotifier;
134 
136  std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownManagerInterface> m_shutdownManager;
137 };
138 } // namespace featureClient
139 } // namespace alexaClientSDK
140 #endif // ACSDK_ALEXAPRESENTATIONFEATURECLIENT_ALEXAPRESENTATIONFEATURECLIENT_H_
Definition: AlexaPresentationFeatureClient.h:42
::std::string string
Definition: gtest-port.h:1097
void removeAPLCapabilityAgentObserver(std::weak_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface > observer)
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
Definition: FeatureClientInterface.h:37
static std::unique_ptr< AlexaPresentationFeatureClient > create(std::string aplVersion, std::shared_ptr< aplCapabilityCommonInterfaces::VisualStateProviderInterface > stateProviderInterface, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionSender, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AVSConnectionManagerInterface > &connectionManager, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::ContextManagerInterface > &contextManager, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointBuilderInterface > &endpointBuilder, const std::shared_ptr< alexaClientSDK::avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder, const std::shared_ptr< sdkClient::SDKClientRegistry > &sdkClientRegistry)
std::shared_ptr< alexaPresentationInterfaces::AlexaPresentationCapabilityAgentInterface > getAlexaPresentationCapabilityAgent() const
std::shared_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentInterface > getAPLCapabilityAgent() const
void addAPLCapabilityAgentObserver(std::weak_ptr< aplCapabilityCommonInterfaces::APLCapabilityAgentObserverInterface > observer)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool configure(const std::shared_ptr< alexaClientSDK::sdkClient::SDKClientRegistry > &sdkClientRegistry) override

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