77 return d->screenIndex;
112 return d->screenEnabled;
180 , screenEnabled(static_cast<bool>(-1))
196 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
200 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"exd_screen_configuration.screenIndex"))
return false;
201 this->
screenIndex =
static_cast<quint8
>(data.at(0));
204 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"exd_screen_configuration.fieldCount"))
return false;
205 this->
fieldCount =
static_cast<quint8
>(data.at(0));
208 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"exd_screen_configuration.layout"))
return false;
212 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"exd_screen_configuration.screenEnabled"))
return false;
216 qWarning() <<
"ignoring unknown exd_screen_configuration message field number" << fieldId << bigEndian;
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
virtual ~ExdScreenConfigurationMessagePrivate()
quint8 fieldCount
The ExdScreenConfigurationMessage FIT message's fieldCount field.
quint8 screenIndex
The ExdScreenConfigurationMessage FIT message's screenIndex field.
bool screenEnabled
The ExdScreenConfigurationMessage FIT message's screenEnabled field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
ExdLayout layout
The ExdScreenConfigurationMessage FIT message's layout field.
The ExdScreenConfigurationMessage class represents a FIT ExdScreenConfigurationMessage data message.
quint8 fieldCount() const
Returns the ExdScreenConfigurationMessage data message's fieldCount field's current value.
void setFieldCount(const quint8 fieldCount)
Sets the fieldCount field to fieldCount.
void setLayout(const ExdLayout layout)
Sets the layout field to layout.
void setScreenEnabled(const bool screenEnabled)
Sets the screenEnabled field to screenEnabled.
quint8 screenIndex() const
Returns the ExdScreenConfigurationMessage data message's screenIndex field's current value.
void setScreenIndex(const quint8 screenIndex)
Sets the screenIndex field to screenIndex.
bool screenEnabled() const
Returns the ExdScreenConfigurationMessage data message's screenEnabled field's current value.
ExdScreenConfigurationMessage()
Constructs a ExdScreenConfigurationMessage object.
ExdLayout layout() const
Returns the ExdScreenConfigurationMessage data message's layout field's current value.
Declares the ExdScreenConfigurationMessage class.
Declares the ExdScreenConfigurationMessagePrivate class.
ExdLayout
Garmin FIT ExdLayout type.
FitBaseType
Garmin FIT FitBaseType type.