From 2f046fbfad4193474332f716a1507b0da55f018a Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 20 Apr 2018 18:08:16 -0700 Subject: libqtappfw: bluetooth: switch from qml websockets to libqtappfw Switch agl-service-bluetooth access from QML websockets to proper libqtappfw middleware. Bug-AGL: SPEC-1385 Change-Id: I3b1bdc06ed9b7c07d69135c44d8f5c3440d7c056 Signed-off-by: Matt Ranostay --- app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/main.cpp') 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 #include #include +#include #include 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(root); -- cgit 1.2.3-korg