77 return d->manufacturer;
150 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
154 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"slave_device.manufacturer"))
return false;
155 this->
manufacturer =
static_cast<Manufacturer>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
158 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"slave_device.product"))
return false;
159 this->
product =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
162 qWarning() <<
"ignoring unknown slave_device 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 product
The SlaveDeviceMessage FIT message's product field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
virtual ~SlaveDeviceMessagePrivate()
Manufacturer manufacturer
The SlaveDeviceMessage FIT message's manufacturer field.
The SlaveDeviceMessage class represents a FIT SlaveDeviceMessage data message.
Manufacturer manufacturer() const
Returns the SlaveDeviceMessage data message's manufacturer field's current value.
SlaveDeviceMessage()
Constructs a SlaveDeviceMessage object.
void setManufacturer(const Manufacturer manufacturer)
Sets the manufacturer field to manufacturer.
quint16 product() const
Returns the SlaveDeviceMessage data message's product field's current value.
void setProduct(const quint16 product)
Sets the product field to product.
Declares the SlaveDeviceMessage class.
Declares the SlaveDeviceMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
Manufacturer
Garmin FIT Manufacturer type.