summaryrefslogtreecommitdiffstats
path: root/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'message.h')
-rw-r--r--message.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/message.h b/message.h
index 37dc740..062ca58 100644
--- a/message.h
+++ b/message.h
@@ -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;
};