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