16 #ifndef ACSDK_SAMPLE_ENDPOINT_ENDPOINTALEXALAUNCHERHANDLER_H_ 17 #define ACSDK_SAMPLE_ENDPOINT_ENDPOINTALEXALAUNCHERHANDLER_H_ 24 #include <unordered_map> 32 namespace sampleApplications {
50 static std::shared_ptr<EndpointAlexaLauncherHandler>
create(
const std::string& endpointName);
58 const std::weak_ptr<acsdkAlexaLauncherInterfaces::AlexaLauncherObserverInterface>& observer)
override;
60 const std::weak_ptr<acsdkAlexaLauncherInterfaces::AlexaLauncherObserverInterface>& observer)
override;
100 bool notifyTargetCallback(
const std::string& targetName);
112 std::unordered_map<std::string, LaunchHandlerCallback> m_launcherCallbacks;
115 std::shared_ptr<AlexaLauncherNotifier> m_notifier;
122 #endif // ACSDK_SAMPLE_ENDPOINT_ENDPOINTALEXALAUNCHERHANDLER_H_
Definition: EndpointAlexaLauncherHandler.h:39
bool registerLaunchTargetCallback(const std::string &targetName, LaunchHandlerCallback callback)
::std::string string
Definition: gtest-port.h:1097
acsdkAlexaLauncherInterfaces::AlexaLauncherInterface::Response launchTarget(const acsdkAlexaLauncherInterfaces::TargetState &targetState) override
bool deregisterLaunchTargetCallback(const std::string &targetName)
bool addObserver(const std::weak_ptr< acsdkAlexaLauncherInterfaces::AlexaLauncherObserverInterface > &observer) override
Definition: AlexaLauncherTargetState.h:27
Generic implementation of NotifierInterface.
Definition: Notifier.h:38
static std::shared_ptr< EndpointAlexaLauncherHandler > create(const std::string &endpointName)
Definition: AlexaLauncherInterface.h:40
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
acsdkAlexaLauncherInterfaces::TargetState getLauncherTargetState() override
std::function< void(void)> LaunchHandlerCallback
Alias for a callback function for launching target.
Definition: EndpointAlexaLauncherHandler.h:42
void removeObserver(const std::weak_ptr< acsdkAlexaLauncherInterfaces::AlexaLauncherObserverInterface > &observer) override
Definition: AlexaLauncherInterface.h:45