16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYAGENT_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYAGENT_H_ 20 #include <unordered_map> 68 std::shared_ptr<AVSDirective> directive,
69 std::unique_ptr<sdkInterfaces::DirectiveHandlerResultInterface> result)
override final;
88 std::shared_ptr<sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender);
103 std::shared_ptr<AVSDirective> directiveIn,
104 std::unique_ptr<sdkInterfaces::DirectiveHandlerResultInterface> resultIn);
115 std::shared_ptr<sdkInterfaces::DirectiveHandlerResultInterface>
result;
131 std::shared_ptr<AVSDirective> directive,
132 std::unique_ptr<sdkInterfaces::DirectiveHandlerResultInterface> result);
195 std::shared_ptr<DirectiveInfo> info,
231 std::shared_ptr<DirectiveInfo> getDirectiveInfo(
const std::string& messageId);
234 std::unordered_map<std::string, std::shared_ptr<DirectiveInfo>> m_directiveInfoMap;
244 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYAGENT_H_ Definition: CapabilityAgent.h:47
MixingBehavior
Definition: MixingBehavior.h:25
void cancelDirective(const std::string &messageId) override final
void preHandleDirective(std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) override final
const std::pair< std::string, std::string > buildJsonEventString(const std::string &eventName, const std::string &dialogRequestIdString="", const std::string &payload="{}", const std::string &context="") const
std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > m_exceptionEncounteredSender
Object to use to send exceptionEncountered messages.
Definition: CapabilityAgent.h:222
::std::string string
Definition: gtest-port.h:1097
virtual std::shared_ptr< DirectiveInfo > createDirectiveInfo(std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result)
ExceptionErrorType
Definition: ExceptionErrorType.h:28
std::shared_ptr< AVSDirective > directive
AVSDirective that is passed during preHandle.
Definition: CapabilityAgent.h:112
FocusState
Definition: FocusState.h:29
Definition: ContextRequesterInterface.h:54
void onDeregistered() override
void sendExceptionEncounteredAndReportFailed(std::shared_ptr< DirectiveInfo > info, const std::string &message, avsCommon::avs::ExceptionErrorType type=avsCommon::avs::ExceptionErrorType::INTERNAL_ERROR)
Definition: StateProviderInterface.h:32
CapabilityAgent(const std::string &nameSpace, std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender)
std::shared_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result
DirectiveHandlerResultInterface.
Definition: CapabilityAgent.h:115
virtual ~DirectiveInfo()=default
void removeDirective(const std::string &messageId)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: ChannelObserverInterface.h:29
virtual ~CapabilityAgent()=default
type
Definition: upload.py:443
Definition: DirectiveHandlerInterface.h:39
void onFocusChanged(FocusState newFocus, MixingBehavior behavior) override
const std::string m_namespace
The namespace of the capability agent.
Definition: CapabilityAgent.h:219
Definition: CapabilityAgent.h:94
bool handleDirective(const std::string &messageId) override final
DirectiveInfo(std::shared_ptr< AVSDirective > directiveIn, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > resultIn)
std::atomic< bool > isCancelled
Flag to indicate whether the directive is cancelled.
Definition: CapabilityAgent.h:118
tuple message
Definition: gtest_output_test.py:331