1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
13 property bool fanUp: false
14 property bool fanRight: false
15 property bool fanDown: false
17 property bool fanAC: false
18 property bool fanAuto: false
19 property bool fanRecirc: false
21 property real fanSpeed: 0
23 property bool defrostMax: false
24 property bool defrostFront: false
25 property bool defrostRear: false
27 property real leftTemperature: 0
28 property real rightTemperature: 0
30 property int leftSeatHeat: 0
31 property int rightSeatHeat: 0
34 var currentFan = ClimateModel.getRangeValue(fanSpeed,ClimateModel.fanStepSize);
35 ClimateModel.fanSpeed = currentFan;
38 onLeftTemperatureChanged: {
39 var temperature = ClimateModel.getRangeValue(leftTemperature,ClimateModel.temperatureStepSize);
40 ClimateModel.leftTemp = temperature;
43 onRightTemperatureChanged: {
44 var temperature = ClimateModel.getRangeValue(rightTemperature,ClimateModel.temperatureStepSize);
45 ClimateModel.rightTemp = temperature;