16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_INCLUDE_ALEXA_ALEXAINTERFACECAPABILITYAGENT_H_ 17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_INCLUDE_ALEXA_ALEXAINTERFACECAPABILITYAGENT_H_ 37 namespace capabilityAgents {
59 const std::shared_ptr<avsCommon::utils::DeviceInfo>& deviceInfo,
60 const std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface>&
61 exceptionEncounteredSender,
62 const std::shared_ptr<AlexaInterfaceMessageSenderInternalInterface>& alexaMessageSender,
63 const std::shared_ptr<acsdkAlexaEventProcessedNotifierInterfaces::AlexaEventProcessedNotifierInterface>&
64 alexaEventProcessedNotifier,
68 endpointCapabilitiesRegistrar);
79 static std::shared_ptr<AlexaInterfaceCapabilityAgent>
create(
80 const std::shared_ptr<avsCommon::utils::DeviceInfo>& deviceInfo,
82 const std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface>&
83 exceptionEncounteredSender,
84 const std::shared_ptr<AlexaInterfaceMessageSenderInternalInterface>& alexaMessageSender);
96 static std::shared_ptr<AlexaInterfaceCapabilityAgent>
create(
99 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender,
100 std::shared_ptr<AlexaInterfaceMessageSenderInternalInterface> alexaMessageSender);
106 void preHandleDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
107 void handleDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
108 void cancelDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
130 const std::shared_ptr<avsCommon::utils::DeviceInfo>& deviceInfo,
132 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender,
133 std::shared_ptr<AlexaInterfaceMessageSenderInternalInterface> alexaMessageSender,
134 const std::shared_ptr<acsdkAlexaEventProcessedNotifierInterfaces::AlexaEventProcessedNotifierInterface>&
135 alexaEventProcessedNotifier);
143 bool executeHandleEventProcessed(
const std::shared_ptr<avsCommon::avs::AVSDirective>& directive);
150 void removeDirective(
const std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo>& info);
159 void executeSendExceptionEncounteredAndReportFailed(
160 const std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo>& info,
171 void executeSendErrorResponse(
172 const std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo>& info,
177 std::shared_ptr<avsCommon::utils::DeviceInfo> m_deviceInfo;
183 std::shared_ptr<AlexaInterfaceMessageSenderInternalInterface> m_alexaMessageSender;
186 std::shared_ptr<acsdkAlexaEventProcessedNotifierInterfaces::AlexaEventProcessedNotifierInterface>
187 m_alexaEventProcessedNotifier;
197 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_INCLUDE_ALEXA_ALEXAINTERFACECAPABILITYAGENT_H_ Definition: DeviceInfo.h:31
Definition: CapabilityAgent.h:47
ErrorResponseType
Definition: AlexaInterfaceMessageSenderInterface.h:35
::std::string string
Definition: gtest-port.h:1097
Definition: AlexaInterfaceCapabilityAgent.h:43
Single-thread executor implementation.
Definition: Executor.h:45
Definition: EndpointCapabilitiesRegistrarInterface.h:35
ExceptionErrorType
Definition: ExceptionErrorType.h:28
void preHandleDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override
static std::shared_ptr< AlexaInterfaceCapabilityAgent > createDefaultAlexaInterfaceCapabilityAgent(const std::shared_ptr< avsCommon::utils::DeviceInfo > &deviceInfo, const std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionEncounteredSender, const std::shared_ptr< AlexaInterfaceMessageSenderInternalInterface > &alexaMessageSender, const std::shared_ptr< acsdkAlexaEventProcessedNotifierInterfaces::AlexaEventProcessedNotifierInterface > &alexaEventProcessedNotifier, const acsdkManufactory::Annotated< avsCommon::sdkInterfaces::endpoints::DefaultEndpointAnnotation, avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface > &endpointCapabilitiesRegistrar)
Definition: DefaultEndpointAnnotation.h:26
void handleDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override
avsCommon::avs::DirectiveHandlerConfiguration getConfiguration() const override
Definition: Annotated.h:35
std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > DirectiveHandlerConfiguration
Definition: DirectiveHandlerConfiguration.h:32
static std::shared_ptr< AlexaInterfaceCapabilityAgent > create(const std::shared_ptr< avsCommon::utils::DeviceInfo > &deviceInfo, const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier &endpointId, const std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionEncounteredSender, const std::shared_ptr< AlexaInterfaceMessageSenderInternalInterface > &alexaMessageSender)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
avsCommon::avs::CapabilityConfiguration getCapabilityConfiguration()
std::string EndpointIdentifier
Definition: EndpointIdentifier.h:38
Definition: CapabilityConfiguration.h:42
void handleDirectiveImmediately(std::shared_ptr< avsCommon::avs::AVSDirective > directive) override
void cancelDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override