77 return d->messageIndex;
88 return d->exerciseCategory;
99 return d->exerciseName;
110 return d->wktStepName;
177 , exerciseName(0xFFFF)
193 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
197 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"exercise_title.messageIndex"))
return false;
198 this->
messageIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
201 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"exercise_title.exerciseCategory"))
return false;
205 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"exercise_title.exerciseName"))
return false;
206 this->
exerciseName =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
209 if (!
verify(data, baseType, 1, FitBaseType::String,
"exercise_title.wktStepName"))
return false;
213 qWarning() <<
"ignoring unknown exercise_title 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.
MessageIndex messageIndex
The ExerciseTitleMessage FIT message's messageIndex field.
virtual ~ExerciseTitleMessagePrivate()
ExerciseCategory exerciseCategory
The ExerciseTitleMessage FIT message's exerciseCategory field.
QString wktStepName
The ExerciseTitleMessage FIT message's wktStepName field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint16 exerciseName
The ExerciseTitleMessage FIT message's exerciseName field.
The ExerciseTitleMessage class represents a FIT ExerciseTitleMessage data message.
quint16 exerciseName() const
Returns the ExerciseTitleMessage data message's exerciseName field's current value.
void setExerciseCategory(const ExerciseCategory exerciseCategory)
Sets the exerciseCategory field to exerciseCategory.
ExerciseCategory exerciseCategory() const
Returns the ExerciseTitleMessage data message's exerciseCategory field's current value.
void setWktStepName(const QString wktStepName)
Sets the wktStepName field to wktStepName.
ExerciseTitleMessage()
Constructs a ExerciseTitleMessage object.
QString wktStepName() const
Returns the ExerciseTitleMessage data message's wktStepName field's current value.
MessageIndex messageIndex() const
Returns the ExerciseTitleMessage data message's messageIndex field's current value.
void setExerciseName(const quint16 exerciseName)
Sets the exerciseName field to exerciseName.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
Declares the ExerciseTitleMessage class.
Declares the ExerciseTitleMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
ExerciseCategory
Garmin FIT ExerciseCategory type.
MessageIndex
Garmin FIT MessageIndex type.