16 #ifndef ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_WINDOWMANAGERNAMESPACE_H_ 17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_WINDOWMANAGERNAMESPACE_H_ 21 #include <rapidjson/document.h> 26 namespace sampleApplications {
27 namespace ipcServerSampleApp {
29 namespace IPCNamespaces {
79 IPC_MSG_NAMESPACE_WINDOW_MANAGER,
81 IPC_MSG_NAME_SET_VISUAL_CHARACTERISTICS) {
83 rapidjson::Document messageDocument(&
alloc());
85 if (displayCharacteristics.
hasValue()) {
87 IPC_MSG_DEVICE_DISPLAY_TAG,
88 messageDocument.Parse(
89 displayCharacteristics.
value())[VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_DISPLAY_TAG],
95 IPC_MSG_INTERACTION_MODES_TAG,
96 messageDocument.Parse(
97 interactionModes.
value())[VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_INTERACTION_MODES_TAG],
103 IPC_MSG_WINDOW_TEMPLATES_TAG,
104 messageDocument.Parse(
105 windowTemplates.
value())[VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_WINDOW_TEMPLATES_TAG],
135 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_WINDOWMANAGERNAMESPACE_H_ static const char VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_INTERACTION_MODES_TAG[]
The key in visual characteristics capability config for interaction modes configuration.
Definition: WindowManagerNamespace.h:56
SetVisualCharacteristicsMessage(const avsCommon::utils::Optional< std::string > &displayCharacteristics, const avsCommon::utils::Optional< std::string > &interactionModes, const avsCommon::utils::Optional< std::string > &windowTemplates)
Definition: WindowManagerNamespace.h:74
Definition: WindowManagerNamespace.h:65
::std::string string
Definition: gtest-port.h:1097
Definition: WindowManagerNamespace.h:116
static const char IPC_MSG_NAME_SET_VISUAL_CHARACTERISTICS[]
The message name for set visual characteristics.
Definition: WindowManagerNamespace.h:35
static const int IPC_MSG_VERSION_WINDOW_MANAGER(1)
The namespace version for Window Manager.
Message(const std::string &nameSpace, const int version, const std::string &name)
Definition: Message.h:64
auto alloc() -> decltype(mDocument.GetAllocator())
Definition: Message.h:227
bool hasValue() const
Definition: Optional.h:203
static const char IPC_MSG_NAMESPACE_WINDOW_MANAGER[]
The message namespace for Window Manager.
Definition: WindowManagerNamespace.h:32
static const char IPC_MSG_NAME_CLEAR_WINDOW[]
The message name for clearWindow.
Definition: WindowManagerNamespace.h:38
Message & setPayload(rapidjson::Value &&payload)
Definition: Message.h:218
bool Value(const T &value, M matcher)
Definition: gmock-matchers.h:4347
static const char IPC_MSG_WINDOW_TEMPLATES_TAG[]
The window templates json key in visual characteristics message.
Definition: WindowManagerNamespace.h:47
ClearWindowMessage(const std::string &windowId)
Definition: WindowManagerNamespace.h:123
Message & addPayload()
Definition: Message.h:208
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static const char IPC_MSG_INTERACTION_MODES_TAG[]
The interaction modes json key in visual characteristics message.
Definition: WindowManagerNamespace.h:44
static const char VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_DISPLAY_TAG[]
The key in visual characteristics capability config for Device display characteristics.
Definition: WindowManagerNamespace.h:53
ValueT value() const
Definition: Optional.h:208
static const char IPC_MSG_DEVICE_DISPLAY_TAG[]
The device display json key in visual characteristics message.
Definition: WindowManagerNamespace.h:41
const T & move(const T &t)
Definition: gtest-port.h:1317
static const char VISUAL_CHARACTERISTICS_CAPABILITY_CONFIG_WINDOW_TEMPLATES_TAG[]
The key in visual characteristics capability config for window templates configuration.
Definition: WindowManagerNamespace.h:59
Message & setWindowIdInPayload(const std::string &windowId)
Definition: Message.h:199