The TotalsMessage class represents a FIT TotalsMessage data message.
More...
|
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
| Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
|
|
The TotalsMessage class represents a FIT TotalsMessage data message.
- See also
- DataMessage
◆ 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.
◆ activeTime()
quint32 TotalsMessage::activeTime |
( |
| ) |
const |
Returns the TotalsMessage data message's activeTime
field's current value.
- Returns
- the
activeTime
field value.
◆ calories()
quint32 TotalsMessage::calories |
( |
| ) |
const |
Returns the TotalsMessage data message's calories
field's current value.
- Returns
- the
calories
field value.
◆ distance()
quint32 TotalsMessage::distance |
( |
| ) |
const |
Returns the TotalsMessage data message's distance
field's current value.
- Returns
- the
distance
field value.
◆ elapsedTime()
quint32 TotalsMessage::elapsedTime |
( |
| ) |
const |
Returns the TotalsMessage data message's elapsedTime
field's current value.
Includes pauses
- Returns
- the
elapsedTime
field value.
◆ messageIndex()
Returns the TotalsMessage data message's messageIndex
field's current value.
- Returns
- the
messageIndex
field value.
◆ sessions()
quint16 TotalsMessage::sessions |
( |
| ) |
const |
Returns the TotalsMessage data message's sessions
field's current value.
- Returns
- the
sessions
field value.
◆ setActiveTime()
void TotalsMessage::setActiveTime |
( |
const quint32 |
activeTime | ) |
|
Sets the activeTime
field to activeTime.
- Parameters
-
activeTime | The field value to set. |
◆ setCalories()
void TotalsMessage::setCalories |
( |
const quint32 |
calories | ) |
|
Sets the calories
field to calories.
- Parameters
-
calories | The field value to set. |
◆ setDistance()
void TotalsMessage::setDistance |
( |
const quint32 |
distance | ) |
|
Sets the distance
field to distance.
- Parameters
-
distance | The field value to set. |
◆ setElapsedTime()
void TotalsMessage::setElapsedTime |
( |
const quint32 |
elapsedTime | ) |
|
Sets the elapsedTime
field to elapsedTime.
- Parameters
-
elapsedTime | The field value to set. |
◆ setMessageIndex()
void TotalsMessage::setMessageIndex |
( |
const MessageIndex |
messageIndex | ) |
|
Sets the messageIndex
field to messageIndex.
- Parameters
-
messageIndex | The field value to set. |
◆ setSessions()
void TotalsMessage::setSessions |
( |
const quint16 |
sessions | ) |
|
Sets the sessions
field to sessions.
- Parameters
-
sessions | The field value to set. |
◆ setSport()
void TotalsMessage::setSport |
( |
const Sport |
sport | ) |
|
Sets the sport
field to sport.
- Parameters
-
sport | The field value to set. |
◆ setSportIndex()
void TotalsMessage::setSportIndex |
( |
const quint8 |
sportIndex | ) |
|
Sets the sportIndex
field to sportIndex.
- Parameters
-
sportIndex | The field value to set. |
◆ setTimerTime()
void TotalsMessage::setTimerTime |
( |
const quint32 |
timerTime | ) |
|
Sets the timerTime
field to timerTime.
- Parameters
-
timerTime | The field value to set. |
◆ setTimestamp()
void TotalsMessage::setTimestamp |
( |
const DateTime |
timestamp | ) |
|
Sets the timestamp
field to timestamp.
- Parameters
-
timestamp | The field value to set. |
◆ sport()
Sport TotalsMessage::sport |
( |
| ) |
const |
Returns the TotalsMessage data message's sport
field's current value.
- Returns
- the
sport
field value.
◆ sportIndex()
quint8 TotalsMessage::sportIndex |
( |
| ) |
const |
Returns the TotalsMessage data message's sportIndex
field's current value.
- Returns
- the
sportIndex
field value.
◆ timerTime()
quint32 TotalsMessage::timerTime |
( |
| ) |
const |
Returns the TotalsMessage data message's timerTime
field's current value.
Excludes pauses
- Returns
- the
timerTime
field value.
◆ timestamp()
DateTime TotalsMessage::timestamp |
( |
| ) |
const |
Returns the TotalsMessage data message's timestamp
field's current value.
- Returns
- the
timestamp
field value.
The documentation for this class was generated from the following files: