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

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

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

Public Member Functions

 SetMessage ()
 Constructs a SetMessage object. More...
 
DateTime timestamp () const
 Returns the SetMessage data message's timestamp field's current value. More...
 
quint32 duration () const
 Returns the SetMessage data message's duration field's current value. More...
 
quint16 repetitions () const
 Returns the SetMessage data message's repetitions field's current value. More...
 
quint16 weight () const
 Returns the SetMessage data message's weight field's current value. More...
 
SetType setType () const
 Returns the SetMessage data message's setType field's current value. More...
 
DateTime startTime () const
 Returns the SetMessage data message's startTime field's current value. More...
 
ExerciseCategory category () const
 Returns the SetMessage data message's category field's current value. More...
 
quint16 categorySubtype () const
 Returns the SetMessage data message's categorySubtype field's current value. More...
 
FitBaseUnit weightDisplayUnit () const
 Returns the SetMessage data message's weightDisplayUnit field's current value. More...
 
MessageIndex messageIndex () const
 Returns the SetMessage data message's messageIndex field's current value. More...
 
MessageIndex wktStepIndex () const
 Returns the SetMessage data message's wktStepIndex field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setDuration (const quint32 duration)
 Sets the duration field to duration. More...
 
void setRepetitions (const quint16 repetitions)
 Sets the repetitions field to repetitions. More...
 
void setWeight (const quint16 weight)
 Sets the weight field to weight. More...
 
void setSetType (const SetType setType)
 Sets the setType field to setType. More...
 
void setStartTime (const DateTime startTime)
 Sets the startTime field to startTime. More...
 
void setCategory (const ExerciseCategory category)
 Sets the category field to category. More...
 
void setCategorySubtype (const quint16 categorySubtype)
 Sets the categorySubtype field to categorySubtype. More...
 
void setWeightDisplayUnit (const FitBaseUnit weightDisplayUnit)
 Sets the weightDisplayUnit field to weightDisplayUnit. More...
 
void setMessageIndex (const MessageIndex messageIndex)
 Sets the messageIndex field to messageIndex. More...
 
void setWktStepIndex (const MessageIndex wktStepIndex)
 Sets the wktStepIndex field to wktStepIndex. 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 SetMessage class represents a FIT SetMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ SetMessage()

SetMessage::SetMessage ( )

Constructs a SetMessage 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

◆ category()

ExerciseCategory SetMessage::category ( ) const

Returns the SetMessage data message's category field's current value.

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

◆ categorySubtype()

quint16 SetMessage::categorySubtype ( ) const

Returns the SetMessage data message's categorySubtype field's current value.

Based on the associated category, see [category]_exercise_names

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

◆ duration()

quint32 SetMessage::duration ( ) const

Returns the SetMessage data message's duration field's current value.

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

◆ messageIndex()

MessageIndex SetMessage::messageIndex ( ) const

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

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

◆ repetitions()

quint16 SetMessage::repetitions ( ) const

Returns the SetMessage data message's repetitions field's current value.

of repitions of the movement

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

◆ setCategory()

void SetMessage::setCategory ( const ExerciseCategory  category)

Sets the category field to category.

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

◆ setCategorySubtype()

void SetMessage::setCategorySubtype ( const quint16  categorySubtype)

Sets the categorySubtype field to categorySubtype.

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

◆ setDuration()

void SetMessage::setDuration ( const quint32  duration)

Sets the duration field to duration.

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

◆ setMessageIndex()

void SetMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

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

◆ setRepetitions()

void SetMessage::setRepetitions ( const quint16  repetitions)

Sets the repetitions field to repetitions.

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

◆ setSetType()

void SetMessage::setSetType ( const SetType  setType)

Sets the setType field to setType.

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

◆ setStartTime()

void SetMessage::setStartTime ( const DateTime  startTime)

Sets the startTime field to startTime.

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

◆ setTimestamp()

void SetMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ setType()

SetType SetMessage::setType ( ) const

Returns the SetMessage data message's setType field's current value.

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

◆ setWeight()

void SetMessage::setWeight ( const quint16  weight)

Sets the weight field to weight.

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

◆ setWeightDisplayUnit()

void SetMessage::setWeightDisplayUnit ( const FitBaseUnit  weightDisplayUnit)

Sets the weightDisplayUnit field to weightDisplayUnit.

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

◆ setWktStepIndex()

void SetMessage::setWktStepIndex ( const MessageIndex  wktStepIndex)

Sets the wktStepIndex field to wktStepIndex.

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

◆ startTime()

DateTime SetMessage::startTime ( ) const

Returns the SetMessage data message's startTime field's current value.

Start time of the set

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

◆ timestamp()

DateTime SetMessage::timestamp ( ) const

Returns the SetMessage data message's timestamp field's current value.

Timestamp of the set

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

◆ weight()

quint16 SetMessage::weight ( ) const

Returns the SetMessage data message's weight field's current value.

Amount of weight applied for the set

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

◆ weightDisplayUnit()

FitBaseUnit SetMessage::weightDisplayUnit ( ) const

Returns the SetMessage data message's weightDisplayUnit field's current value.

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

◆ wktStepIndex()

MessageIndex SetMessage::wktStepIndex ( ) const

Returns the SetMessage data message's wktStepIndex field's current value.

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

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