QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros 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...
 

Protected Member Functions

 MonitoringInfoMessage (MonitoringInfoMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

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...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The MonitoringInfoMessage class represents a FIT MonitoringInfoMessage data message.

See also
DataMessage

Definition at line 39 of file monitoringinfomessage.h.

Constructor & Destructor Documentation

◆ MonitoringInfoMessage() [1/2]

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.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ MonitoringInfoMessage() [2/2]

MonitoringInfoMessage::MonitoringInfoMessage ( MonitoringInfoMessagePrivate *const  d)
explicitprotected

Constructs a MonitoringInfoMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file monitoringinfomessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ activityType()

ActivityType MonitoringInfoMessage::activityType ( ) const

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

Returns
the activityType field value.

Definition at line 99 of file monitoringinfomessage.cpp.

100 {
101  Q_D(const MonitoringInfoMessage);
102  return d->activityType;
103 }
The MonitoringInfoMessage class represents a FIT MonitoringInfoMessage data message.

Referenced by setActivityType().

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.

Definition at line 125 of file monitoringinfomessage.cpp.

126 {
127  Q_D(const MonitoringInfoMessage);
128  return d->cyclesToCalories;
129 }

Referenced by setCyclesToCalories().

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.

Definition at line 112 of file monitoringinfomessage.cpp.

113 {
114  Q_D(const MonitoringInfoMessage);
115  return d->cyclesToDistance;
116 }

Referenced by setCyclesToDistance().

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.

Definition at line 88 of file monitoringinfomessage.cpp.

89 {
90  Q_D(const MonitoringInfoMessage);
91  return d->localTimestamp;
92 }

Referenced by setLocalTimestamp().

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.

Definition at line 136 of file monitoringinfomessage.cpp.

137 {
138  Q_D(const MonitoringInfoMessage);
139  return d->restingMetabolicRate;
140 }

Referenced by setRestingMetabolicRate().

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.

Definition at line 167 of file monitoringinfomessage.cpp.

168 {
170  d->activityType = activityType;
171 }
ActivityType activityType() const
Returns the MonitoringInfoMessage data message's activityType field's current value.

References activityType().

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.

Definition at line 187 of file monitoringinfomessage.cpp.

188 {
190  d->cyclesToCalories = cyclesToCalories;
191 }
quint16 cyclesToCalories() const
Returns the MonitoringInfoMessage data message's cyclesToCalories field's current value.

References cyclesToCalories().

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.

Definition at line 177 of file monitoringinfomessage.cpp.

178 {
180  d->cyclesToDistance = cyclesToDistance;
181 }
quint16 cyclesToDistance() const
Returns the MonitoringInfoMessage data message's cyclesToDistance field's current value.

References cyclesToDistance().

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.

Definition at line 157 of file monitoringinfomessage.cpp.

158 {
160  d->localTimestamp = localTimestamp;
161 }
LocalDateTime localTimestamp() const
Returns the MonitoringInfoMessage data message's localTimestamp field's current value.

References localTimestamp().

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.

Definition at line 197 of file monitoringinfomessage.cpp.

198 {
200  d->restingMetabolicRate = restingMetabolicRate;
201 }
quint16 restingMetabolicRate() const
Returns the MonitoringInfoMessage data message's restingMetabolicRate field's current value.

References restingMetabolicRate().

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.

Definition at line 147 of file monitoringinfomessage.cpp.

148 {
150  d->timestamp = timestamp;
151 }
DateTime timestamp() const
Returns the MonitoringInfoMessage data message's timestamp field's current value.

References timestamp().

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.

Definition at line 74 of file monitoringinfomessage.cpp.

75 {
76  Q_D(const MonitoringInfoMessage);
77  return d->timestamp;
78 }

Referenced by setTimestamp().

Here is the caller graph for this function:

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