summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-07-25 12:24:28 -0400
committerMatt Porter <mporter@konsulko.com>2018-07-27 12:04:34 -0400
commit0a5f2088affd1a92a38b067618585c57730b0646 (patch)
tree73caadc2f3c2806bf0eca19016fa9d1f5ccd628f /app/main.cpp
parent9f54d40746e2a09781e2a197cea1822bbd0d25ad (diff)
wifi: convert to libqtappfw network model
Use libqtappfw's network model for the wifi network list, wifi status, and wifi power/connect/disconnect methods. Remove useless websocket message handling and other related code. Bug-AGL: SPEC-1542 Change-Id: I269fc03405be98f428b61e6a583eb5cbad767c6e Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 7ad569f..082c444 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -28,6 +28,7 @@
#include <QQuickWindow>
#include <libhomescreen.hpp>
#include <bluetooth.h>
+#include <network.h>
#include <qlibwindowmanager.h>
class DBus : public QObject
@@ -84,6 +85,7 @@ int main(int argc, char *argv[])
bindingAddressWS.setQuery(query);
QQmlContext *context = engine.rootContext();
context->setContextProperty(QStringLiteral("bindingAddressWS"), bindingAddressWS);
+ context->setContextProperty("network", new Network(bindingAddressWS, context));
std::string token = secret.toStdString();
LibHomeScreen* hs = new LibHomeScreen();