QtFit
0.1
Internal library development documentation
|
The WorkoutSessionMessage class represents a FIT WorkoutSessionMessage data message. More...
Public Member Functions | |
WorkoutSessionMessage () | |
Constructs a WorkoutSessionMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the WorkoutSessionMessage data message's messageIndex field's current value. More... | |
Sport | sport () const |
Returns the WorkoutSessionMessage data message's sport field's current value. More... | |
SubSport | subSport () const |
Returns the WorkoutSessionMessage data message's subSport field's current value. More... | |
quint16 | numValidSteps () const |
Returns the WorkoutSessionMessage data message's numValidSteps field's current value. More... | |
quint16 | firstStepIndex () const |
Returns the WorkoutSessionMessage data message's firstStepIndex field's current value. More... | |
quint16 | poolLength () const |
Returns the WorkoutSessionMessage data message's poolLength field's current value. More... | |
DisplayMeasure | poolLengthUnit () const |
Returns the WorkoutSessionMessage data message's poolLengthUnit field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setSport (const Sport sport) |
Sets the sport field to sport. More... | |
void | setSubSport (const SubSport subSport) |
Sets the subSport field to subSport. More... | |
void | setNumValidSteps (const quint16 numValidSteps) |
Sets the numValidSteps field to numValidSteps. More... | |
void | setFirstStepIndex (const quint16 firstStepIndex) |
Sets the firstStepIndex field to firstStepIndex. More... | |
void | setPoolLength (const quint16 poolLength) |
Sets the poolLength field to poolLength. More... | |
void | setPoolLengthUnit (const DisplayMeasure poolLengthUnit) |
Sets the poolLengthUnit field to poolLengthUnit. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
WorkoutSessionMessage (WorkoutSessionMessagePrivate *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 WorkoutSessionMessage class represents a FIT WorkoutSessionMessage data message.
Definition at line 39 of file workoutsessionmessage.h.
WorkoutSessionMessage::WorkoutSessionMessage | ( | ) |
Constructs a WorkoutSessionMessage 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 workoutsessionmessage.cpp.
|
explicitprotected |
Constructs a WorkoutSessionMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file workoutsessionmessage.cpp.
quint16 WorkoutSessionMessage::firstStepIndex | ( | ) | const |
Returns the WorkoutSessionMessage data message's firstStepIndex
field's current value.
firstStepIndex
field value. Definition at line 118 of file workoutsessionmessage.cpp.
Referenced by setFirstStepIndex().
MessageIndex WorkoutSessionMessage::messageIndex | ( | ) | const |
Returns the WorkoutSessionMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file workoutsessionmessage.cpp.
Referenced by setMessageIndex().
quint16 WorkoutSessionMessage::numValidSteps | ( | ) | const |
Returns the WorkoutSessionMessage data message's numValidSteps
field's current value.
numValidSteps
field value. Definition at line 107 of file workoutsessionmessage.cpp.
Referenced by setNumValidSteps().
quint16 WorkoutSessionMessage::poolLength | ( | ) | const |
Returns the WorkoutSessionMessage data message's poolLength
field's current value.
poolLength
field value. Definition at line 129 of file workoutsessionmessage.cpp.
Referenced by setPoolLength().
DisplayMeasure WorkoutSessionMessage::poolLengthUnit | ( | ) | const |
Returns the WorkoutSessionMessage data message's poolLengthUnit
field's current value.
poolLengthUnit
field value. Definition at line 140 of file workoutsessionmessage.cpp.
Referenced by setPoolLengthUnit().
void WorkoutSessionMessage::setFirstStepIndex | ( | const quint16 | firstStepIndex | ) |
Sets the firstStepIndex
field to firstStepIndex.
firstStepIndex | The field value to set. |
Definition at line 191 of file workoutsessionmessage.cpp.
References firstStepIndex().
void WorkoutSessionMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 151 of file workoutsessionmessage.cpp.
References messageIndex().
void WorkoutSessionMessage::setNumValidSteps | ( | const quint16 | numValidSteps | ) |
Sets the numValidSteps
field to numValidSteps.
numValidSteps | The field value to set. |
Definition at line 181 of file workoutsessionmessage.cpp.
References numValidSteps().
void WorkoutSessionMessage::setPoolLength | ( | const quint16 | poolLength | ) |
Sets the poolLength
field to poolLength.
poolLength | The field value to set. |
Definition at line 201 of file workoutsessionmessage.cpp.
References poolLength().
void WorkoutSessionMessage::setPoolLengthUnit | ( | const DisplayMeasure | poolLengthUnit | ) |
Sets the poolLengthUnit
field to poolLengthUnit.
poolLengthUnit | The field value to set. |
Definition at line 211 of file workoutsessionmessage.cpp.
References poolLengthUnit().
void WorkoutSessionMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
Definition at line 161 of file workoutsessionmessage.cpp.
References sport().
void WorkoutSessionMessage::setSubSport | ( | const SubSport | subSport | ) |
Sets the subSport
field to subSport.
subSport | The field value to set. |
Definition at line 171 of file workoutsessionmessage.cpp.
References subSport().
Sport WorkoutSessionMessage::sport | ( | ) | const |
Returns the WorkoutSessionMessage data message's sport
field's current value.
sport
field value. Definition at line 85 of file workoutsessionmessage.cpp.
Referenced by setSport().
SubSport WorkoutSessionMessage::subSport | ( | ) | const |
Returns the WorkoutSessionMessage data message's subSport
field's current value.
subSport
field value. Definition at line 96 of file workoutsessionmessage.cpp.
Referenced by setSubSport().