QtFit
0.1
Internal library development documentation
|
The SetMessage class represents a FIT SetMessage data message. More...
Public Member Functions | |
SetMessage () | |
Constructs a SetMessage object. More... | |
DateTime | timestamp () const |
Returns the SetMessage data message's timestamp field's current value. More... | |
quint32 | duration () const |
Returns the SetMessage data message's duration field's current value. More... | |
quint16 | repetitions () const |
Returns the SetMessage data message's repetitions field's current value. More... | |
quint16 | weight () const |
Returns the SetMessage data message's weight field's current value. More... | |
SetType | setType () const |
Returns the SetMessage data message's setType field's current value. More... | |
DateTime | startTime () const |
Returns the SetMessage data message's startTime field's current value. More... | |
ExerciseCategory | category () const |
Returns the SetMessage data message's category field's current value. More... | |
quint16 | categorySubtype () const |
Returns the SetMessage data message's categorySubtype field's current value. More... | |
FitBaseUnit | weightDisplayUnit () const |
Returns the SetMessage data message's weightDisplayUnit field's current value. More... | |
MessageIndex | messageIndex () const |
Returns the SetMessage data message's messageIndex field's current value. More... | |
MessageIndex | wktStepIndex () const |
Returns the SetMessage data message's wktStepIndex field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setDuration (const quint32 duration) |
Sets the duration field to duration. More... | |
void | setRepetitions (const quint16 repetitions) |
Sets the repetitions field to repetitions. More... | |
void | setWeight (const quint16 weight) |
Sets the weight field to weight. More... | |
void | setSetType (const SetType setType) |
Sets the setType field to setType. More... | |
void | setStartTime (const DateTime startTime) |
Sets the startTime field to startTime. More... | |
void | setCategory (const ExerciseCategory category) |
Sets the category field to category. More... | |
void | setCategorySubtype (const quint16 categorySubtype) |
Sets the categorySubtype field to categorySubtype. More... | |
void | setWeightDisplayUnit (const FitBaseUnit weightDisplayUnit) |
Sets the weightDisplayUnit field to weightDisplayUnit. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setWktStepIndex (const MessageIndex wktStepIndex) |
Sets the wktStepIndex field to wktStepIndex. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
SetMessage (SetMessagePrivate *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 SetMessage class represents a FIT SetMessage data message.
Definition at line 39 of file setmessage.h.
SetMessage::SetMessage | ( | ) |
Constructs a SetMessage 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 setmessage.cpp.
|
explicitprotected |
Constructs a SetMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file setmessage.cpp.
ExerciseCategory SetMessage::category | ( | ) | const |
Returns the SetMessage data message's category
field's current value.
category
field value. Definition at line 148 of file setmessage.cpp.
Referenced by setCategory().
quint16 SetMessage::categorySubtype | ( | ) | const |
Returns the SetMessage data message's categorySubtype
field's current value.
Based on the associated category, see [category]_exercise_names
categorySubtype
field value. Definition at line 161 of file setmessage.cpp.
Referenced by setCategorySubtype().
quint32 SetMessage::duration | ( | ) | const |
Returns the SetMessage data message's duration
field's current value.
duration
field value. Definition at line 87 of file setmessage.cpp.
Referenced by setDuration().
MessageIndex SetMessage::messageIndex | ( | ) | const |
Returns the SetMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 183 of file setmessage.cpp.
Referenced by setMessageIndex().
quint16 SetMessage::repetitions | ( | ) | const |
Returns the SetMessage data message's repetitions
field's current value.
repetitions
field value. Definition at line 100 of file setmessage.cpp.
Referenced by setRepetitions().
void SetMessage::setCategory | ( | const ExerciseCategory | category | ) |
Sets the category
field to category.
category | The field value to set. |
Definition at line 265 of file setmessage.cpp.
References category().
void SetMessage::setCategorySubtype | ( | const quint16 | categorySubtype | ) |
Sets the categorySubtype
field to categorySubtype.
categorySubtype | The field value to set. |
Definition at line 275 of file setmessage.cpp.
References categorySubtype().
void SetMessage::setDuration | ( | const quint32 | duration | ) |
Sets the duration
field to duration.
duration | The field value to set. |
Definition at line 215 of file setmessage.cpp.
References duration().
void SetMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 295 of file setmessage.cpp.
References messageIndex().
void SetMessage::setRepetitions | ( | const quint16 | repetitions | ) |
Sets the repetitions
field to repetitions.
repetitions | The field value to set. |
Definition at line 225 of file setmessage.cpp.
References repetitions().
void SetMessage::setSetType | ( | const SetType | setType | ) |
Sets the setType
field to setType.
setType | The field value to set. |
Definition at line 245 of file setmessage.cpp.
References setType().
void SetMessage::setStartTime | ( | const DateTime | startTime | ) |
Sets the startTime
field to startTime.
startTime | The field value to set. |
Definition at line 255 of file setmessage.cpp.
References startTime().
void SetMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 205 of file setmessage.cpp.
References timestamp().
SetType SetMessage::setType | ( | ) | const |
Returns the SetMessage data message's setType
field's current value.
setType
field value. Definition at line 124 of file setmessage.cpp.
Referenced by setSetType().
void SetMessage::setWeight | ( | const quint16 | weight | ) |
Sets the weight
field to weight.
weight | The field value to set. |
Definition at line 235 of file setmessage.cpp.
References weight().
void SetMessage::setWeightDisplayUnit | ( | const FitBaseUnit | weightDisplayUnit | ) |
Sets the weightDisplayUnit
field to weightDisplayUnit.
weightDisplayUnit | The field value to set. |
Definition at line 285 of file setmessage.cpp.
References weightDisplayUnit().
void SetMessage::setWktStepIndex | ( | const MessageIndex | wktStepIndex | ) |
Sets the wktStepIndex
field to wktStepIndex.
wktStepIndex | The field value to set. |
Definition at line 305 of file setmessage.cpp.
References wktStepIndex().
DateTime SetMessage::startTime | ( | ) | const |
Returns the SetMessage data message's startTime
field's current value.
Start time of the set
startTime
field value. Definition at line 137 of file setmessage.cpp.
Referenced by setStartTime().
DateTime SetMessage::timestamp | ( | ) | const |
Returns the SetMessage data message's timestamp
field's current value.
Timestamp of the set
timestamp
field value. Definition at line 76 of file setmessage.cpp.
Referenced by setTimestamp().
quint16 SetMessage::weight | ( | ) | const |
Returns the SetMessage data message's weight
field's current value.
Amount of weight applied for the set
weight
field value. Definition at line 113 of file setmessage.cpp.
Referenced by setWeight().
FitBaseUnit SetMessage::weightDisplayUnit | ( | ) | const |
Returns the SetMessage data message's weightDisplayUnit
field's current value.
weightDisplayUnit
field value. Definition at line 172 of file setmessage.cpp.
Referenced by setWeightDisplayUnit().
MessageIndex SetMessage::wktStepIndex | ( | ) | const |
Returns the SetMessage data message's wktStepIndex
field's current value.
wktStepIndex
field value. Definition at line 194 of file setmessage.cpp.
Referenced by setWktStepIndex().