QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
WorkoutSessionMessage Class Reference

The WorkoutSessionMessage class represents a FIT WorkoutSessionMessage data message. More...

Inheritance diagram for WorkoutSessionMessage:
[legend]
Collaboration diagram for WorkoutSessionMessage:
[legend]

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 

Detailed Description

The WorkoutSessionMessage class represents a FIT WorkoutSessionMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ WorkoutSessionMessage()

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.

Member Function Documentation

◆ firstStepIndex()

quint16 WorkoutSessionMessage::firstStepIndex ( ) const

Returns the WorkoutSessionMessage data message's firstStepIndex field's current value.

Returns
the firstStepIndex field value.
Here is the caller graph for this function:

◆ messageIndex()

MessageIndex WorkoutSessionMessage::messageIndex ( ) const

Returns the WorkoutSessionMessage data message's messageIndex field's current value.

Returns
the messageIndex field value.
Here is the caller graph for this function:

◆ numValidSteps()

quint16 WorkoutSessionMessage::numValidSteps ( ) const

Returns the WorkoutSessionMessage data message's numValidSteps field's current value.

Returns
the numValidSteps field value.
Here is the caller graph for this function:

◆ poolLength()

quint16 WorkoutSessionMessage::poolLength ( ) const

Returns the WorkoutSessionMessage data message's poolLength field's current value.

Returns
the poolLength field value.
Here is the caller graph for this function:

◆ poolLengthUnit()

DisplayMeasure WorkoutSessionMessage::poolLengthUnit ( ) const

Returns the WorkoutSessionMessage data message's poolLengthUnit field's current value.

Returns
the poolLengthUnit field value.
Here is the caller graph for this function:

◆ setFirstStepIndex()

void WorkoutSessionMessage::setFirstStepIndex ( const quint16  firstStepIndex)

Sets the firstStepIndex field to firstStepIndex.

Parameters
firstStepIndexThe field value to set.
Here is the call graph for this function:

◆ setMessageIndex()

void WorkoutSessionMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

Parameters
messageIndexThe field value to set.
Here is the call graph for this function:

◆ setNumValidSteps()

void WorkoutSessionMessage::setNumValidSteps ( const quint16  numValidSteps)

Sets the numValidSteps field to numValidSteps.

Parameters
numValidStepsThe field value to set.
Here is the call graph for this function:

◆ setPoolLength()

void WorkoutSessionMessage::setPoolLength ( const quint16  poolLength)

Sets the poolLength field to poolLength.

Parameters
poolLengthThe field value to set.
Here is the call graph for this function:

◆ setPoolLengthUnit()

void WorkoutSessionMessage::setPoolLengthUnit ( const DisplayMeasure  poolLengthUnit)

Sets the poolLengthUnit field to poolLengthUnit.

Parameters
poolLengthUnitThe field value to set.
Here is the call graph for this function:

◆ setSport()

void WorkoutSessionMessage::setSport ( const Sport  sport)

Sets the sport field to sport.

Parameters
sportThe field value to set.
Here is the call graph for this function:

◆ setSubSport()

void WorkoutSessionMessage::setSubSport ( const SubSport  subSport)

Sets the subSport field to subSport.

Parameters
subSportThe field value to set.
Here is the call graph for this function:

◆ sport()

Sport WorkoutSessionMessage::sport ( ) const

Returns the WorkoutSessionMessage data message's sport field's current value.

Returns
the sport field value.
Here is the caller graph for this function:

◆ subSport()

SubSport WorkoutSessionMessage::subSport ( ) const

Returns the WorkoutSessionMessage data message's subSport field's current value.

Returns
the subSport field value.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: