diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-11-04 14:35:55 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2021-11-04 14:44:37 -0400 |
commit | 2b7ca7a6eeb79e03507abb7a16b0503591d2b064 (patch) | |
tree | d372e518e3eae711d9c867de1c1731154d069400 /homescreen/src/aglsocketwrapper.h | |
parent | 187fffa9f0a05359678887f30b58091cf7c5fc47 (diff) |
Initial rework to run without the app framework
Changes:
- Remove application framework build scripts, and update the
application qmake file to just build a "homescreen" binary
and support installing it to /usr/bin.
- Remove voice API related code. Some of the associated QML
and images for the UI have been retained in case equivalent
functionality is re-added in the future.
- Remove or stub out various app framework API access for the
homescreen and launcher bindings, and comment out usage of
the Qt wrappers from libqtappfw (e.g. Bluetooth). The aim is
to provide a replacement library or libraries for the latter
that provide the same functionality.
- Remove the old homescreen API documentation and do an initial
update of the build instructions in README.md.
Bug-AGL: SPEC-4121
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Iab979c8e1341f2da0384f88f163a977b03664600
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 |