16 #ifndef ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLDOCUMENTSESSIONMANAGER_H_ 17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLDOCUMENTSESSIONMANAGER_H_ 19 #include <unordered_map> 24 namespace sampleApplications {
25 namespace ipcServerSampleApp {
33 static std::unique_ptr<APLDocumentSessionManager>
create();
40 std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentSessionInterface> session)
override;
47 std::function<
void(
const std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentSessionInterface>&)> func)
66 std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentSessionInterface> findSessionByTokenLocked(
81 std::unordered_map<std::string, std::string> m_tokenToPresentationSessionId;
84 std::unordered_map<std::string, std::set<std::string>> m_presentationSessionIdToToken;
87 std::unordered_map<std::string, std::shared_ptr<aplCapabilityCommonInterfaces::APLDocumentSessionInterface>>
94 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_ALEXAPRESENTATION_APLDOCUMENTSESSIONMANAGER_H_ Definition: PresentationSession.h:40
::std::string string
Definition: gtest-port.h:1097
void invokeFunctionPerDocumentSession(std::function< void(const std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentSessionInterface > &)> func) override
void addDocumentSession(const aplCapabilityCommonInterfaces::PresentationSession &presentationSession, const std::string &token, std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentSessionInterface > session) override
void associateTokenWithPresentationSession(const aplCapabilityCommonInterfaces::PresentationSession &presentationSession, const std::string &token) override
void clearDocumentSession(const aplCapabilityCommonInterfaces::PresentationSession &presentationSession) override
std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentSessionInterface > getDocumentSessionByPresentationSession(const aplCapabilityCommonInterfaces::PresentationSession &presentationSessionId) override
Definition: APLDocumentSessionManagerInterface.h:32
Definition: APLDocumentSessionManager.h:27
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::unique_ptr< APLDocumentSessionManager > create()
std::shared_ptr< aplCapabilityCommonInterfaces::APLDocumentSessionInterface > getDocumentSessionByToken(const std::string &token) override