133 , timestamp(static_cast<
DateTime>(-1))
134 , enabled(static_cast<
Switch>(-1))
150 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
154 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"ohr_settings.timestamp"))
return false;
155 this->
timestamp =
static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
158 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"ohr_settings.enabled"))
return false;
162 qWarning() <<
"ignoring unknown ohr_settings 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.
DateTime timestamp
The OhrSettingsMessage FIT message's timestamp field.
virtual ~OhrSettingsMessagePrivate()
Switch enabled
The OhrSettingsMessage FIT message's enabled field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
The OhrSettingsMessage class represents a FIT OhrSettingsMessage data message.
void setEnabled(const Switch enabled)
Sets the enabled field to enabled.
void setTimestamp(const DateTime timestamp)
Sets the timestamp field to timestamp.
DateTime timestamp() const
Returns the OhrSettingsMessage data message's timestamp field's current value.
Switch enabled() const
Returns the OhrSettingsMessage data message's enabled field's current value.
OhrSettingsMessage()
Constructs a OhrSettingsMessage object.
Declares the OhrSettingsMessage class.
Declares the OhrSettingsMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
Switch
Garmin FIT Switch type.
DateTime
Seconds since UTC 00:00 Dec 31 1989.