Add VIS vehicle signal support 61/27661/1 13.93.0 needlefish/13.93.0 needlefish_13.93.0
authorScott Murray <scott.murray@konsulko.com>
Thu, 16 Jun 2022 04:46:08 +0000 (00:46 -0400)
committerScott Murray <scott.murray@konsulko.com>
Thu, 16 Jun 2022 04:46:49 +0000 (00:46 -0400)
Update the use of the HVAC API from libqtappfw for its rework to use
VIS signals instead of the previous signal-composer usage.

Bug-AGL: SPEC-4409

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I7cd2511248c67896c91908f56e1f91fd15b7a0dd

app/app.pro
app/main.cpp

index 8c4c5a4..14e7c44 100644 (file)
@@ -3,7 +3,7 @@ TARGET = hvac
 QT = qml quick
 CONFIG += c++11 link_pkgconfig
 
-PKGCONFIG += qtappfw-hvac
+PKGCONFIG += qtappfw-hvac qtappfw-vehicle-signals
 
 HEADERS += \
     translator.h
index c320ef8..e4f87bf 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2016 The Qt Company Ltd.
+ * Copyright (C) 2022 Konsulko Group
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,6 +19,7 @@
 #include <QQmlApplicationEngine>
 #include <QDebug>
 #include <hvac.h>
+#include <vehiclesignals.h>
 
 #include "translator.h"
 
@@ -28,7 +30,8 @@ int main(int argc, char *argv[])
        QGuiApplication app(argc, argv);
 
        QQmlApplicationEngine engine;
-        engine.rootContext()->setContextProperty("hvac", new HVAC());
+       VehicleSignalsConfig vsConfig("hvac");
+       engine.rootContext()->setContextProperty("hvac", new HVAC(new VehicleSignals(vsConfig)));
        qmlRegisterType<Translator>("Translator", 1, 0, "Translator");
        engine.load(QUrl(QStringLiteral("qrc:/HVAC.qml")));