Add VIS vehicle signal support
[apps/agl-cluster-demo-dashboard.git] / app / main.cpp
index 14c2ead..3d02a51 100644 (file)
@@ -35,6 +35,8 @@
 #include <wayland-client.h>
 #include "agl-shell-client-protocol.h"
 
+#include <vehiclesignals.h>
+
 // Global indicating whether canned animation should run
 bool runAnimation = true;
 
@@ -170,6 +172,9 @@ int main(int argc, char *argv[])
        QQmlContext *context = engine.rootContext();
        context->setContextProperty("runAnimation", runAnimation);
 
+       VehicleSignalsConfig vsConfig(myname);
+       context->setContextProperty("VehicleSignals", new VehicleSignals(vsConfig));
+
        QQmlComponent bg_comp(&engine, QUrl("qrc:/cluster-gauges.qml"));
        qDebug() << bg_comp.errors();
        struct wl_surface *bg = create_component(native, &bg_comp, screen, &qobj_bg);