diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-11-08 11:08:35 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-11-08 11:08:35 +0000 |
commit | 0bdd39b247661c1a0406d450d578d4ff3fd171b0 (patch) | |
tree | 43b6f217b728042fd7848b96d7574e07800611b1 /homescreen/src/aglsocketwrapper.h | |
parent | f3de2f5cad06a772ee55f58694d559a7cb012c02 (diff) |
Revert "Add push to talk support to homescreen"
It turned out the homescreen won't show. So we need to revisit this patch.
https://gerrit.automotivelinux.org/gerrit/#/c/apps/homescreen/+/21182/
This reverts commit f3de2f5cad06a772ee55f58694d559a7cb012c02.
Change-Id: Ic8829e5009e9fb74b49ad1dd79125b45a872a838
Diffstat (limited to 'homescreen/src/aglsocketwrapper.h')
-rw-r--r-- | homescreen/src/aglsocketwrapper.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/homescreen/src/aglsocketwrapper.h b/homescreen/src/aglsocketwrapper.h deleted file mode 100644 index 4807cd5..0000000 --- a/homescreen/src/aglsocketwrapper.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef AGLSOCKETWRAPPER_H -#define AGLSOCKETWRAPPER_H - -#include <QUrl> -#include <QMap> -#include <QObject> -#include <QJsonValue> - -#include <functional> - -class QWebSocket; -class AglSocketWrapper : public QObject -{ - Q_OBJECT -public: - explicit AglSocketWrapper(QObject *parent = nullptr); - - void open(const QUrl &url); - void close(); - - using ApiCallback = std::function<void(bool, const QJsonValue&)>; - void apiCall(const QString &api, const QString &verb, const QJsonValue &args = QJsonValue(), - ApiCallback callback = nullptr); - -signals: - void connected(); - void disconnected(); - void eventReceived(const QString &eventName, const QJsonValue &data); - -private: - QWebSocket *m_socket; - QMap<QString, ApiCallback> m_callbacks; -}; - -#endif // AGLSOCKETWRAPPER_H |