77 return d->softwareVersion;
88 return d->hardwareVersion;
133 , softwareVersion(0xFFFF)
134 , hardwareVersion(0xFF)
150 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
154 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"file_creator.softwareVersion"))
return false;
155 this->
softwareVersion =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
158 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"file_creator.hardwareVersion"))
return false;
162 qWarning() <<
"ignoring unknown file_creator 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.
quint16 softwareVersion
The FileCreatorMessage FIT message's softwareVersion field.
quint8 hardwareVersion
The FileCreatorMessage FIT message's hardwareVersion field.
virtual ~FileCreatorMessagePrivate()
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
The FileCreatorMessage class represents a FIT FileCreatorMessage data message.
quint16 softwareVersion() const
Returns the FileCreatorMessage data message's softwareVersion field's current value.
void setHardwareVersion(const quint8 hardwareVersion)
Sets the hardwareVersion field to hardwareVersion.
FileCreatorMessage()
Constructs a FileCreatorMessage object.
void setSoftwareVersion(const quint16 softwareVersion)
Sets the softwareVersion field to softwareVersion.
quint8 hardwareVersion() const
Returns the FileCreatorMessage data message's hardwareVersion field's current value.
Declares the FileCreatorMessage class.
Declares the FileCreatorMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.