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
QT = qml quick
CONFIG += c++11 link_pkgconfig
QT = qml quick
CONFIG += c++11 link_pkgconfig
-PKGCONFIG += qtappfw-hvac
+PKGCONFIG += qtappfw-hvac qtappfw-vehicle-signals
HEADERS += \
translator.h
HEADERS += \
translator.h
/*
* Copyright (C) 2016 The Qt Company Ltd.
/*
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <QQmlApplicationEngine>
#include <QDebug>
#include <hvac.h>
#include <QQmlApplicationEngine>
#include <QDebug>
#include <hvac.h>
+#include <vehiclesignals.h>
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
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")));
qmlRegisterType<Translator>("Translator", 1, 0, "Translator");
engine.load(QUrl(QStringLiteral("qrc:/HVAC.qml")));