Qt IVI Generator Climate Example
#ifndef CLIMATE_CLIMATECONTROLBACKENDINTERFACE_H_
#define CLIMATE_CLIMATECONTROLBACKENDINTERFACE_H_
#include "climatemodule.h"
#include <QtIviCore/QIviZonedFeatureInterface>
#include <QtIviCore/QIviPendingReply>
#include <QtIviCore/QIviPagingModelInterface>
class Q_EXAMPLE_IVI_CLIMATE_EXPORT ClimateControlBackendInterface : public QIviZonedFeatureInterface
{
Q_OBJECT
public :
explicit ClimateControlBackendInterface(QObject * parent = nullptr);
~ ClimateControlBackendInterface();
virtual void setAirConditioning(bool airConditioning, const QString & zone) = 0 ;
virtual void setHeater(bool heater, const QString & zone) = 0 ;
virtual void setFanSpeedLevel(int fanSpeedLevel, const QString & zone) = 0 ;
virtual void setSteeringWheelHeater(int steeringWheelHeater, const QString & zone) = 0 ;
virtual void setTargetTemperature(qreal targetTemperature, const QString & zone) = 0 ;
virtual void setSeatCooler(int seatCooler, const QString & zone) = 0 ;
virtual void setSeatHeater(int seatHeater, const QString & zone) = 0 ;
virtual void setOutsideTemperature(int outsideTemperature, const QString & zone) = 0 ;
virtual void setOutsideTemperatureLabel(const QString & outsideTemperatureLabel, const QString & zone) = 0 ;
virtual void setZoneSynchronization(bool zoneSynchronization, const QString & zone) = 0 ;
virtual void setDefrost(bool defrost, const QString & zone) = 0 ;
virtual void setRecirculationMode(ClimateModule:: RecirculationMode recirculationMode, const QString & zone) = 0 ;
virtual void setRecirculation(bool recirculation, const QString & zone) = 0 ;
virtual void setRecirculationSensitivityLevel(int recirculationSensitivityLevel, const QString & zone) = 0 ;
virtual void setClimateMode(ClimateModule:: ClimateMode climateMode, const QString & zone) = 0 ;
virtual void setAutomaticClimateFanIntensityLevel(int automaticClimateFanIntensityLevel, const QString & zone) = 0 ;
virtual void setAirflowDirections(ClimateModule:: AirflowDirections airflowDirections, const QString & zone) = 0 ;
Q_SIGNALS:
void airConditioningChanged(bool airConditioning= bool(false ), const QString & zone= QString ());
void heaterChanged(bool heater= bool(false ), const QString & zone= QString ());
void fanSpeedLevelChanged(int fanSpeedLevel= int (0 ), const QString & zone= QString ());
void steeringWheelHeaterChanged(int steeringWheelHeater= int (0 ), const QString & zone= QString ());
void targetTemperatureChanged(qreal targetTemperature= qreal (), const QString & zone= QString ());
void seatCoolerChanged(int seatCooler= int (0 ), const QString & zone= QString ());
void seatHeaterChanged(int seatHeater= int (0 ), const QString & zone= QString ());
void outsideTemperatureChanged(int outsideTemperature= int (0 ), const QString & zone= QString ());
void outsideTemperatureLabelChanged(const QString & outsideTemperatureLabel= QString (), const QString & zone= QString ());
void zoneSynchronizationChanged(bool zoneSynchronization= bool(false ), const QString & zone= QString ());
void defrostChanged(bool defrost= bool(false ), const QString & zone= QString ());
void recirculationModeChanged(ClimateModule:: RecirculationMode recirculationMode= ClimateModule:: RecirculationOff, const QString & zone= QString ());
void recirculationChanged(bool recirculation= bool(false ), const QString & zone= QString ());
void recirculationSensitivityLevelChanged(int recirculationSensitivityLevel= int (0 ), const QString & zone= QString ());
void climateModeChanged(ClimateModule:: ClimateMode climateMode= ClimateModule:: ClimateOff, const QString & zone= QString ());
void automaticClimateFanIntensityLevelChanged(int automaticClimateFanIntensityLevel= int (0 ), const QString & zone= QString ());
void airflowDirectionsChanged(ClimateModule:: AirflowDirections airflowDirections= ClimateModule:: AirflowDirections(), const QString & zone= QString ());
};
#define Climate_ClimateControl_iid ("example.qtivi.ClimateControl/1.0")
#endif // CLIMATE_CLIMATECONTROLBACKENDINTERFACE_H_