diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-20 18:08:16 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-21 22:44:26 -0700 |
commit | 13bb3fad73f1933e75ea17e101c5f8a3d2c2f561 (patch) | |
tree | a9e7bce3cb0f2a5604b355a6630cd7a900cb578e /app/main.cpp | |
parent | 74c70d0ac87d4674646e53d2af781d9084a7ea06 (diff) |
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 <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 928b825..8fa8117 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); |