diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-01 23:15:58 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-13 17:43:33 -0700 |
commit | bb1aee701bc3516c2072a79d3129ee83918df7fd (patch) | |
tree | 150edc50142429ee566edf629a8d3f5dfb3a8557 /messageengine.h | |
parent | 6465961f28f40ff5a2da31876f1c23ea3c7f7cec (diff) |
message: add response message support
Add support for callid sequencing, and request data being included
with the response message.
Bug-AGL: SPEC-1404
Change-Id: I259ae3da68e55de17eafe9db534258db5fbc3ef8
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'messageengine.h')
-rw-r--r-- | messageengine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/messageengine.h b/messageengine.h index 0ba75fa..6b2233f 100644 --- a/messageengine.h +++ b/messageengine.h @@ -17,6 +17,7 @@ #ifndef MESSAGEENGINE_H #define MESSAGEENGINE_H +#include <QMutex> #include <QThread> #include <QUrl> #include <QWebSocket> @@ -29,6 +30,7 @@ class MessageEngine : public QObject public: explicit MessageEngine(const QUrl &url, QObject *parent = Q_NULLPTR); bool sendMessage(Message *message); + unsigned int requestCallId(); Q_SIGNALS: void disconnected(); @@ -42,7 +44,10 @@ class MessageEngine : public QObject private: QWebSocket m_websocket; + QMap<qint32, QByteArray> m_calls; QUrl m_url; + QMutex m_mutex; + unsigned int m_callid; }; #endif // MESSAGEENGINE_H |