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

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

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

Public Member Functions

 TotalsMessage ()
 Constructs a TotalsMessage object. More...
 
MessageIndex messageIndex () const
 Returns the TotalsMessage data message's messageIndex field's current value. More...
 
DateTime timestamp () const
 Returns the TotalsMessage data message's timestamp field's current value. More...
 
quint32 timerTime () const
 Returns the TotalsMessage data message's timerTime field's current value. More...
 
quint32 distance () const
 Returns the TotalsMessage data message's distance field's current value. More...
 
quint32 calories () const
 Returns the TotalsMessage data message's calories field's current value. More...
 
Sport sport () const
 Returns the TotalsMessage data message's sport field's current value. More...
 
quint32 elapsedTime () const
 Returns the TotalsMessage data message's elapsedTime field's current value. More...
 
quint16 sessions () const
 Returns the TotalsMessage data message's sessions field's current value. More...
 
quint32 activeTime () const
 Returns the TotalsMessage data message's activeTime field's current value. More...
 
quint8 sportIndex () const
 Returns the TotalsMessage data message's sportIndex field's current value. More...
 
void setMessageIndex (const MessageIndex messageIndex)
 Sets the messageIndex field to messageIndex. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setTimerTime (const quint32 timerTime)
 Sets the timerTime field to timerTime. More...
 
void setDistance (const quint32 distance)
 Sets the distance field to distance. More...
 
void setCalories (const quint32 calories)
 Sets the calories field to calories. More...
 
void setSport (const Sport sport)
 Sets the sport field to sport. More...
 
void setElapsedTime (const quint32 elapsedTime)
 Sets the elapsedTime field to elapsedTime. More...
 
void setSessions (const quint16 sessions)
 Sets the sessions field to sessions. More...
 
void setActiveTime (const quint32 activeTime)
 Sets the activeTime field to activeTime. More...
 
void setSportIndex (const quint8 sportIndex)
 Sets the sportIndex field to sportIndex. 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 TotalsMessage class represents a FIT TotalsMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ TotalsMessage()

TotalsMessage::TotalsMessage ( )

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

◆ activeTime()

quint32 TotalsMessage::activeTime ( ) const

Returns the TotalsMessage data message's activeTime field's current value.

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

◆ calories()

quint32 TotalsMessage::calories ( ) const

Returns the TotalsMessage data message's calories field's current value.

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

◆ distance()

quint32 TotalsMessage::distance ( ) const

Returns the TotalsMessage data message's distance field's current value.

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

◆ elapsedTime()

quint32 TotalsMessage::elapsedTime ( ) const

Returns the TotalsMessage data message's elapsedTime field's current value.

Includes pauses

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

◆ messageIndex()

MessageIndex TotalsMessage::messageIndex ( ) const

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

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

◆ sessions()

quint16 TotalsMessage::sessions ( ) const

Returns the TotalsMessage data message's sessions field's current value.

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

◆ setActiveTime()

void TotalsMessage::setActiveTime ( const quint32  activeTime)

Sets the activeTime field to activeTime.

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

◆ setCalories()

void TotalsMessage::setCalories ( const quint32  calories)

Sets the calories field to calories.

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

◆ setDistance()

void TotalsMessage::setDistance ( const quint32  distance)

Sets the distance field to distance.

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

◆ setElapsedTime()

void TotalsMessage::setElapsedTime ( const quint32  elapsedTime)

Sets the elapsedTime field to elapsedTime.

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

◆ setMessageIndex()

void TotalsMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

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

◆ setSessions()

void TotalsMessage::setSessions ( const quint16  sessions)

Sets the sessions field to sessions.

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

◆ setSport()

void TotalsMessage::setSport ( const Sport  sport)

Sets the sport field to sport.

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

◆ setSportIndex()

void TotalsMessage::setSportIndex ( const quint8  sportIndex)

Sets the sportIndex field to sportIndex.

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

◆ setTimerTime()

void TotalsMessage::setTimerTime ( const quint32  timerTime)

Sets the timerTime field to timerTime.

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

◆ setTimestamp()

void TotalsMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ sport()

Sport TotalsMessage::sport ( ) const

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

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

◆ sportIndex()

quint8 TotalsMessage::sportIndex ( ) const

Returns the TotalsMessage data message's sportIndex field's current value.

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

◆ timerTime()

quint32 TotalsMessage::timerTime ( ) const

Returns the TotalsMessage data message's timerTime field's current value.

Excludes pauses

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

◆ timestamp()

DateTime TotalsMessage::timestamp ( ) const

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

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

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