AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
EndpointCapabilitiesBuilder.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_SAMPLE_ENDPOINT_ENDPOINTCAPABILITIESBUILDER_H_
17 #define ACSDK_SAMPLE_ENDPOINT_ENDPOINTCAPABILITIESBUILDER_H_
18 
19 #include <list>
20 #include <memory>
21 #include <unordered_set>
22 
26 
28 
29 #ifdef ALEXA_KEYPAD_CONTROLLER
31 #endif
32 
33 #ifdef ALEXA_PLAYBACK_CONTROLLER
36 #endif
37 
38 #ifdef ALEXA_SEEK_CONTROLLER
40 #endif
41 
42 #ifdef ALEXA_VIDEO_RECORDER
44 #endif
45 
46 #ifdef ALEXA_CHANNEL_CONTROLLER
48 #endif
49 
50 #ifdef ALEXA_RECORD_CONTROLLER
52 #endif
53 
54 #ifdef ALEXA_REMOTE_VIDEO_PLAYER
56 #endif
57 
58 namespace alexaClientSDK {
59 namespace sampleApplications {
60 namespace common {
66 public:
71  EndpointCapabilitiesBuilder(std::shared_ptr<EndpointFocusAdapter> focusAdapter = nullptr);
72 
75  std::pair<std::list<Capability>, std::list<std::shared_ptr<alexaClientSDK::avsCommon::utils::RequiresShutdown>>>
78  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::ContextManagerInterface>& contextManager,
79  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface>&
80  responseSender,
81  const std::shared_ptr<alexaClientSDK::avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface>&
82  exceptionSender) override;
84 
89  std::shared_ptr<EndpointAlexaLauncherHandler> getAlexaLauncherHandler() const;
90 
91 private:
93  std::mutex m_buildCapabilitiesMutex;
94 
96  bool m_capabilitiesBuilt;
97 
99  std::shared_ptr<EndpointFocusAdapter> m_focusAdapter;
100 
102  std::shared_ptr<EndpointAlexaLauncherHandler> m_launcherHandler;
103 
104 #ifdef ALEXA_KEYPAD_CONTROLLER
105  std::shared_ptr<EndpointAlexaKeypadControllerHandler> m_keypadControllerHandler;
107 #endif
108 
109 #ifdef ALEXA_PLAYBACK_CONTROLLER
110  std::shared_ptr<EndpointAlexaPlaybackControllerHandler> m_playbackControllerHandler;
112 #endif
113 
114 #ifdef ALEXA_SEEK_CONTROLLER
115  std::shared_ptr<EndpointAlexaSeekControllerHandler> m_seekControllerHandler;
117 #endif
118 
119 #ifdef ALEXA_VIDEO_RECORDER
120  std::shared_ptr<EndpointAlexaVideoRecorderHandler> m_videoRecorderHandler;
122 #endif
123 
124 #ifdef ALEXA_CHANNEL_CONTROLLER
125  std::shared_ptr<EndpointAlexaChannelControllerHandler> m_channelControllerHandler;
127 #endif
128 
129 #ifdef ALEXA_RECORD_CONTROLLER
130  std::shared_ptr<EndpointAlexaRecordControllerHandler> m_recordControllerHandler;
132 #endif
133 
134 #ifdef ALEXA_REMOTE_VIDEO_PLAYER
135  std::shared_ptr<EndpointAlexaRemoteVideoPlayerHandler> m_remoteVideoPlayerHandler;
137 #endif
138 };
139 
140 } // namespace common
141 } // namespace sampleApplications
142 } // namespace alexaClientSDK
143 
144 #endif // ACSDK_SAMPLE_ENDPOINT_ENDPOINTCAPABILITIESBUILDER_H_
std::shared_ptr< EndpointAlexaLauncherHandler > getAlexaLauncherHandler() const
Definition: common.py:1
std::pair< std::list< Capability >, std::list< std::shared_ptr< alexaClientSDK::avsCommon::utils::RequiresShutdown > > > buildCapabilities(const alexaClientSDK::avsCommon::sdkInterfaces::endpoints::EndpointIdentifier &endpointId, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::ContextManagerInterface > &contextManager, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface > &responseSender, const std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionSender) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::string EndpointIdentifier
Definition: EndpointIdentifier.h:38
EndpointCapabilitiesBuilder(std::shared_ptr< EndpointFocusAdapter > focusAdapter=nullptr)

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