diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-04 21:20:30 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-08 18:53:47 -0700 |
commit | 9a0d41d3258697ad16e2eb461e3c7bac0d3e21ff (patch) | |
tree | 6e74dc9710697ad54caff21661984232a42faccb /message.cpp | |
parent | 1dff7d40fb3c30b647a0cdb45277d8838bdda635 (diff) |
libqtappfw: add response data reporting
Report back response data that respective messages can process and emit
via QT signals
Bug-AGL: SPEC-1385
Change-Id: I2a82dd9b85855a20fdd8f03cb82ad5ac0920d8c4
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'message.cpp')
-rw-r--r-- | message.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/message.cpp b/message.cpp index 014e8e7..95bc586 100644 --- a/message.cpp +++ b/message.cpp @@ -103,7 +103,12 @@ bool Message::fromJDoc(QJsonDocument jdoc) return false; } auto status_iter = request.find("status"); + auto info_iter = request.find("info"); + auto response_iter = payload.find("response"); + auto response = response_iter.value().toObject(); m_reply_status = status_iter.value().toString(); + m_reply_info = info_iter.value().toString(); + m_reply_data = response; m_reply = true; } else if (msgid == Event) { // If event, save data object |