15 #ifndef ALEXA_CLIENT_SDK_ACSDKMULTIROOMMUSIC_INCLUDE_ACSDKMULTIROOMMUSIC_MRMCAPABILITYAGENT_H_ 16 #define ALEXA_CLIENT_SDK_ACSDKMULTIROOMMUSIC_INCLUDE_ACSDKMULTIROOMMUSIC_MRMCAPABILITYAGENT_H_ 42 namespace capabilityAgents {
57 ,
public std::enable_shared_from_this<MRMCapabilityAgent> {
73 static std::shared_ptr<MRMCapabilityAgent>
create(
74 std::shared_ptr<MRMHandlerInterface> mrmHandler,
75 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> speakerManager,
76 std::shared_ptr<avsCommon::sdkInterfaces::UserInactivityMonitorInterface> userInactivityMonitor,
77 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender);
130 std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsObserverInterface> observer)
override;
161 std::shared_ptr<MRMHandlerInterface> handler,
162 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> speakerManager,
163 std::shared_ptr<avsCommon::sdkInterfaces::UserInactivityMonitorInterface> userInactivityMonitor,
164 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender);
182 void executeHandleDirectiveImmediately(std::shared_ptr<DirectiveInfo> info);
191 void executeOnSpeakerSettingsChanged(
204 void executeOnDialogUXStateChanged(
211 void executeOnUserInactivityReportSent();
218 void executeSetObserver(std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsObserverInterface> observer);
223 std::shared_ptr<MRMHandlerInterface> m_mrmHandler;
225 std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> m_speakerManager;
227 std::shared_ptr<avsCommon::sdkInterfaces::UserInactivityMonitorInterface> m_userInactivityMonitor;
229 bool m_wasPreviouslyActive;
242 #endif // ALEXA_CLIENT_SDK_ACSDKMULTIROOMMUSIC_INCLUDE_ACSDKMULTIROOMMUSIC_MRMCAPABILITYAGENT_H_ Definition: CapabilityAgent.h:47
std::string getVersionString() const
Definition: CapabilityConfigurationInterface.h:32
void onSpeakerSettingsChanged(const avsCommon::sdkInterfaces::SpeakerManagerObserverInterface::Source &source, const avsCommon::sdkInterfaces::ChannelVolumeInterface::Type &type, const avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings &settings) override
void onDialogUXStateChanged(avsCommon::sdkInterfaces::DialogUXStateObserverInterface::DialogUXState newState) override
void setObserver(std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsObserverInterface > observer) override
::std::string string
Definition: gtest-port.h:1097
Single-thread executor implementation.
Definition: Executor.h:45
Type
Definition: ChannelVolumeInterface.h:37
void doShutdown() override
Definition: RequiresShutdown.h:32
~MRMCapabilityAgent() override
avsCommon::avs::DirectiveHandlerConfiguration getConfiguration() const override
Definition: CallStateObserverInterface.h:28
DialogUXState
The different dialog specific AVS UX states.
Definition: DialogUXStateObserverInterface.h:32
Definition: UserInactivityMonitorObserverInterface.h:26
CallState
An enumeration representing the state of a call.
Definition: CallStateObserverInterface.h:31
std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > DirectiveHandlerConfiguration
Definition: DirectiveHandlerConfiguration.h:32
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > getCapabilityConfigurations() override
static std::shared_ptr< MRMCapabilityAgent > create(std::shared_ptr< MRMHandlerInterface > mrmHandler, std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > speakerManager, std::shared_ptr< avsCommon::sdkInterfaces::UserInactivityMonitorInterface > userInactivityMonitor, std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender)
Definition: SpeakerManagerObserverInterface.h:32
void onUserInactivityReportSent() override
Definition: SpeakerInterface.h:42
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void cancelDirective(std::shared_ptr< DirectiveInfo > info) override
type
Definition: upload.py:443
Definition: MRMCapabilityAgent.h:48
Definition: MultiTimer.h:39
void handleDirective(std::shared_ptr< DirectiveInfo > info) override
void onCallStateChange(avsCommon::sdkInterfaces::CallStateObserverInterface::CallState callState) override
Source
Indicates whether the source of the call is from an AVS Directive or through a Local API call...
Definition: SpeakerManagerObserverInterface.h:35
void handleDirectiveImmediately(std::shared_ptr< avsCommon::avs::AVSDirective > directive) override
Definition: RenderPlayerInfoCardsProviderInterface.h:30
void preHandleDirective(std::shared_ptr< DirectiveInfo > info) override
A dialog specific UX state observer.
Definition: DialogUXStateObserverInterface.h:29