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

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

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

Public Member Functions

 MonitoringInfoMessage ()
 Constructs a MonitoringInfoMessage object. More...
 
DateTime timestamp () const
 Returns the MonitoringInfoMessage data message's timestamp field's current value. More...
 
LocalDateTime localTimestamp () const
 Returns the MonitoringInfoMessage data message's localTimestamp field's current value. More...
 
ActivityType activityType () const
 Returns the MonitoringInfoMessage data message's activityType field's current value. More...
 
quint16 cyclesToDistance () const
 Returns the MonitoringInfoMessage data message's cyclesToDistance field's current value. More...
 
quint16 cyclesToCalories () const
 Returns the MonitoringInfoMessage data message's cyclesToCalories field's current value. More...
 
quint16 restingMetabolicRate () const
 Returns the MonitoringInfoMessage data message's restingMetabolicRate field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setLocalTimestamp (const LocalDateTime localTimestamp)
 Sets the localTimestamp field to localTimestamp. More...
 
void setActivityType (const ActivityType activityType)
 Sets the activityType field to activityType. More...
 
void setCyclesToDistance (const quint16 cyclesToDistance)
 Sets the cyclesToDistance field to cyclesToDistance. More...
 
void setCyclesToCalories (const quint16 cyclesToCalories)
 Sets the cyclesToCalories field to cyclesToCalories. More...
 
void setRestingMetabolicRate (const quint16 restingMetabolicRate)
 Sets the restingMetabolicRate field to restingMetabolicRate. 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 MonitoringInfoMessage class represents a FIT MonitoringInfoMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ MonitoringInfoMessage()

MonitoringInfoMessage::MonitoringInfoMessage ( )

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

◆ activityType()

ActivityType MonitoringInfoMessage::activityType ( ) const

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

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

◆ cyclesToCalories()

quint16 MonitoringInfoMessage::cyclesToCalories ( ) const

Returns the MonitoringInfoMessage data message's cyclesToCalories field's current value.

Indexed by activity_type

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

◆ cyclesToDistance()

quint16 MonitoringInfoMessage::cyclesToDistance ( ) const

Returns the MonitoringInfoMessage data message's cyclesToDistance field's current value.

Indexed by activity_type

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

◆ localTimestamp()

LocalDateTime MonitoringInfoMessage::localTimestamp ( ) const

Returns the MonitoringInfoMessage data message's localTimestamp field's current value.

Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction.

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

◆ restingMetabolicRate()

quint16 MonitoringInfoMessage::restingMetabolicRate ( ) const

Returns the MonitoringInfoMessage data message's restingMetabolicRate field's current value.

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

◆ setActivityType()

void MonitoringInfoMessage::setActivityType ( const ActivityType  activityType)

Sets the activityType field to activityType.

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

◆ setCyclesToCalories()

void MonitoringInfoMessage::setCyclesToCalories ( const quint16  cyclesToCalories)

Sets the cyclesToCalories field to cyclesToCalories.

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

◆ setCyclesToDistance()

void MonitoringInfoMessage::setCyclesToDistance ( const quint16  cyclesToDistance)

Sets the cyclesToDistance field to cyclesToDistance.

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

◆ setLocalTimestamp()

void MonitoringInfoMessage::setLocalTimestamp ( const LocalDateTime  localTimestamp)

Sets the localTimestamp field to localTimestamp.

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

◆ setRestingMetabolicRate()

void MonitoringInfoMessage::setRestingMetabolicRate ( const quint16  restingMetabolicRate)

Sets the restingMetabolicRate field to restingMetabolicRate.

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

◆ setTimestamp()

void MonitoringInfoMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ timestamp()

DateTime MonitoringInfoMessage::timestamp ( ) const

Returns the MonitoringInfoMessage 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: