AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
GUIServerInterface.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_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_GUI_GUISERVERINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_GUI_GUISERVERINTERFACE_H_
18 
19 #include <AIP/Initiator.h>
23 #ifdef ENABLE_COMMS
25 #endif
30 
31 #include <APLClient/AplRenderingEvent.h>
32 #include "NavigationEvent.h"
33 
34 namespace alexaClientSDK {
35 namespace sampleApplications {
36 namespace ipcServerSampleApp {
37 namespace gui {
38 
41 public:
47  virtual void handleRecognizeSpeechRequest(capabilityAgents::aip::Initiator initiator, bool start) = 0;
48 
56  virtual void handleMicrophoneToggle() = 0;
57 
61  virtual void handlePlaybackPlay() = 0;
62 
66  virtual void handlePlaybackPause() = 0;
67 
71  virtual void handlePlaybackNext() = 0;
72 
76  virtual void handlePlaybackPrevious() = 0;
77 
81  virtual void handlePlaybackSeekTo(int offset) = 0;
82 
86  virtual void handlePlaybackSkipForward() = 0;
87 
91  virtual void handlePlaybackSkipBackward() = 0;
92 
98  virtual void handlePlaybackToggle(const std::string& name, bool checked) = 0;
99 
108  virtual bool handleFocusAcquireRequest(
109  std::string avsInterface,
110  std::string channelName,
111  avsCommon::avs::ContentType contentType,
112  std::shared_ptr<avsCommon::sdkInterfaces::ChannelObserverInterface> channelObserver) = 0;
113 
121  virtual bool handleFocusReleaseRequest(
122  std::string avsInterface,
123  std::string channelName,
124  std::shared_ptr<avsCommon::sdkInterfaces::ChannelObserverInterface> channelObserver) = 0;
125 
132  virtual void handleGUIActivityEvent(
134  const std::string& source = "") = 0;
135 
141  virtual void handleNavigationEvent(NavigationEvent event) = 0;
142 
147  virtual std::vector<visualCharacteristicsInterfaces::WindowTemplate> getWindowTemplates() = 0;
148 
153  virtual std::vector<visualCharacteristicsInterfaces::InteractionMode> getInteractionModes() = 0;
154 
160 
168  virtual void setWindowInstances(
169  const std::vector<presentationOrchestratorInterfaces::PresentationOrchestratorWindowInstance>& instances,
170  const std::string& defaultWindowInstanceId,
171  const std::string& audioPlaybackUIWindowId) = 0;
172 
178  virtual bool addWindowInstance(
180 
186  virtual bool removeWindowInstance(const std::string& windowInstanceId) = 0;
187 
192  virtual void updateWindowInstance(
194 
200  virtual bool setDefaultWindowInstance(const std::string& windowInstanceId) = 0;
201 
209  virtual bool serializeInteractionMode(
210  const std::vector<visualCharacteristicsInterfaces::InteractionMode>& interactionModes,
211  std::string& serializedJson) = 0;
212 
220  virtual bool serializeWindowTemplate(
221  const std::vector<visualCharacteristicsInterfaces::WindowTemplate>& windowTemplates,
222  std::string& serializedJson) = 0;
223 
231  virtual bool serializeDisplayCharacteristics(
233  std::string& serializedJson) = 0;
234 
238  virtual std::chrono::milliseconds getDeviceTimezoneOffset() = 0;
239 
240  virtual void onUserEvent() = 0;
241 
245  virtual void forceExit() = 0;
246 
250  virtual void acceptCall() = 0;
251 
255  virtual void stopCall() = 0;
256 
260  virtual void enableLocalVideo() = 0;
261 
265  virtual void disableLocalVideo() = 0;
266 
267 #ifdef ENABLE_COMMS
268 
271  virtual void sendDtmf(avsCommon::sdkInterfaces::CallManagerInterface::DTMFTone dtmfTone) = 0;
272 #endif
273 
277  virtual void handleOnMessagingServerConnectionOpened() = 0;
278 
287  virtual void handleDocumentTerminated(const std::string& token, bool failed) = 0;
288 
292  virtual void handleLocaleChange() = 0;
293 
297  virtual void initClient() = 0;
298 };
299 
300 } // namespace gui
301 } // namespace ipcServerSampleApp
302 } // namespace sampleApplications
303 } // namespace alexaClientSDK
304 
305 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_GUI_GUISERVERINTERFACE_H_
virtual void handleGUIActivityEvent(avsCommon::sdkInterfaces::GUIActivityEvent event, const std::string &source="")=0
virtual bool serializeWindowTemplate(const std::vector< visualCharacteristicsInterfaces::WindowTemplate > &windowTemplates, std::string &serializedJson)=0
virtual void handleDocumentTerminated(const std::string &token, bool failed)=0
virtual bool addWindowInstance(const presentationOrchestratorInterfaces::PresentationOrchestratorWindowInstance &instance)=0
An interface providing APIs to be used by GUIClient.
Definition: GUIServerInterface.h:40
virtual void setWindowInstances(const std::vector< presentationOrchestratorInterfaces::PresentationOrchestratorWindowInstance > &instances, const std::string &defaultWindowInstanceId, const std::string &audioPlaybackUIWindowId)=0
virtual bool serializeInteractionMode(const std::vector< visualCharacteristicsInterfaces::InteractionMode > &interactionModes, std::string &serializedJson)=0
::std::string string
Definition: gtest-port.h:1097
Definition: VisualCharacteristicsInterface.h:262
virtual bool setDefaultWindowInstance(const std::string &windowInstanceId)=0
virtual bool handleFocusAcquireRequest(std::string avsInterface, std::string channelName, avsCommon::avs::ContentType contentType, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver)=0
virtual std::vector< visualCharacteristicsInterfaces::WindowTemplate > getWindowTemplates()=0
virtual void handlePlaybackToggle(const std::string &name, bool checked)=0
Initiator
Definition: Initiator.h:28
virtual bool removeWindowInstance(const std::string &windowInstanceId)=0
DTMFTone
An enum used to define the characters that dtmf tone can be.
Definition: CallManagerInterface.h:59
virtual void updateWindowInstance(const presentationOrchestratorInterfaces::PresentationOrchestratorWindowInstance &instance)=0
virtual bool serializeDisplayCharacteristics(const visualCharacteristicsInterfaces::DisplayCharacteristics &display, std::string &serializedJson)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void handleRecognizeSpeechRequest(capabilityAgents::aip::Initiator initiator, bool start)=0
GUIActivityEvent
Enumeration of activity events used to indicate the state of a GUI.
Definition: GUIActivityEvent.h:27
ContentType
Definition: ContentType.h:25
virtual bool handleFocusReleaseRequest(std::string avsInterface, std::string channelName, std::shared_ptr< avsCommon::sdkInterfaces::ChannelObserverInterface > channelObserver)=0
virtual std::vector< visualCharacteristicsInterfaces::InteractionMode > getInteractionModes()=0
virtual visualCharacteristicsInterfaces::DisplayCharacteristics getDisplayCharacteristics()=0
NavigationEvent
Enumeration of navigation events that could be sent from GUI App to SampleApp.
Definition: NavigationEvent.h:25

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