summaryrefslogtreecommitdiffstats
path: root/message.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-04 21:20:30 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-05-08 18:53:47 -0700
commit9a0d41d3258697ad16e2eb461e3c7bac0d3e21ff (patch)
tree6e74dc9710697ad54caff21661984232a42faccb /message.h
parent1dff7d40fb3c30b647a0cdb45277d8838bdda635 (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.h')
-rw-r--r--message.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/message.h b/message.h
index e9d915a..ff98c43 100644
--- a/message.h
+++ b/message.h
@@ -61,6 +61,16 @@ class Message : public QObject
return m_event_data;
}
+ inline QString replyInfo() const
+ {
+ return m_reply_info;
+ }
+
+ inline QJsonObject replyData() const
+ {
+ return m_reply_data;
+ }
+
inline bool isEvent() const
{
return m_event;
@@ -78,9 +88,9 @@ class Message : public QObject
protected:
bool m_event, m_init, m_reply;
- QString m_event_api, m_event_name, m_reply_status, m_reply_uuid;
+ QString m_event_api, m_event_name, m_reply_info, m_reply_status, m_reply_uuid;
QJsonDocument m_jdoc;
- QJsonObject m_event_data;
+ QJsonObject m_event_data, m_reply_data;
};
#endif // MESSAGE_H