AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
GuiRenderer.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 SAMPLEAPP_GUIRENDERER_H_
17 #define SAMPLEAPP_GUIRENDERER_H_
18 
19 #include <map>
20 #include <string>
21 
24 
25 namespace alexaClientSDK {
26 namespace sampleApp {
27 
39 public:
43  GuiRenderer();
44 
47  void renderTemplateCard(const std::string& jsonPayload) override;
48  void renderPlayerInfoCard(const std::string& jsonPayload, TemplateRuntimeObserverInterface::AudioPlayerInfo info)
49  override;
51 
58 
73 
74 private:
76  std::map<std::string, bool> m_guiToggleStateMap;
77 
79  void clearTemplateCard();
80 
82  void clearPlayerInfoCard();
83 };
84 
85 } // namespace sampleApp
86 } // namespace alexaClientSDK
87 
88 #endif // SAMPLEAPP_GUIRENDERER_H_
static const std::string TOGGLE_ACTION_DESELECTED
String to identify the AVS action DESELECTED string.
Definition: GuiRenderer.h:62
avsCommon::utils::Optional< bool > getGuiToggleState(const std::string &toggleName)
::std::string string
Definition: gtest-port.h:1097
static const std::string TOGGLE_NAME_LOOP
String to identify the AVS name LOOP string.
Definition: GuiRenderer.h:66
void renderTemplateCard(const std::string &jsonPayload) override
static const std::string TOGGLE_NAME_THUMBSDOWN
String to identify the AVS name THUMBS_DOWN string.
Definition: GuiRenderer.h:72
static const std::string TOGGLE_NAME_SHUFFLE
String to identify the AVS name SHUFFLE string.
Definition: GuiRenderer.h:64
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: GuiRenderer.h:38
static const std::string TOGGLE_ACTION_SELECTED
String to identify the AVS action SELECTED string.
Definition: GuiRenderer.h:60
void renderPlayerInfoCard(const std::string &jsonPayload, TemplateRuntimeObserverInterface::AudioPlayerInfo info) override
static const std::string TOGGLE_NAME_REPEAT
String to identify the AVS name REPEAT string.
Definition: GuiRenderer.h:68
static const std::string TOGGLE_NAME_THUMBSUP
String to identify the AVS name THUMBS_UP string.
Definition: GuiRenderer.h:70

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