AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
PresentationOrchestratorStateTrackerInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_INCLUDE_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_PRESENTATIONORCHESTRATORSTATETRACKERINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_INCLUDE_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_PRESENTATIONORCHESTRATORSTATETRACKERINTERFACE_H_
18 
19 #include <memory>
20 #include <string>
21 #include <vector>
22 
25 
26 namespace alexaClientSDK {
27 namespace presentationOrchestratorInterfaces {
28 
34 public:
36 
44  virtual void acquireWindow(
45  const std::string& clientId,
46  const std::string& windowId,
47  PresentationMetadata metadata) = 0;
48 
56  virtual void updatePresentationMetadata(
57  const std::string& clientId,
58  const std::string& windowId,
59  PresentationMetadata metadata) = 0;
60 
66  virtual void releaseWindow(const std::string& clientId, const std::string& windowId) = 0;
67 
72  virtual std::string getFocusedInterface() = 0;
73 
78  virtual std::string getFocusedWindowId() = 0;
79 
87  virtual void setWindows(const std::vector<PresentationOrchestratorWindowInstance>& windows) = 0;
88 
94  virtual bool addWindow(const PresentationOrchestratorWindowInstance& window) = 0;
95 
100  virtual void removeWindow(const std::string& windowId) = 0;
101 
106  virtual void updateWindow(const PresentationOrchestratorWindowInstance& window) = 0;
107 
112  virtual std::vector<PresentationOrchestratorWindowInfo> getWindowInformation() = 0;
113 
118  virtual void addWindowObserver(std::weak_ptr<PresentationOrchestratorWindowObserverInterface> observer) = 0;
119 
124  virtual void removeWindowObserver(std::weak_ptr<PresentationOrchestratorWindowObserverInterface> observer) = 0;
125 
130  virtual void addStateObserver(std::weak_ptr<PresentationOrchestratorStateObserverInterface> observer) = 0;
131 
136  virtual void removeStateObserver(std::weak_ptr<PresentationOrchestratorStateObserverInterface> observer) = 0;
137 
142  virtual void setDeviceInterface(std::string interfaceName) = 0;
143 
147  virtual void releaseDeviceInterface() = 0;
148 };
149 } // namespace presentationOrchestratorInterfaces
150 } // namespace alexaClientSDK
151 #endif // ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_INCLUDE_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_PRESENTATIONORCHESTRATORSTATETRACKERINTERFACE_H_
virtual void addWindowObserver(std::weak_ptr< PresentationOrchestratorWindowObserverInterface > observer)=0
virtual bool addWindow(const PresentationOrchestratorWindowInstance &window)=0
::std::string string
Definition: gtest-port.h:1097
virtual void updatePresentationMetadata(const std::string &clientId, const std::string &windowId, PresentationMetadata metadata)=0
virtual void releaseWindow(const std::string &clientId, const std::string &windowId)=0
virtual std::vector< PresentationOrchestratorWindowInfo > getWindowInformation()=0
virtual void setWindows(const std::vector< PresentationOrchestratorWindowInstance > &windows)=0
virtual void removeWindowObserver(std::weak_ptr< PresentationOrchestratorWindowObserverInterface > observer)=0
virtual void removeStateObserver(std::weak_ptr< PresentationOrchestratorStateObserverInterface > observer)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void acquireWindow(const std::string &clientId, const std::string &windowId, PresentationMetadata metadata)=0
virtual void updateWindow(const PresentationOrchestratorWindowInstance &window)=0
virtual void addStateObserver(std::weak_ptr< PresentationOrchestratorStateObserverInterface > observer)=0

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0