Qt IVI Generator Climate Example
#ifndef CLIMATEMODULE_H_
#define CLIMATEMODULE_H_
#include "climateglobal.h"
#include <QObject>
class Q_EXAMPLE_IVI_CLIMATE_EXPORT ClimateModule : public QObject
{
Q_OBJECT
public :
ClimateModule(QObject * parent= nullptr);
enum AirflowDirection {
Windshield = 1 ,
Dashboard = 2 ,
Floor = 4 ,
};
Q_DECLARE_FLAGS(AirflowDirections, AirflowDirection)
Q_FLAG(AirflowDirections)
static AirflowDirection toAirflowDirection(quint8 v, bool * ok);
enum RecirculationMode {
RecirculationOff = 0 ,
RecirculationOn = 1 ,
AutoRecirculation = 2 ,
};
Q_ENUM(RecirculationMode)
static RecirculationMode toRecirculationMode(quint8 v, bool * ok);
enum ClimateMode {
ClimateOff = 0 ,
ClimateOn = 1 ,
AutoClimate = 2 ,
};
Q_ENUM(ClimateMode)
static ClimateMode toClimateMode(quint8 v, bool * ok);
static void registerTypes();
static void registerQmlTypes(const QString & uri, int majorVersion = 1 , int minorVersion = 0 );
};
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator < < (QDataStream & out, ClimateModule:: AirflowDirections var);
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator > > (QDataStream & in, ClimateModule:: AirflowDirections & var);
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator < < (QDataStream & out, ClimateModule:: RecirculationMode var);
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator > > (QDataStream & in, ClimateModule:: RecirculationMode & var);
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator < < (QDataStream & out, ClimateModule:: ClimateMode var);
Q_EXAMPLE_IVI_CLIMATE_EXPORT QDataStream & operator > > (QDataStream & in, ClimateModule:: ClimateMode & var);
#endif // CLIMATEMODULE_H_