The ActivityMessage class represents a FIT ActivityMessage 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 ActivityMessage class represents a FIT ActivityMessage data message.
- See also
- DataMessage
◆ ActivityMessage()
ActivityMessage::ActivityMessage |
( |
| ) |
|
Constructs a ActivityMessage 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.
◆ event()
Event ActivityMessage::event |
( |
| ) |
const |
Returns the ActivityMessage data message's event
field's current value.
- Returns
- the
event
field value.
◆ eventGroup()
quint8 ActivityMessage::eventGroup |
( |
| ) |
const |
Returns the ActivityMessage data message's eventGroup
field's current value.
- Returns
- the
eventGroup
field value.
◆ eventType()
EventType ActivityMessage::eventType |
( |
| ) |
const |
Returns the ActivityMessage data message's eventType
field's current value.
- Returns
- the
eventType
field value.
◆ localTimestamp()
Returns the ActivityMessage data message's localTimestamp
field's current value.
timestamp epoch expressed in local time, used to convert activity timestamps to local time
- Returns
- the
localTimestamp
field value.
◆ numSessions()
quint16 ActivityMessage::numSessions |
( |
| ) |
const |
Returns the ActivityMessage data message's numSessions
field's current value.
- Returns
- the
numSessions
field value.
◆ setEvent()
void ActivityMessage::setEvent |
( |
const Event |
event | ) |
|
Sets the event
field to event.
- Parameters
-
event | The field value to set. |
◆ setEventGroup()
void ActivityMessage::setEventGroup |
( |
const quint8 |
eventGroup | ) |
|
Sets the eventGroup
field to eventGroup.
- Parameters
-
eventGroup | The field value to set. |
◆ setEventType()
void ActivityMessage::setEventType |
( |
const EventType |
eventType | ) |
|
Sets the eventType
field to eventType.
- Parameters
-
eventType | The field value to set. |
◆ setLocalTimestamp()
void ActivityMessage::setLocalTimestamp |
( |
const LocalDateTime |
localTimestamp | ) |
|
Sets the localTimestamp
field to localTimestamp.
- Parameters
-
localTimestamp | The field value to set. |
◆ setNumSessions()
void ActivityMessage::setNumSessions |
( |
const quint16 |
numSessions | ) |
|
Sets the numSessions
field to numSessions.
- Parameters
-
numSessions | The field value to set. |
◆ setTimestamp()
void ActivityMessage::setTimestamp |
( |
const DateTime |
timestamp | ) |
|
Sets the timestamp
field to timestamp.
- Parameters
-
timestamp | The field value to set. |
◆ setTotalTimerTime()
void ActivityMessage::setTotalTimerTime |
( |
const quint32 |
totalTimerTime | ) |
|
Sets the totalTimerTime
field to totalTimerTime.
- Parameters
-
totalTimerTime | The field value to set. |
◆ setType()
void ActivityMessage::setType |
( |
const Activity |
type | ) |
|
Sets the type
field to type.
- Parameters
-
type | The field value to set. |
◆ timestamp()
DateTime ActivityMessage::timestamp |
( |
| ) |
const |
Returns the ActivityMessage data message's timestamp
field's current value.
- Returns
- the
timestamp
field value.
◆ totalTimerTime()
quint32 ActivityMessage::totalTimerTime |
( |
| ) |
const |
Returns the ActivityMessage data message's totalTimerTime
field's current value.
Exclude pauses
- Returns
- the
totalTimerTime
field value.
◆ type()
Activity ActivityMessage::type |
( |
| ) |
const |
Returns the ActivityMessage data message's type
field's current value.
- Returns
- the
type
field value.
The documentation for this class was generated from the following files: