QtFit
0.1
Internal library development documentation
|
The WorkoutStepMessage class represents a FIT WorkoutStepMessage data message. More...
Public Member Functions | |
WorkoutStepMessage () | |
Constructs a WorkoutStepMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the WorkoutStepMessage data message's messageIndex field's current value. More... | |
QString | wktStepName () const |
Returns the WorkoutStepMessage data message's wktStepName field's current value. More... | |
WktStepDuration | durationType () const |
Returns the WorkoutStepMessage data message's durationType field's current value. More... | |
quint32 | durationValue () const |
Returns the WorkoutStepMessage data message's durationValue field's current value. More... | |
WktStepTarget | targetType () const |
Returns the WorkoutStepMessage data message's targetType field's current value. More... | |
quint32 | targetValue () const |
Returns the WorkoutStepMessage data message's targetValue field's current value. More... | |
quint32 | customTargetValueLow () const |
Returns the WorkoutStepMessage data message's customTargetValueLow field's current value. More... | |
quint32 | customTargetValueHigh () const |
Returns the WorkoutStepMessage data message's customTargetValueHigh field's current value. More... | |
Intensity | intensity () const |
Returns the WorkoutStepMessage data message's intensity field's current value. More... | |
QString | notes () const |
Returns the WorkoutStepMessage data message's notes field's current value. More... | |
WorkoutEquipment | equipment () const |
Returns the WorkoutStepMessage data message's equipment field's current value. More... | |
ExerciseCategory | exerciseCategory () const |
Returns the WorkoutStepMessage data message's exerciseCategory field's current value. More... | |
quint16 | exerciseName () const |
Returns the WorkoutStepMessage data message's exerciseName field's current value. More... | |
quint16 | exerciseWeight () const |
Returns the WorkoutStepMessage data message's exerciseWeight field's current value. More... | |
FitBaseUnit | weightDisplayUnit () const |
Returns the WorkoutStepMessage data message's weightDisplayUnit field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setWktStepName (const QString wktStepName) |
Sets the wktStepName field to wktStepName. More... | |
void | setDurationType (const WktStepDuration durationType) |
Sets the durationType field to durationType. More... | |
void | setDurationValue (const quint32 durationValue) |
Sets the durationValue field to durationValue. More... | |
void | setTargetType (const WktStepTarget targetType) |
Sets the targetType field to targetType. More... | |
void | setTargetValue (const quint32 targetValue) |
Sets the targetValue field to targetValue. More... | |
void | setCustomTargetValueLow (const quint32 customTargetValueLow) |
Sets the customTargetValueLow field to customTargetValueLow. More... | |
void | setCustomTargetValueHigh (const quint32 customTargetValueHigh) |
Sets the customTargetValueHigh field to customTargetValueHigh. More... | |
void | setIntensity (const Intensity intensity) |
Sets the intensity field to intensity. More... | |
void | setNotes (const QString notes) |
Sets the notes field to notes. More... | |
void | setEquipment (const WorkoutEquipment equipment) |
Sets the equipment field to equipment. More... | |
void | setExerciseCategory (const ExerciseCategory exerciseCategory) |
Sets the exerciseCategory field to exerciseCategory. More... | |
void | setExerciseName (const quint16 exerciseName) |
Sets the exerciseName field to exerciseName. More... | |
void | setExerciseWeight (const quint16 exerciseWeight) |
Sets the exerciseWeight field to exerciseWeight. More... | |
void | setWeightDisplayUnit (const FitBaseUnit weightDisplayUnit) |
Sets the weightDisplayUnit field to weightDisplayUnit. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
WorkoutStepMessage (WorkoutStepMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The WorkoutStepMessage class represents a FIT WorkoutStepMessage data message.
Definition at line 39 of file workoutstepmessage.h.
WorkoutStepMessage::WorkoutStepMessage | ( | ) |
Constructs a WorkoutStepMessage object.
Typically, instances of this class will be returned by FitStreamReader::readNext, but this constructor may be used, along with the relevant setter methods, to create a valid message.
Definition at line 52 of file workoutstepmessage.cpp.
|
explicitprotected |
Constructs a WorkoutStepMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file workoutstepmessage.cpp.
quint32 WorkoutStepMessage::customTargetValueHigh | ( | ) | const |
Returns the WorkoutStepMessage data message's customTargetValueHigh
field's current value.
customTargetValueHigh
field value. Definition at line 151 of file workoutstepmessage.cpp.
Referenced by setCustomTargetValueHigh().
quint32 WorkoutStepMessage::customTargetValueLow | ( | ) | const |
Returns the WorkoutStepMessage data message's customTargetValueLow
field's current value.
customTargetValueLow
field value. Definition at line 140 of file workoutstepmessage.cpp.
Referenced by setCustomTargetValueLow().
WktStepDuration WorkoutStepMessage::durationType | ( | ) | const |
Returns the WorkoutStepMessage data message's durationType
field's current value.
durationType
field value. Definition at line 96 of file workoutstepmessage.cpp.
Referenced by setDurationType().
quint32 WorkoutStepMessage::durationValue | ( | ) | const |
Returns the WorkoutStepMessage data message's durationValue
field's current value.
durationValue
field value. Definition at line 107 of file workoutstepmessage.cpp.
Referenced by setDurationValue().
WorkoutEquipment WorkoutStepMessage::equipment | ( | ) | const |
Returns the WorkoutStepMessage data message's equipment
field's current value.
equipment
field value. Definition at line 184 of file workoutstepmessage.cpp.
Referenced by setEquipment().
ExerciseCategory WorkoutStepMessage::exerciseCategory | ( | ) | const |
Returns the WorkoutStepMessage data message's exerciseCategory
field's current value.
exerciseCategory
field value. Definition at line 195 of file workoutstepmessage.cpp.
Referenced by setExerciseCategory().
quint16 WorkoutStepMessage::exerciseName | ( | ) | const |
Returns the WorkoutStepMessage data message's exerciseName
field's current value.
exerciseName
field value. Definition at line 206 of file workoutstepmessage.cpp.
Referenced by setExerciseName().
quint16 WorkoutStepMessage::exerciseWeight | ( | ) | const |
Returns the WorkoutStepMessage data message's exerciseWeight
field's current value.
exerciseWeight
field value. Definition at line 217 of file workoutstepmessage.cpp.
Referenced by setExerciseWeight().
Intensity WorkoutStepMessage::intensity | ( | ) | const |
Returns the WorkoutStepMessage data message's intensity
field's current value.
intensity
field value. Definition at line 162 of file workoutstepmessage.cpp.
Referenced by setIntensity().
MessageIndex WorkoutStepMessage::messageIndex | ( | ) | const |
Returns the WorkoutStepMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file workoutstepmessage.cpp.
Referenced by setMessageIndex().
QString WorkoutStepMessage::notes | ( | ) | const |
Returns the WorkoutStepMessage data message's notes
field's current value.
notes
field value. Definition at line 173 of file workoutstepmessage.cpp.
Referenced by setNotes().
void WorkoutStepMessage::setCustomTargetValueHigh | ( | const quint32 | customTargetValueHigh | ) |
Sets the customTargetValueHigh
field to customTargetValueHigh.
customTargetValueHigh | The field value to set. |
Definition at line 309 of file workoutstepmessage.cpp.
References customTargetValueHigh().
void WorkoutStepMessage::setCustomTargetValueLow | ( | const quint32 | customTargetValueLow | ) |
Sets the customTargetValueLow
field to customTargetValueLow.
customTargetValueLow | The field value to set. |
Definition at line 299 of file workoutstepmessage.cpp.
References customTargetValueLow().
void WorkoutStepMessage::setDurationType | ( | const WktStepDuration | durationType | ) |
Sets the durationType
field to durationType.
durationType | The field value to set. |
Definition at line 259 of file workoutstepmessage.cpp.
References durationType().
void WorkoutStepMessage::setDurationValue | ( | const quint32 | durationValue | ) |
Sets the durationValue
field to durationValue.
durationValue | The field value to set. |
Definition at line 269 of file workoutstepmessage.cpp.
References durationValue().
void WorkoutStepMessage::setEquipment | ( | const WorkoutEquipment | equipment | ) |
Sets the equipment
field to equipment.
equipment | The field value to set. |
Definition at line 339 of file workoutstepmessage.cpp.
References equipment().
void WorkoutStepMessage::setExerciseCategory | ( | const ExerciseCategory | exerciseCategory | ) |
Sets the exerciseCategory
field to exerciseCategory.
exerciseCategory | The field value to set. |
Definition at line 349 of file workoutstepmessage.cpp.
References exerciseCategory().
void WorkoutStepMessage::setExerciseName | ( | const quint16 | exerciseName | ) |
Sets the exerciseName
field to exerciseName.
exerciseName | The field value to set. |
Definition at line 359 of file workoutstepmessage.cpp.
References exerciseName().
void WorkoutStepMessage::setExerciseWeight | ( | const quint16 | exerciseWeight | ) |
Sets the exerciseWeight
field to exerciseWeight.
exerciseWeight | The field value to set. |
Definition at line 369 of file workoutstepmessage.cpp.
References exerciseWeight().
void WorkoutStepMessage::setIntensity | ( | const Intensity | intensity | ) |
Sets the intensity
field to intensity.
intensity | The field value to set. |
Definition at line 319 of file workoutstepmessage.cpp.
References intensity().
void WorkoutStepMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 239 of file workoutstepmessage.cpp.
References messageIndex().
void WorkoutStepMessage::setNotes | ( | const QString | notes | ) |
Sets the notes
field to notes.
notes | The field value to set. |
Definition at line 329 of file workoutstepmessage.cpp.
References notes().
void WorkoutStepMessage::setTargetType | ( | const WktStepTarget | targetType | ) |
Sets the targetType
field to targetType.
targetType | The field value to set. |
Definition at line 279 of file workoutstepmessage.cpp.
References targetType().
void WorkoutStepMessage::setTargetValue | ( | const quint32 | targetValue | ) |
Sets the targetValue
field to targetValue.
targetValue | The field value to set. |
Definition at line 289 of file workoutstepmessage.cpp.
References targetValue().
void WorkoutStepMessage::setWeightDisplayUnit | ( | const FitBaseUnit | weightDisplayUnit | ) |
Sets the weightDisplayUnit
field to weightDisplayUnit.
weightDisplayUnit | The field value to set. |
Definition at line 379 of file workoutstepmessage.cpp.
References weightDisplayUnit().
void WorkoutStepMessage::setWktStepName | ( | const QString | wktStepName | ) |
Sets the wktStepName
field to wktStepName.
wktStepName | The field value to set. |
Definition at line 249 of file workoutstepmessage.cpp.
References wktStepName().
WktStepTarget WorkoutStepMessage::targetType | ( | ) | const |
Returns the WorkoutStepMessage data message's targetType
field's current value.
targetType
field value. Definition at line 118 of file workoutstepmessage.cpp.
Referenced by setTargetType().
quint32 WorkoutStepMessage::targetValue | ( | ) | const |
Returns the WorkoutStepMessage data message's targetValue
field's current value.
targetValue
field value. Definition at line 129 of file workoutstepmessage.cpp.
Referenced by setTargetValue().
FitBaseUnit WorkoutStepMessage::weightDisplayUnit | ( | ) | const |
Returns the WorkoutStepMessage data message's weightDisplayUnit
field's current value.
weightDisplayUnit
field value. Definition at line 228 of file workoutstepmessage.cpp.
Referenced by setWeightDisplayUnit().
QString WorkoutStepMessage::wktStepName | ( | ) | const |
Returns the WorkoutStepMessage data message's wktStepName
field's current value.
wktStepName
field value. Definition at line 85 of file workoutstepmessage.cpp.
Referenced by setWktStepName().