QtFit
0.1
Internal library development documentation
|
The MonitoringInfoMessage class represents a FIT MonitoringInfoMessage data message. More...
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... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
MonitoringInfoMessage (MonitoringInfoMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
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... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The MonitoringInfoMessage class represents a FIT MonitoringInfoMessage data message.
Definition at line 39 of file monitoringinfomessage.h.
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.
Definition at line 52 of file monitoringinfomessage.cpp.
|
explicitprotected |
Constructs a MonitoringInfoMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file monitoringinfomessage.cpp.
ActivityType MonitoringInfoMessage::activityType | ( | ) | const |
Returns the MonitoringInfoMessage data message's activityType
field's current value.
activityType
field value. Definition at line 99 of file monitoringinfomessage.cpp.
Referenced by setActivityType().
quint16 MonitoringInfoMessage::cyclesToCalories | ( | ) | const |
Returns the MonitoringInfoMessage data message's cyclesToCalories
field's current value.
Indexed by activity_type
cyclesToCalories
field value. Definition at line 125 of file monitoringinfomessage.cpp.
Referenced by setCyclesToCalories().
quint16 MonitoringInfoMessage::cyclesToDistance | ( | ) | const |
Returns the MonitoringInfoMessage data message's cyclesToDistance
field's current value.
Indexed by activity_type
cyclesToDistance
field value. Definition at line 112 of file monitoringinfomessage.cpp.
Referenced by setCyclesToDistance().
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.
localTimestamp
field value. Definition at line 88 of file monitoringinfomessage.cpp.
Referenced by setLocalTimestamp().
quint16 MonitoringInfoMessage::restingMetabolicRate | ( | ) | const |
Returns the MonitoringInfoMessage data message's restingMetabolicRate
field's current value.
restingMetabolicRate
field value. Definition at line 136 of file monitoringinfomessage.cpp.
Referenced by setRestingMetabolicRate().
void MonitoringInfoMessage::setActivityType | ( | const ActivityType | activityType | ) |
Sets the activityType
field to activityType.
activityType | The field value to set. |
Definition at line 167 of file monitoringinfomessage.cpp.
References activityType().
void MonitoringInfoMessage::setCyclesToCalories | ( | const quint16 | cyclesToCalories | ) |
Sets the cyclesToCalories
field to cyclesToCalories.
cyclesToCalories | The field value to set. |
Definition at line 187 of file monitoringinfomessage.cpp.
References cyclesToCalories().
void MonitoringInfoMessage::setCyclesToDistance | ( | const quint16 | cyclesToDistance | ) |
Sets the cyclesToDistance
field to cyclesToDistance.
cyclesToDistance | The field value to set. |
Definition at line 177 of file monitoringinfomessage.cpp.
References cyclesToDistance().
void MonitoringInfoMessage::setLocalTimestamp | ( | const LocalDateTime | localTimestamp | ) |
Sets the localTimestamp
field to localTimestamp.
localTimestamp | The field value to set. |
Definition at line 157 of file monitoringinfomessage.cpp.
References localTimestamp().
void MonitoringInfoMessage::setRestingMetabolicRate | ( | const quint16 | restingMetabolicRate | ) |
Sets the restingMetabolicRate
field to restingMetabolicRate.
restingMetabolicRate | The field value to set. |
Definition at line 197 of file monitoringinfomessage.cpp.
References restingMetabolicRate().
void MonitoringInfoMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 147 of file monitoringinfomessage.cpp.
References timestamp().
DateTime MonitoringInfoMessage::timestamp | ( | ) | const |
Returns the MonitoringInfoMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file monitoringinfomessage.cpp.
Referenced by setTimestamp().