QtFit
0.1
Native Qt library for Garmin FIT format
|
The MonitoringMessage class represents a FIT MonitoringMessage data message. More...
Public Member Functions | |
MonitoringMessage () | |
Constructs a MonitoringMessage object. More... | |
DateTime | timestamp () const |
Returns the MonitoringMessage data message's timestamp field's current value. More... | |
DeviceIndex | deviceIndex () const |
Returns the MonitoringMessage data message's deviceIndex field's current value. More... | |
quint16 | calories () const |
Returns the MonitoringMessage data message's calories field's current value. More... | |
quint32 | distance () const |
Returns the MonitoringMessage data message's distance field's current value. More... | |
quint32 | cycles () const |
Returns the MonitoringMessage data message's cycles field's current value. More... | |
quint32 | activeTime () const |
Returns the MonitoringMessage data message's activeTime field's current value. More... | |
ActivityType | activityType () const |
Returns the MonitoringMessage data message's activityType field's current value. More... | |
ActivitySubtype | activitySubtype () const |
Returns the MonitoringMessage data message's activitySubtype field's current value. More... | |
ActivityLevel | activityLevel () const |
Returns the MonitoringMessage data message's activityLevel field's current value. More... | |
quint16 | distance16 () const |
Returns the MonitoringMessage data message's distance16 field's current value. More... | |
quint16 | cycles16 () const |
Returns the MonitoringMessage data message's cycles16 field's current value. More... | |
quint16 | activeTime16 () const |
Returns the MonitoringMessage data message's activeTime16 field's current value. More... | |
LocalDateTime | localTimestamp () const |
Returns the MonitoringMessage data message's localTimestamp field's current value. More... | |
qint16 | temperature () const |
Returns the MonitoringMessage data message's temperature field's current value. More... | |
qint16 | temperatureMin () const |
Returns the MonitoringMessage data message's temperatureMin field's current value. More... | |
qint16 | temperatureMax () const |
Returns the MonitoringMessage data message's temperatureMax field's current value. More... | |
quint16 | activityTime () const |
Returns the MonitoringMessage data message's activityTime field's current value. More... | |
quint16 | activeCalories () const |
Returns the MonitoringMessage data message's activeCalories field's current value. More... | |
quint8 | currentActivityTypeIntensity () const |
Returns the MonitoringMessage data message's currentActivityTypeIntensity field's current value. More... | |
quint8 | timestampMin8 () const |
Returns the MonitoringMessage data message's timestampMin8 field's current value. More... | |
quint16 | timestamp16 () const |
Returns the MonitoringMessage data message's timestamp16 field's current value. More... | |
quint8 | heartRate () const |
Returns the MonitoringMessage data message's heartRate field's current value. More... | |
quint8 | intensity () const |
Returns the MonitoringMessage data message's intensity field's current value. More... | |
quint16 | durationMin () const |
Returns the MonitoringMessage data message's durationMin field's current value. More... | |
quint32 | duration () const |
Returns the MonitoringMessage data message's duration field's current value. More... | |
quint32 | ascent () const |
Returns the MonitoringMessage data message's ascent field's current value. More... | |
quint32 | descent () const |
Returns the MonitoringMessage data message's descent field's current value. More... | |
quint16 | moderateActivityMinutes () const |
Returns the MonitoringMessage data message's moderateActivityMinutes field's current value. More... | |
quint16 | vigorousActivityMinutes () const |
Returns the MonitoringMessage data message's vigorousActivityMinutes field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setDeviceIndex (const DeviceIndex deviceIndex) |
Sets the deviceIndex field to deviceIndex. More... | |
void | setCalories (const quint16 calories) |
Sets the calories field to calories. More... | |
void | setDistance (const quint32 distance) |
Sets the distance field to distance. More... | |
void | setCycles (const quint32 cycles) |
Sets the cycles field to cycles. More... | |
void | setActiveTime (const quint32 activeTime) |
Sets the activeTime field to activeTime. More... | |
void | setActivityType (const ActivityType activityType) |
Sets the activityType field to activityType. More... | |
void | setActivitySubtype (const ActivitySubtype activitySubtype) |
Sets the activitySubtype field to activitySubtype. More... | |
void | setActivityLevel (const ActivityLevel activityLevel) |
Sets the activityLevel field to activityLevel. More... | |
void | setDistance16 (const quint16 distance16) |
Sets the distance16 field to distance16. More... | |
void | setCycles16 (const quint16 cycles16) |
Sets the cycles16 field to cycles16. More... | |
void | setActiveTime16 (const quint16 activeTime16) |
Sets the activeTime16 field to activeTime16. More... | |
void | setLocalTimestamp (const LocalDateTime localTimestamp) |
Sets the localTimestamp field to localTimestamp. More... | |
void | setTemperature (const qint16 temperature) |
Sets the temperature field to temperature. More... | |
void | setTemperatureMin (const qint16 temperatureMin) |
Sets the temperatureMin field to temperatureMin. More... | |
void | setTemperatureMax (const qint16 temperatureMax) |
Sets the temperatureMax field to temperatureMax. More... | |
void | setActivityTime (const quint16 activityTime) |
Sets the activityTime field to activityTime. More... | |
void | setActiveCalories (const quint16 activeCalories) |
Sets the activeCalories field to activeCalories. More... | |
void | setCurrentActivityTypeIntensity (const quint8 currentActivityTypeIntensity) |
Sets the currentActivityTypeIntensity field to currentActivityTypeIntensity. More... | |
void | setTimestampMin8 (const quint8 timestampMin8) |
Sets the timestampMin8 field to timestampMin8. More... | |
void | setTimestamp16 (const quint16 timestamp16) |
Sets the timestamp16 field to timestamp16. More... | |
void | setHeartRate (const quint8 heartRate) |
Sets the heartRate field to heartRate. More... | |
void | setIntensity (const quint8 intensity) |
Sets the intensity field to intensity. More... | |
void | setDurationMin (const quint16 durationMin) |
Sets the durationMin field to durationMin. More... | |
void | setDuration (const quint32 duration) |
Sets the duration field to duration. More... | |
void | setAscent (const quint32 ascent) |
Sets the ascent field to ascent. More... | |
void | setDescent (const quint32 descent) |
Sets the descent field to descent. More... | |
void | setModerateActivityMinutes (const quint16 moderateActivityMinutes) |
Sets the moderateActivityMinutes field to moderateActivityMinutes. More... | |
void | setVigorousActivityMinutes (const quint16 vigorousActivityMinutes) |
Sets the vigorousActivityMinutes field to vigorousActivityMinutes. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
The MonitoringMessage class represents a FIT MonitoringMessage data message.
MonitoringMessage::MonitoringMessage | ( | ) |
Constructs a MonitoringMessage 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.
quint16 MonitoringMessage::activeCalories | ( | ) | const |
Returns the MonitoringMessage data message's activeCalories
field's current value.
activeCalories
field value. quint32 MonitoringMessage::activeTime | ( | ) | const |
Returns the MonitoringMessage data message's activeTime
field's current value.
activeTime
field value. quint16 MonitoringMessage::activeTime16 | ( | ) | const |
Returns the MonitoringMessage data message's activeTime16
field's current value.
activeTime16
field value. ActivityLevel MonitoringMessage::activityLevel | ( | ) | const |
Returns the MonitoringMessage data message's activityLevel
field's current value.
activityLevel
field value. ActivitySubtype MonitoringMessage::activitySubtype | ( | ) | const |
Returns the MonitoringMessage data message's activitySubtype
field's current value.
activitySubtype
field value. quint16 MonitoringMessage::activityTime | ( | ) | const |
Returns the MonitoringMessage data message's activityTime
field's current value.
Indexed using minute_activity_level enum
activityTime
field value. ActivityType MonitoringMessage::activityType | ( | ) | const |
Returns the MonitoringMessage data message's activityType
field's current value.
activityType
field value. quint32 MonitoringMessage::ascent | ( | ) | const |
Returns the MonitoringMessage data message's ascent
field's current value.
ascent
field value. quint16 MonitoringMessage::calories | ( | ) | const |
Returns the MonitoringMessage data message's calories
field's current value.
Accumulated total calories. Maintained by MonitoringReader for each activity_type. See SDK documentation
calories
field value. quint8 MonitoringMessage::currentActivityTypeIntensity | ( | ) | const |
Returns the MonitoringMessage data message's currentActivityTypeIntensity
field's current value.
Indicates single type / intensity for duration since last monitoring message.
currentActivityTypeIntensity
field value. quint32 MonitoringMessage::cycles | ( | ) | const |
Returns the MonitoringMessage data message's cycles
field's current value.
Accumulated cycles. Maintained by MonitoringReader for each activity_type. See SDK documentation.
cycles
field value. quint16 MonitoringMessage::cycles16 | ( | ) | const |
Returns the MonitoringMessage data message's cycles16
field's current value.
cycles16
field value. quint32 MonitoringMessage::descent | ( | ) | const |
Returns the MonitoringMessage data message's descent
field's current value.
descent
field value. DeviceIndex MonitoringMessage::deviceIndex | ( | ) | const |
Returns the MonitoringMessage data message's deviceIndex
field's current value.
Associates this data to device_info message. Not required for file with single device (sensor).
deviceIndex
field value. quint32 MonitoringMessage::distance | ( | ) | const |
Returns the MonitoringMessage data message's distance
field's current value.
Accumulated distance. Maintained by MonitoringReader for each activity_type. See SDK documentation.
distance
field value. quint16 MonitoringMessage::distance16 | ( | ) | const |
Returns the MonitoringMessage data message's distance16
field's current value.
distance16
field value. quint32 MonitoringMessage::duration | ( | ) | const |
Returns the MonitoringMessage data message's duration
field's current value.
duration
field value. quint16 MonitoringMessage::durationMin | ( | ) | const |
Returns the MonitoringMessage data message's durationMin
field's current value.
durationMin
field value. quint8 MonitoringMessage::heartRate | ( | ) | const |
Returns the MonitoringMessage data message's heartRate
field's current value.
heartRate
field value. quint8 MonitoringMessage::intensity | ( | ) | const |
Returns the MonitoringMessage data message's intensity
field's current value.
intensity
field value. LocalDateTime MonitoringMessage::localTimestamp | ( | ) | const |
Returns the MonitoringMessage data message's localTimestamp
field's current value.
Must align to logging interval, for example, time must be 00:00:00 for daily log.
localTimestamp
field value. quint16 MonitoringMessage::moderateActivityMinutes | ( | ) | const |
Returns the MonitoringMessage data message's moderateActivityMinutes
field's current value.
moderateActivityMinutes
field value. void MonitoringMessage::setActiveCalories | ( | const quint16 | activeCalories | ) |
Sets the activeCalories
field to activeCalories.
activeCalories | The field value to set. |
void MonitoringMessage::setActiveTime | ( | const quint32 | activeTime | ) |
Sets the activeTime
field to activeTime.
activeTime | The field value to set. |
void MonitoringMessage::setActiveTime16 | ( | const quint16 | activeTime16 | ) |
Sets the activeTime16
field to activeTime16.
activeTime16 | The field value to set. |
void MonitoringMessage::setActivityLevel | ( | const ActivityLevel | activityLevel | ) |
Sets the activityLevel
field to activityLevel.
activityLevel | The field value to set. |
void MonitoringMessage::setActivitySubtype | ( | const ActivitySubtype | activitySubtype | ) |
Sets the activitySubtype
field to activitySubtype.
activitySubtype | The field value to set. |
void MonitoringMessage::setActivityTime | ( | const quint16 | activityTime | ) |
Sets the activityTime
field to activityTime.
activityTime | The field value to set. |
void MonitoringMessage::setActivityType | ( | const ActivityType | activityType | ) |
Sets the activityType
field to activityType.
activityType | The field value to set. |
void MonitoringMessage::setAscent | ( | const quint32 | ascent | ) |
Sets the ascent
field to ascent.
ascent | The field value to set. |
void MonitoringMessage::setCalories | ( | const quint16 | calories | ) |
Sets the calories
field to calories.
calories | The field value to set. |
void MonitoringMessage::setCurrentActivityTypeIntensity | ( | const quint8 | currentActivityTypeIntensity | ) |
Sets the currentActivityTypeIntensity
field to currentActivityTypeIntensity.
currentActivityTypeIntensity | The field value to set. |
void MonitoringMessage::setCycles | ( | const quint32 | cycles | ) |
Sets the cycles
field to cycles.
cycles | The field value to set. |
void MonitoringMessage::setCycles16 | ( | const quint16 | cycles16 | ) |
Sets the cycles16
field to cycles16.
cycles16 | The field value to set. |
void MonitoringMessage::setDescent | ( | const quint32 | descent | ) |
Sets the descent
field to descent.
descent | The field value to set. |
void MonitoringMessage::setDeviceIndex | ( | const DeviceIndex | deviceIndex | ) |
Sets the deviceIndex
field to deviceIndex.
deviceIndex | The field value to set. |
void MonitoringMessage::setDistance | ( | const quint32 | distance | ) |
Sets the distance
field to distance.
distance | The field value to set. |
void MonitoringMessage::setDistance16 | ( | const quint16 | distance16 | ) |
Sets the distance16
field to distance16.
distance16 | The field value to set. |
void MonitoringMessage::setDuration | ( | const quint32 | duration | ) |
Sets the duration
field to duration.
duration | The field value to set. |
void MonitoringMessage::setDurationMin | ( | const quint16 | durationMin | ) |
Sets the durationMin
field to durationMin.
durationMin | The field value to set. |
void MonitoringMessage::setHeartRate | ( | const quint8 | heartRate | ) |
Sets the heartRate
field to heartRate.
heartRate | The field value to set. |
void MonitoringMessage::setIntensity | ( | const quint8 | intensity | ) |
Sets the intensity
field to intensity.
intensity | The field value to set. |
void MonitoringMessage::setLocalTimestamp | ( | const LocalDateTime | localTimestamp | ) |
Sets the localTimestamp
field to localTimestamp.
localTimestamp | The field value to set. |
void MonitoringMessage::setModerateActivityMinutes | ( | const quint16 | moderateActivityMinutes | ) |
Sets the moderateActivityMinutes
field to moderateActivityMinutes.
moderateActivityMinutes | The field value to set. |
void MonitoringMessage::setTemperature | ( | const qint16 | temperature | ) |
Sets the temperature
field to temperature.
temperature | The field value to set. |
void MonitoringMessage::setTemperatureMax | ( | const qint16 | temperatureMax | ) |
Sets the temperatureMax
field to temperatureMax.
temperatureMax | The field value to set. |
void MonitoringMessage::setTemperatureMin | ( | const qint16 | temperatureMin | ) |
Sets the temperatureMin
field to temperatureMin.
temperatureMin | The field value to set. |
void MonitoringMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
void MonitoringMessage::setTimestamp16 | ( | const quint16 | timestamp16 | ) |
Sets the timestamp16
field to timestamp16.
timestamp16 | The field value to set. |
void MonitoringMessage::setTimestampMin8 | ( | const quint8 | timestampMin8 | ) |
Sets the timestampMin8
field to timestampMin8.
timestampMin8 | The field value to set. |
void MonitoringMessage::setVigorousActivityMinutes | ( | const quint16 | vigorousActivityMinutes | ) |
Sets the vigorousActivityMinutes
field to vigorousActivityMinutes.
vigorousActivityMinutes | The field value to set. |
qint16 MonitoringMessage::temperature | ( | ) | const |
Returns the MonitoringMessage data message's temperature
field's current value.
Avg temperature during the logging interval ended at timestamp
temperature
field value. qint16 MonitoringMessage::temperatureMax | ( | ) | const |
Returns the MonitoringMessage data message's temperatureMax
field's current value.
Max temperature during the logging interval ended at timestamp
temperatureMax
field value. qint16 MonitoringMessage::temperatureMin | ( | ) | const |
Returns the MonitoringMessage data message's temperatureMin
field's current value.
Min temperature during the logging interval ended at timestamp
temperatureMin
field value. DateTime MonitoringMessage::timestamp | ( | ) | const |
Returns the MonitoringMessage data message's timestamp
field's current value.
Must align to logging interval, for example, time must be 00:00:00 for daily log.
timestamp
field value. quint16 MonitoringMessage::timestamp16 | ( | ) | const |
Returns the MonitoringMessage data message's timestamp16
field's current value.
timestamp16
field value. quint8 MonitoringMessage::timestampMin8 | ( | ) | const |
Returns the MonitoringMessage data message's timestampMin8
field's current value.
timestampMin8
field value. quint16 MonitoringMessage::vigorousActivityMinutes | ( | ) | const |
Returns the MonitoringMessage data message's vigorousActivityMinutes
field's current value.
vigorousActivityMinutes
field value.