QIfWindowControl Class

Provides an interface to the window control. More...

Header: #include <QIfWindowControl>
qmake: QT += ifvehiclefunctions
Instantiated By: WindowControl
Inherits: QIfAbstractZonedFeature

Properties

  • heaterMode : QtIfVehicleFunctions::HeaterMode
  • state : const QtIfVehicleFunctions::WindowState

Public Functions

QIfWindowControl(const QString &zone = QString(), QObject *parent = nullptr)
QtIfVehicleFunctions::BlindMode blindMode() const
QtIfVehicleFunctions::WindowState blindState() const
bool heater() const
QtIfVehicleFunctions::HeaterMode heaterMode() const
QtIfVehicleFunctions::WindowState state() const

Public Slots

QIfPendingReply<void> close()
QIfPendingReply<void> open()
void setBlindMode(QtIfVehicleFunctions::BlindMode blindMode)
void setHeaterMode(QtIfVehicleFunctions::HeaterMode heaterMode)

Signals

void blindModeChanged(QtIfVehicleFunctions::BlindMode blindMode)
void blindStateChanged(QtIfVehicleFunctions::WindowState blindState)
void heaterChanged(bool heater)
void heaterModeChanged(QtIfVehicleFunctions::HeaterMode heaterMode)
void stateChanged(QtIfVehicleFunctions::WindowState state)

Detailed Description

The QIfWindowControl provides an interface to control the physical windows of the vehicle.

All properties are exposed through zone objects. The zones are retrieved using the zoneAt method.

The QIfWindowControl expects a single backend to be available. It is recommended to use it with discoveryMode set to zoneAt.

Property Documentation

blindMode : QtIfVehicleFunctions::BlindMode

Holds the current mode of the window blind.

Access functions:

QtIfVehicleFunctions::BlindMode blindMode() const
void setBlindMode(QtIfVehicleFunctions::BlindMode blindMode)

Notifier signal:

void blindModeChanged(QtIfVehicleFunctions::BlindMode blindMode)

[read-only] blindState : const QtIfVehicleFunctions::WindowState

Holds the current state of the window blind.

Access functions:

QtIfVehicleFunctions::WindowState blindState() const

Notifier signal:

void blindStateChanged(QtIfVehicleFunctions::WindowState blindState)

[read-only] heater : const bool

Indicates whether the window heater is currently running.

Access functions:

bool heater() const

Notifier signal:

void heaterChanged(bool heater)

heaterMode : QtIfVehicleFunctions::HeaterMode

Holds the current mode of the window heater.

Access functions:

QtIfVehicleFunctions::HeaterMode heaterMode() const
void setHeaterMode(QtIfVehicleFunctions::HeaterMode heaterMode)

Notifier signal:

void heaterModeChanged(QtIfVehicleFunctions::HeaterMode heaterMode)

[read-only] state : const QtIfVehicleFunctions::WindowState

Holds the current state of the window.

Access functions:

QtIfVehicleFunctions::WindowState state() const

Notifier signal:

void stateChanged(QtIfVehicleFunctions::WindowState state)

Member Function Documentation

[explicit] QIfWindowControl::QIfWindowControl(const QString &zone = QString(), QObject *parent = nullptr)

Default constructs an instance of QIfWindowControl to the given zone.

If zone is not provided the General zone will be created.

The parent argument is passed on to the QIfAbstractZonedFeature base class.

[slot] QIfPendingReply<void> QIfWindowControl::close()

Closes the window, if not already in the QIfWindowControl::Closed state.

[slot] QIfPendingReply<void> QIfWindowControl::open()

Opens the window, if not already in the QIfWindowControl::FullyOpen state.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.