QIfAbstractZonedFeature Class

The QIfAbstractZonedFeature is the base class for all QtInterfaceFramework vehicle features. More...

Header: #include <QIfAbstractZonedFeature>
qmake: QT += interfaceframework
Since: Qt 5.6
Instantiated By: AbstractZonedFeature
Inherits: QIfAbstractFeature
Inherited By:

QIfClimateControl and QIfWindowControl

Properties

Public Functions

QIfAbstractZonedFeature(const QString &interface, const QString &zone = QString(), QObject *parent = nullptr)
QStringList availableZones() const
QString zone() const
QIfAbstractZonedFeature *zoneAt(const QString &zone) const
QList<QIfAbstractZonedFeature *> zones() const

Signals

void availableZonesChanged(const QStringList &zones)
void zoneChanged()
void zonesChanged()

Protected Functions

QIfZonedFeatureInterface *backend(const QString &interface = QString()) const
virtual QIfAbstractZonedFeature *createZoneFeature(const QString &zone) = 0

Reimplemented Protected Functions

virtual bool acceptServiceObject(QIfServiceObject *serviceObject) override
virtual void clearServiceObject() override
virtual void connectToServiceObject(QIfServiceObject *serviceObject) override

Detailed Description

QIfAbstractZonedFeature contains all feature attributes and zone handling.

Property Documentation

[read-only] availableZones : const QStringList

Holds a list of the available zones.

Access functions:

QStringList availableZones() const

Notifier signal:

void availableZonesChanged(const QStringList &zones)

zone : const QString

Name of the zone of this zoned feature.

The zone can be given in the feature initialization. With this property it's possible to control only a single specific feature zone.

This property is writable only before the backend is connected. Once the backend is discovered and the component is verified to be valid, zone is not writable anymore.

It's recommended to initialize the zone in the feature constructor:

QIfClimateControl *climateControl = new QIfClimateControl("FrontLeft", this);
climateControl->startAutoDiscovery();
QString zone = climateControl->zone();

After initialization, it's not recommended to change the zone.

Access functions:

QString zone() const

Notifier signal:

void zoneChanged()

[read-only] zoneAt : const QVariantMap

Provides direct feature access to the given zone.

Notifier signal:

void zonesChanged()

[read-only] zones : const QVariantList

Provides access to the feature zones model.

Notifier signal:

void zonesChanged()

Member Function Documentation

QIfAbstractZonedFeature::QIfAbstractZonedFeature(const QString &interface, const QString &zone = QString(), QObject *parent = nullptr)

Constructs a vehicle feature with a specific interface and zone.

If parent is of type QIfAbstractZonedFeature, then the created instance uses parent for the backend connection. Parent is connected to the backend and will forward updates between child features and the backend.

See also QIfAbstractFeature.

[override virtual protected] bool QIfAbstractZonedFeature::acceptServiceObject(QIfServiceObject *serviceObject)

Reimplements: QIfAbstractFeature::acceptServiceObject(QIfServiceObject *serviceObject).

[protected] QIfZonedFeatureInterface *QIfAbstractZonedFeature::backend(const QString &interface = QString()) const

Returns a pointer to the backend interface.

Returns the parent backend, if the parent is a QIfAbstractZonedFeature type. Returns zero if no backend is connected.

[override virtual protected] void QIfAbstractZonedFeature::clearServiceObject()

Reimplements: QIfAbstractFeature::clearServiceObject().

[override virtual protected] void QIfAbstractZonedFeature::connectToServiceObject(QIfServiceObject *serviceObject)

Reimplements: QIfAbstractFeature::connectToServiceObject(QIfServiceObject *serviceObject).

[pure virtual protected] QIfAbstractZonedFeature *QIfAbstractZonedFeature::createZoneFeature(const QString &zone)

Create a new child feature for the given zone.

Returns zero if the feature can't be created using the parameters specified.

QIfAbstractZonedFeature *QIfAbstractZonedFeature::zoneAt(const QString &zone) const

Returns the given zone instance for the feature.

QList<QIfAbstractZonedFeature *> QIfAbstractZonedFeature::zones() const

Returns all zone instances for the feature.

© 2022 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.