diff options
Diffstat (limited to 'message.h')
-rw-r--r-- | message.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -18,7 +18,8 @@ #define MESSAGE_H #include <QObject> -#include <QJsonArray> +#include <QMap> +#include <QVariant> #include <QJsonDocument> #include <QJsonObject> @@ -31,6 +32,7 @@ enum MessageId { enum MessageType { GenericMessage, + ResponseRequestMessage, TelephonyEventMessage, WeatherEventMessage, MediaplayerEventMessage, @@ -90,10 +92,14 @@ class Message : public QObject return m_init; } + inline void setCallId(qint32 callId) { + m_request["callid"] = callId; + } + protected: bool m_event, m_init, m_reply; QString m_event_api, m_event_name, m_reply_info, m_reply_status, m_reply_uuid; - QJsonArray m_request; + QMap<QString, QVariant> m_request; QJsonDocument m_jdoc; QJsonObject m_event_data, m_reply_data; }; |