summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-06-07 15:51:47 -0400
committerScott Murray <scott.murray@konsulko.com>2022-06-07 15:51:47 -0400
commit61e3d69532099d7215410c5b38e29ba3525dec46 (patch)
treef02508cb5399333892a00d9f6f371805df5e8841 /app/main.cpp
parent4242367c57f25027ee0e533fce8a14c64005ec04 (diff)
Add VIS vehicle signal support
Use the new VehicleSignals API from libqtappfw to replace the previous signal-composer usage. Bug-AGL: SPEC-4409 Change-Id: Id5aaa6e9789f75a0aaecd4cfc560bbc4bae3f4c5 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 771ce3a..2058ff9 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -24,6 +24,7 @@
#include <QQuickWindow>
#include <mediaplayer.h>
+#include <vehiclesignals.h>
#include <unistd.h>
@@ -38,6 +39,8 @@ int main(int argc, char *argv[])
QQmlContext *context = engine.rootContext();
context->setContextProperty("AlbumArt", "");
context->setContextProperty("mediaplayer", new Mediaplayer(context));
+ VehicleSignalsConfig vsConfig("mediaplayer");
+ context->setContextProperty("VehicleSignals", new VehicleSignals(vsConfig));
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));