diff options
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 |