77 return d->messageIndex;
171 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
175 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"cadence_zone.messageIndex"))
return false;
176 this->
messageIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
179 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"cadence_zone.highValue"))
return false;
180 this->
highValue =
static_cast<quint8
>(data.at(0));
183 if (!
verify(data, baseType, 1, FitBaseType::String,
"cadence_zone.name"))
return false;
184 this->
name = QString::fromUtf8(data);
187 qWarning() <<
"ignoring unknown cadence_zone 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).
Declares the CadenceZoneMessage class.
Declares the CadenceZoneMessagePrivate class.
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 ~CadenceZoneMessagePrivate()
quint8 highValue
The CadenceZoneMessage FIT message's highValue field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
QString name
The CadenceZoneMessage FIT message's name field.
MessageIndex messageIndex
The CadenceZoneMessage FIT message's messageIndex field.
The CadenceZoneMessage class represents a FIT CadenceZoneMessage data message.
void setHighValue(const quint8 highValue)
Sets the highValue field to highValue.
QString name() const
Returns the CadenceZoneMessage data message's name field's current value.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
CadenceZoneMessage()
Constructs a CadenceZoneMessage object.
quint8 highValue() const
Returns the CadenceZoneMessage data message's highValue field's current value.
MessageIndex messageIndex() const
Returns the CadenceZoneMessage data message's messageIndex field's current value.
void setName(const QString name)
Sets the name field to name.
FitBaseType
Garmin FIT FitBaseType type.
MessageIndex
Garmin FIT MessageIndex type.