diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-20 18:08:16 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-14 18:36:48 -0700 |
commit | 2f046fbfad4193474332f716a1507b0da55f018a (patch) | |
tree | 5be1a3e6d92331034e1b0fc87a70ab33a1781240 /app/main.cpp | |
parent | 21ac475cd8621747169d11c58add5a53a50986a8 (diff) |
Switch agl-service-bluetooth access from QML websockets to proper
libqtappfw middleware.
Bug-AGL: SPEC-1385
Change-Id: I3b1bdc06ed9b7c07d69135c44d8f5c3440d7c056
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index dc9d250..fa7fe61 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -28,6 +28,7 @@ #include <QQuickWindow> #include <libhomescreen.hpp> #include <qlibwindowmanager.h> +#include <bluetooth.h> #include <mediaplayer.h> int main(int argc, char *argv[]) @@ -96,6 +97,7 @@ int main(int argc, char *argv[]) }); context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress)); + context->setContextProperty("bluetooth_connection", new Bluetooth(bindingAddress)); engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast<QQuickWindow *>(root); |