QtFit
0.1
Internal library development documentation
|
The SdmProfileMessage class represents a FIT SdmProfileMessage data message. More...
Public Member Functions | |
SdmProfileMessage () | |
Constructs a SdmProfileMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the SdmProfileMessage data message's messageIndex field's current value. More... | |
bool | enabled () const |
Returns the SdmProfileMessage data message's enabled field's current value. More... | |
quint16z | sdmAntId () const |
Returns the SdmProfileMessage data message's sdmAntId field's current value. More... | |
quint16 | sdmCalFactor () const |
Returns the SdmProfileMessage data message's sdmCalFactor field's current value. More... | |
quint32 | odometer () const |
Returns the SdmProfileMessage data message's odometer field's current value. More... | |
bool | speedSource () const |
Returns the SdmProfileMessage data message's speedSource field's current value. More... | |
quint8z | sdmAntIdTransType () const |
Returns the SdmProfileMessage data message's sdmAntIdTransType field's current value. More... | |
quint8 | odometerRollover () const |
Returns the SdmProfileMessage data message's odometerRollover field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setEnabled (const bool enabled) |
Sets the enabled field to enabled. More... | |
void | setSdmAntId (const quint16z sdmAntId) |
Sets the sdmAntId field to sdmAntId. More... | |
void | setSdmCalFactor (const quint16 sdmCalFactor) |
Sets the sdmCalFactor field to sdmCalFactor. More... | |
void | setOdometer (const quint32 odometer) |
Sets the odometer field to odometer. More... | |
void | setSpeedSource (const bool speedSource) |
Sets the speedSource field to speedSource. More... | |
void | setSdmAntIdTransType (const quint8z sdmAntIdTransType) |
Sets the sdmAntIdTransType field to sdmAntIdTransType. More... | |
void | setOdometerRollover (const quint8 odometerRollover) |
Sets the odometerRollover field to odometerRollover. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
SdmProfileMessage (SdmProfileMessagePrivate *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 SdmProfileMessage class represents a FIT SdmProfileMessage data message.
Definition at line 39 of file sdmprofilemessage.h.
SdmProfileMessage::SdmProfileMessage | ( | ) |
Constructs a SdmProfileMessage 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 sdmprofilemessage.cpp.
|
explicitprotected |
Constructs a SdmProfileMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file sdmprofilemessage.cpp.
bool SdmProfileMessage::enabled | ( | ) | const |
Returns the SdmProfileMessage data message's enabled
field's current value.
enabled
field value. Definition at line 85 of file sdmprofilemessage.cpp.
Referenced by setEnabled().
MessageIndex SdmProfileMessage::messageIndex | ( | ) | const |
Returns the SdmProfileMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file sdmprofilemessage.cpp.
Referenced by setMessageIndex().
quint32 SdmProfileMessage::odometer | ( | ) | const |
Returns the SdmProfileMessage data message's odometer
field's current value.
odometer
field value. Definition at line 118 of file sdmprofilemessage.cpp.
Referenced by setOdometer().
quint8 SdmProfileMessage::odometerRollover | ( | ) | const |
Returns the SdmProfileMessage data message's odometerRollover
field's current value.
Rollover counter that can be used to extend the odometer
odometerRollover
field value. Definition at line 155 of file sdmprofilemessage.cpp.
Referenced by setOdometerRollover().
quint16z SdmProfileMessage::sdmAntId | ( | ) | const |
Returns the SdmProfileMessage data message's sdmAntId
field's current value.
sdmAntId
field value. Definition at line 96 of file sdmprofilemessage.cpp.
Referenced by setSdmAntId().
quint8z SdmProfileMessage::sdmAntIdTransType | ( | ) | const |
Returns the SdmProfileMessage data message's sdmAntIdTransType
field's current value.
sdmAntIdTransType
field value. Definition at line 142 of file sdmprofilemessage.cpp.
Referenced by setSdmAntIdTransType().
quint16 SdmProfileMessage::sdmCalFactor | ( | ) | const |
Returns the SdmProfileMessage data message's sdmCalFactor
field's current value.
sdmCalFactor
field value. Definition at line 107 of file sdmprofilemessage.cpp.
Referenced by setSdmCalFactor().
void SdmProfileMessage::setEnabled | ( | const bool | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
Definition at line 176 of file sdmprofilemessage.cpp.
References enabled().
void SdmProfileMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 166 of file sdmprofilemessage.cpp.
References messageIndex().
void SdmProfileMessage::setOdometer | ( | const quint32 | odometer | ) |
Sets the odometer
field to odometer.
odometer | The field value to set. |
Definition at line 206 of file sdmprofilemessage.cpp.
References odometer().
void SdmProfileMessage::setOdometerRollover | ( | const quint8 | odometerRollover | ) |
Sets the odometerRollover
field to odometerRollover.
odometerRollover | The field value to set. |
Definition at line 236 of file sdmprofilemessage.cpp.
References odometerRollover().
void SdmProfileMessage::setSdmAntId | ( | const quint16z | sdmAntId | ) |
Sets the sdmAntId
field to sdmAntId.
sdmAntId | The field value to set. |
Definition at line 186 of file sdmprofilemessage.cpp.
References sdmAntId().
void SdmProfileMessage::setSdmAntIdTransType | ( | const quint8z | sdmAntIdTransType | ) |
Sets the sdmAntIdTransType
field to sdmAntIdTransType.
sdmAntIdTransType | The field value to set. |
Definition at line 226 of file sdmprofilemessage.cpp.
References sdmAntIdTransType().
void SdmProfileMessage::setSdmCalFactor | ( | const quint16 | sdmCalFactor | ) |
Sets the sdmCalFactor
field to sdmCalFactor.
sdmCalFactor | The field value to set. |
Definition at line 196 of file sdmprofilemessage.cpp.
References sdmCalFactor().
void SdmProfileMessage::setSpeedSource | ( | const bool | speedSource | ) |
Sets the speedSource
field to speedSource.
speedSource | The field value to set. |
Definition at line 216 of file sdmprofilemessage.cpp.
References speedSource().
bool SdmProfileMessage::speedSource | ( | ) | const |
Returns the SdmProfileMessage data message's speedSource
field's current value.
Use footpod for speed source instead of GPS
speedSource
field value. Definition at line 131 of file sdmprofilemessage.cpp.
Referenced by setSpeedSource().