77 return d->stressLevelValue;
90 return d->stressLevelTime;
135 , stressLevelValue(0x7FFF)
136 , stressLevelTime(static_cast<
DateTime>(-1))
152 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
156 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"stress_level.stressLevelValue"))
return false;
157 this->
stressLevelValue =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
160 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"stress_level.stressLevelTime"))
return false;
161 this->
stressLevelTime =
static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
164 qWarning() <<
"ignoring unknown stress_level 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.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
virtual ~StressLevelMessagePrivate()
qint16 stressLevelValue
The StressLevelMessage FIT message's stressLevelValue field.
DateTime stressLevelTime
The StressLevelMessage FIT message's stressLevelTime field.
The StressLevelMessage class represents a FIT StressLevelMessage data message.
DateTime stressLevelTime() const
Returns the StressLevelMessage data message's stressLevelTime field's current value.
void setStressLevelValue(const qint16 stressLevelValue)
Sets the stressLevelValue field to stressLevelValue.
void setStressLevelTime(const DateTime stressLevelTime)
Sets the stressLevelTime field to stressLevelTime.
qint16 stressLevelValue() const
Returns the StressLevelMessage data message's stressLevelValue field's current value.
StressLevelMessage()
Constructs a StressLevelMessage object.
Declares the StressLevelMessage class.
Declares the StressLevelMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
DateTime
Seconds since UTC 00:00 Dec 31 1989.