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

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

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

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...
 
- 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 MonitoringMessage class represents a FIT MonitoringMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ MonitoringMessage()

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.

Member Function Documentation

◆ activeCalories()

quint16 MonitoringMessage::activeCalories ( ) const

Returns the MonitoringMessage data message's activeCalories field's current value.

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

◆ activeTime()

quint32 MonitoringMessage::activeTime ( ) const

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

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

◆ activeTime16()

quint16 MonitoringMessage::activeTime16 ( ) const

Returns the MonitoringMessage data message's activeTime16 field's current value.

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

◆ activityLevel()

ActivityLevel MonitoringMessage::activityLevel ( ) const

Returns the MonitoringMessage data message's activityLevel field's current value.

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

◆ activitySubtype()

ActivitySubtype MonitoringMessage::activitySubtype ( ) const

Returns the MonitoringMessage data message's activitySubtype field's current value.

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

◆ activityTime()

quint16 MonitoringMessage::activityTime ( ) const

Returns the MonitoringMessage data message's activityTime field's current value.

Indexed using minute_activity_level enum

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

◆ activityType()

ActivityType MonitoringMessage::activityType ( ) const

Returns the MonitoringMessage data message's activityType field's current value.

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

◆ ascent()

quint32 MonitoringMessage::ascent ( ) const

Returns the MonitoringMessage data message's ascent field's current value.

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

◆ calories()

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

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

◆ currentActivityTypeIntensity()

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.

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

◆ cycles()

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.

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

◆ cycles16()

quint16 MonitoringMessage::cycles16 ( ) const

Returns the MonitoringMessage data message's cycles16 field's current value.

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

◆ descent()

quint32 MonitoringMessage::descent ( ) const

Returns the MonitoringMessage data message's descent field's current value.

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

◆ deviceIndex()

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).

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

◆ distance()

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.

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

◆ distance16()

quint16 MonitoringMessage::distance16 ( ) const

Returns the MonitoringMessage data message's distance16 field's current value.

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

◆ duration()

quint32 MonitoringMessage::duration ( ) const

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

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

◆ durationMin()

quint16 MonitoringMessage::durationMin ( ) const

Returns the MonitoringMessage data message's durationMin field's current value.

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

◆ heartRate()

quint8 MonitoringMessage::heartRate ( ) const

Returns the MonitoringMessage data message's heartRate field's current value.

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

◆ intensity()

quint8 MonitoringMessage::intensity ( ) const

Returns the MonitoringMessage data message's intensity field's current value.

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

◆ localTimestamp()

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.

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

◆ moderateActivityMinutes()

quint16 MonitoringMessage::moderateActivityMinutes ( ) const

Returns the MonitoringMessage data message's moderateActivityMinutes field's current value.

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

◆ setActiveCalories()

void MonitoringMessage::setActiveCalories ( const quint16  activeCalories)

Sets the activeCalories field to activeCalories.

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

◆ setActiveTime()

void MonitoringMessage::setActiveTime ( const quint32  activeTime)

Sets the activeTime field to activeTime.

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

◆ setActiveTime16()

void MonitoringMessage::setActiveTime16 ( const quint16  activeTime16)

Sets the activeTime16 field to activeTime16.

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

◆ setActivityLevel()

void MonitoringMessage::setActivityLevel ( const ActivityLevel  activityLevel)

Sets the activityLevel field to activityLevel.

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

◆ setActivitySubtype()

void MonitoringMessage::setActivitySubtype ( const ActivitySubtype  activitySubtype)

Sets the activitySubtype field to activitySubtype.

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

◆ setActivityTime()

void MonitoringMessage::setActivityTime ( const quint16  activityTime)

Sets the activityTime field to activityTime.

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

◆ setActivityType()

void MonitoringMessage::setActivityType ( const ActivityType  activityType)

Sets the activityType field to activityType.

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

◆ setAscent()

void MonitoringMessage::setAscent ( const quint32  ascent)

Sets the ascent field to ascent.

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

◆ setCalories()

void MonitoringMessage::setCalories ( const quint16  calories)

Sets the calories field to calories.

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

◆ setCurrentActivityTypeIntensity()

void MonitoringMessage::setCurrentActivityTypeIntensity ( const quint8  currentActivityTypeIntensity)

Sets the currentActivityTypeIntensity field to currentActivityTypeIntensity.

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

◆ setCycles()

void MonitoringMessage::setCycles ( const quint32  cycles)

Sets the cycles field to cycles.

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

◆ setCycles16()

void MonitoringMessage::setCycles16 ( const quint16  cycles16)

Sets the cycles16 field to cycles16.

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

◆ setDescent()

void MonitoringMessage::setDescent ( const quint32  descent)

Sets the descent field to descent.

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

◆ setDeviceIndex()

void MonitoringMessage::setDeviceIndex ( const DeviceIndex  deviceIndex)

Sets the deviceIndex field to deviceIndex.

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

◆ setDistance()

void MonitoringMessage::setDistance ( const quint32  distance)

Sets the distance field to distance.

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

◆ setDistance16()

void MonitoringMessage::setDistance16 ( const quint16  distance16)

Sets the distance16 field to distance16.

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

◆ setDuration()

void MonitoringMessage::setDuration ( const quint32  duration)

Sets the duration field to duration.

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

◆ setDurationMin()

void MonitoringMessage::setDurationMin ( const quint16  durationMin)

Sets the durationMin field to durationMin.

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

◆ setHeartRate()

void MonitoringMessage::setHeartRate ( const quint8  heartRate)

Sets the heartRate field to heartRate.

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

◆ setIntensity()

void MonitoringMessage::setIntensity ( const quint8  intensity)

Sets the intensity field to intensity.

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

◆ setLocalTimestamp()

void MonitoringMessage::setLocalTimestamp ( const LocalDateTime  localTimestamp)

Sets the localTimestamp field to localTimestamp.

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

◆ setModerateActivityMinutes()

void MonitoringMessage::setModerateActivityMinutes ( const quint16  moderateActivityMinutes)

Sets the moderateActivityMinutes field to moderateActivityMinutes.

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

◆ setTemperature()

void MonitoringMessage::setTemperature ( const qint16  temperature)

Sets the temperature field to temperature.

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

◆ setTemperatureMax()

void MonitoringMessage::setTemperatureMax ( const qint16  temperatureMax)

Sets the temperatureMax field to temperatureMax.

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

◆ setTemperatureMin()

void MonitoringMessage::setTemperatureMin ( const qint16  temperatureMin)

Sets the temperatureMin field to temperatureMin.

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

◆ setTimestamp()

void MonitoringMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ setTimestamp16()

void MonitoringMessage::setTimestamp16 ( const quint16  timestamp16)

Sets the timestamp16 field to timestamp16.

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

◆ setTimestampMin8()

void MonitoringMessage::setTimestampMin8 ( const quint8  timestampMin8)

Sets the timestampMin8 field to timestampMin8.

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

◆ setVigorousActivityMinutes()

void MonitoringMessage::setVigorousActivityMinutes ( const quint16  vigorousActivityMinutes)

Sets the vigorousActivityMinutes field to vigorousActivityMinutes.

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

◆ temperature()

qint16 MonitoringMessage::temperature ( ) const

Returns the MonitoringMessage data message's temperature field's current value.

Avg temperature during the logging interval ended at timestamp

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

◆ temperatureMax()

qint16 MonitoringMessage::temperatureMax ( ) const

Returns the MonitoringMessage data message's temperatureMax field's current value.

Max temperature during the logging interval ended at timestamp

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

◆ temperatureMin()

qint16 MonitoringMessage::temperatureMin ( ) const

Returns the MonitoringMessage data message's temperatureMin field's current value.

Min temperature during the logging interval ended at timestamp

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

◆ timestamp()

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.

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

◆ timestamp16()

quint16 MonitoringMessage::timestamp16 ( ) const

Returns the MonitoringMessage data message's timestamp16 field's current value.

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

◆ timestampMin8()

quint8 MonitoringMessage::timestampMin8 ( ) const

Returns the MonitoringMessage data message's timestampMin8 field's current value.

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

◆ vigorousActivityMinutes()

quint16 MonitoringMessage::vigorousActivityMinutes ( ) const

Returns the MonitoringMessage data message's vigorousActivityMinutes field's current value.

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

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