16 #ifndef ALEXA_CLIENT_SDK_AFML_INCLUDE_AFML_AUDIOACTIVITYTRACKER_H_ 17 #define ALEXA_CLIENT_SDK_AFML_INCLUDE_AFML_AUDIOACTIVITYTRACKER_H_ 22 #include <unordered_map> 66 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager,
67 std::shared_ptr<acsdkShutdownManagerInterfaces::ShutdownNotifierInterface> shutdownNotifier,
71 defaultEndpointCapabilitiesRegistrar);
79 static std::shared_ptr<AudioActivityTracker>
create(
80 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager);
104 AudioActivityTracker(std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager);
108 void doShutdown()
override;
117 void executeNotifyOfActivityUpdates(
const std::vector<Channel::State>& channelStates);
126 void executeProvideState(
unsigned int stateRequestToken);
137 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> m_contextManager;
145 std::unordered_map<std::string, Channel::State> m_channelStates;
152 std::unordered_map<std::string, std::string> m_channelNamesInLowerCase;
156 std::unordered_set<std::shared_ptr<avsCommon::avs::CapabilityConfiguration>> m_capabilityConfigurations;
170 #endif // ALEXA_CLIENT_SDK_AFML_INCLUDE_AFML_AUDIOACTIVITYTRACKER_H_ static acsdkManufactory::Annotated< avsCommon::sdkInterfaces::AudioFocusAnnotation, ActivityTrackerInterface > createAudioActivityTrackerInterface(std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager, std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > shutdownNotifier, acsdkManufactory::Annotated< avsCommon::sdkInterfaces::endpoints::DefaultEndpointAnnotation, avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface > defaultEndpointCapabilitiesRegistrar)
Definition: CapabilityConfigurationInterface.h:32
Definition: NamespaceAndName.h:32
Definition: AudioActivityTracker.h:48
::std::string string
Definition: gtest-port.h:1097
Definition: ActivityTrackerInterface.h:31
Single-thread executor implementation.
Definition: Executor.h:45
Definition: EndpointCapabilitiesRegistrarInterface.h:35
Definition: RequiresShutdown.h:32
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > getCapabilityConfigurations() override
Definition: DefaultEndpointAnnotation.h:26
Definition: Annotated.h:35
Definition: StateProviderInterface.h:32
void notifyOfActivityUpdates(const std::vector< Channel::State > &channelStates) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::shared_ptr< AudioActivityTracker > create(std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager)
void provideState(const avsCommon::avs::NamespaceAndName &stateProviderName, unsigned int stateRequestToken) override