16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_PLAYBACKCONTROLLER_INCLUDE_PLAYBACKCONTROLLER_PLAYBACKCONTROLLER_H_ 17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_PLAYBACKCONTROLLER_INCLUDE_PLAYBACKCONTROLLER_PLAYBACKCONTROLLER_H_ 40 namespace capabilityAgents {
41 namespace playbackController {
48 ,
public std::enable_shared_from_this<PlaybackController> {
58 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager,
59 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender,
60 std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface> shutdownNotifier,
64 defaultEndpointCapabilitiesRegistrar);
73 static std::shared_ptr<PlaybackController>
create(
74 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager,
75 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender);
117 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager,
118 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender);
122 void doShutdown()
override;
141 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> m_messageSender;
144 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> m_contextManager;
147 std::queue<const PlaybackCommand*> m_commands;
151 std::unordered_set<std::shared_ptr<avsCommon::avs::CapabilityConfiguration>> m_capabilityConfigurations;
161 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_PLAYBACKCONTROLLER_INCLUDE_PLAYBACKCONTROLLER_PLAYBACKCONTROLLER_H_ Definition: CapabilityConfigurationInterface.h:32
void onContextAvailable(const std::string &jsonContext) override
void onContextFailure(const avsCommon::sdkInterfaces::ContextRequestError error) override
::std::string string
Definition: gtest-port.h:1097
ContextRequestError
Definition: ContextRequesterInterface.h:40
Single-thread executor implementation.
Definition: Executor.h:45
Definition: EndpointCapabilitiesRegistrarInterface.h:35
Definition: RequiresShutdown.h:32
PlaybackButton
Enumeration class for supported playback buttons.
Definition: PlaybackButtons.h:26
Definition: DefaultEndpointAnnotation.h:26
Definition: ContextRequesterInterface.h:54
Definition: Annotated.h:35
void messageSent(const PlaybackCommand &, avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status messageStatus)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::shared_ptr< PlaybackController > create(std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender)
virtual ~PlaybackController()=default
void onTogglePressed(avsCommon::avs::PlaybackToggle toggle, bool action) override
void onButtonPressed(avsCommon::avs::PlaybackButton button) override
static std::shared_ptr< PlaybackHandlerInterface > createPlaybackHandlerInterface(std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender, std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > shutdownNotifier, acsdkManufactory::Annotated< avsCommon::sdkInterfaces::endpoints::DefaultEndpointAnnotation, avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface > defaultEndpointCapabilitiesRegistrar)
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > getCapabilityConfigurations() override
Status
Definition: MessageRequestObserverInterface.h:33
Definition: PlaybackController.h:43
Definition: PlaybackCommand.h:31
PlaybackToggle
Definition: PlaybackButtons.h:46
action
Definition: upload.py:393
Definition: PlaybackHandlerInterface.h:29