77 return d->developerId;
88 return d->applicationId;
99 return d->manufacturerId;
110 return d->developerDataIndex;
121 return d->applicationVersion;
197 , applicationId(0xFF)
199 , developerDataIndex(0xFF)
200 , applicationVersion(0xFFFFFFFF)
216 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
220 if (!
verify(data, baseType, 1, FitBaseType::Byte,
"developer_data_id.developerId"))
return false;
221 this->
developerId =
static_cast<quint8
>(data.at(0));
224 if (!
verify(data, baseType, 1, FitBaseType::Byte,
"developer_data_id.applicationId"))
return false;
228 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"developer_data_id.manufacturerId"))
return false;
229 this->
manufacturerId =
static_cast<Manufacturer>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
232 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"developer_data_id.developerDataIndex"))
return false;
236 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"developer_data_id.applicationVersion"))
return false;
237 this->
applicationVersion =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
240 qWarning() <<
"ignoring unknown developer_data_id 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.
quint8 applicationId
The DeveloperDataIdMessage FIT message's applicationId field.
quint32 applicationVersion
The DeveloperDataIdMessage FIT message's applicationVersion field.
quint8 developerId
The DeveloperDataIdMessage FIT message's developerId field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint8 developerDataIndex
The DeveloperDataIdMessage FIT message's developerDataIndex field.
Manufacturer manufacturerId
The DeveloperDataIdMessage FIT message's manufacturerId field.
virtual ~DeveloperDataIdMessagePrivate()
The DeveloperDataIdMessage class represents a FIT DeveloperDataIdMessage data message.
void setApplicationVersion(const quint32 applicationVersion)
Sets the applicationVersion field to applicationVersion.
void setDeveloperId(const quint8 developerId)
Sets the developerId field to developerId.
void setManufacturerId(const Manufacturer manufacturerId)
Sets the manufacturerId field to manufacturerId.
void setApplicationId(const quint8 applicationId)
Sets the applicationId field to applicationId.
quint8 developerDataIndex() const
Returns the DeveloperDataIdMessage data message's developerDataIndex field's current value.
Manufacturer manufacturerId() const
Returns the DeveloperDataIdMessage data message's manufacturerId field's current value.
void setDeveloperDataIndex(const quint8 developerDataIndex)
Sets the developerDataIndex field to developerDataIndex.
quint8 applicationId() const
Returns the DeveloperDataIdMessage data message's applicationId field's current value.
DeveloperDataIdMessage()
Constructs a DeveloperDataIdMessage object.
quint8 developerId() const
Returns the DeveloperDataIdMessage data message's developerId field's current value.
quint32 applicationVersion() const
Returns the DeveloperDataIdMessage data message's applicationVersion field's current value.
Declares the DeveloperDataIdMessage class.
Declares the DeveloperDataIdMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
Manufacturer
Garmin FIT Manufacturer type.