QtFit
0.1
Native Qt library for Garmin FIT format
|
The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message. More...
Public Member Functions | |
DiveSettingsMessage () | |
Constructs a DiveSettingsMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the DiveSettingsMessage data message's messageIndex field's current value. More... | |
QString | name () const |
Returns the DiveSettingsMessage data message's name field's current value. More... | |
TissueModelType | model () const |
Returns the DiveSettingsMessage data message's model field's current value. More... | |
quint8 | gfLow () const |
Returns the DiveSettingsMessage data message's gfLow field's current value. More... | |
quint8 | gfHigh () const |
Returns the DiveSettingsMessage data message's gfHigh field's current value. More... | |
WaterType | waterType () const |
Returns the DiveSettingsMessage data message's waterType field's current value. More... | |
float | waterDensity () const |
Returns the DiveSettingsMessage data message's waterDensity field's current value. More... | |
quint8 | po2Warn () const |
Returns the DiveSettingsMessage data message's po2Warn field's current value. More... | |
quint8 | po2Critical () const |
Returns the DiveSettingsMessage data message's po2Critical field's current value. More... | |
quint8 | po2Deco () const |
Returns the DiveSettingsMessage data message's po2Deco field's current value. More... | |
bool | safetyStopEnabled () const |
Returns the DiveSettingsMessage data message's safetyStopEnabled field's current value. More... | |
float | bottomDepth () const |
Returns the DiveSettingsMessage data message's bottomDepth field's current value. More... | |
quint32 | bottomTime () const |
Returns the DiveSettingsMessage data message's bottomTime field's current value. More... | |
bool | apneaCountdownEnabled () const |
Returns the DiveSettingsMessage data message's apneaCountdownEnabled field's current value. More... | |
quint32 | apneaCountdownTime () const |
Returns the DiveSettingsMessage data message's apneaCountdownTime field's current value. More... | |
DiveBacklightMode | backlightMode () const |
Returns the DiveSettingsMessage data message's backlightMode field's current value. More... | |
quint8 | backlightBrightness () const |
Returns the DiveSettingsMessage data message's backlightBrightness field's current value. More... | |
BacklightTimeout | backlightTimeout () const |
Returns the DiveSettingsMessage data message's backlightTimeout field's current value. More... | |
quint16 | repeatDiveInterval () const |
Returns the DiveSettingsMessage data message's repeatDiveInterval field's current value. More... | |
quint16 | safetyStopTime () const |
Returns the DiveSettingsMessage data message's safetyStopTime field's current value. More... | |
SourceType | heartRateSourceType () const |
Returns the DiveSettingsMessage data message's heartRateSourceType field's current value. More... | |
quint8 | heartRateSource () const |
Returns the DiveSettingsMessage data message's heartRateSource field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setName (const QString name) |
Sets the name field to name. More... | |
void | setModel (const TissueModelType model) |
Sets the model field to model. More... | |
void | setGfLow (const quint8 gfLow) |
Sets the gfLow field to gfLow. More... | |
void | setGfHigh (const quint8 gfHigh) |
Sets the gfHigh field to gfHigh. More... | |
void | setWaterType (const WaterType waterType) |
Sets the waterType field to waterType. More... | |
void | setWaterDensity (const float waterDensity) |
Sets the waterDensity field to waterDensity. More... | |
void | setPo2Warn (const quint8 po2Warn) |
Sets the po2Warn field to po2Warn. More... | |
void | setPo2Critical (const quint8 po2Critical) |
Sets the po2Critical field to po2Critical. More... | |
void | setPo2Deco (const quint8 po2Deco) |
Sets the po2Deco field to po2Deco. More... | |
void | setSafetyStopEnabled (const bool safetyStopEnabled) |
Sets the safetyStopEnabled field to safetyStopEnabled. More... | |
void | setBottomDepth (const float bottomDepth) |
Sets the bottomDepth field to bottomDepth. More... | |
void | setBottomTime (const quint32 bottomTime) |
Sets the bottomTime field to bottomTime. More... | |
void | setApneaCountdownEnabled (const bool apneaCountdownEnabled) |
Sets the apneaCountdownEnabled field to apneaCountdownEnabled. More... | |
void | setApneaCountdownTime (const quint32 apneaCountdownTime) |
Sets the apneaCountdownTime field to apneaCountdownTime. More... | |
void | setBacklightMode (const DiveBacklightMode backlightMode) |
Sets the backlightMode field to backlightMode. More... | |
void | setBacklightBrightness (const quint8 backlightBrightness) |
Sets the backlightBrightness field to backlightBrightness. More... | |
void | setBacklightTimeout (const BacklightTimeout backlightTimeout) |
Sets the backlightTimeout field to backlightTimeout. More... | |
void | setRepeatDiveInterval (const quint16 repeatDiveInterval) |
Sets the repeatDiveInterval field to repeatDiveInterval. More... | |
void | setSafetyStopTime (const quint16 safetyStopTime) |
Sets the safetyStopTime field to safetyStopTime. More... | |
void | setHeartRateSourceType (const SourceType heartRateSourceType) |
Sets the heartRateSourceType field to heartRateSourceType. More... | |
void | setHeartRateSource (const quint8 heartRateSource) |
Sets the heartRateSource field to heartRateSource. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
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... | |
The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.
DiveSettingsMessage::DiveSettingsMessage | ( | ) |
Constructs a DiveSettingsMessage 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.
bool DiveSettingsMessage::apneaCountdownEnabled | ( | ) | const |
Returns the DiveSettingsMessage data message's apneaCountdownEnabled
field's current value.
apneaCountdownEnabled
field value. quint32 DiveSettingsMessage::apneaCountdownTime | ( | ) | const |
Returns the DiveSettingsMessage data message's apneaCountdownTime
field's current value.
apneaCountdownTime
field value. quint8 DiveSettingsMessage::backlightBrightness | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightBrightness
field's current value.
backlightBrightness
field value. DiveBacklightMode DiveSettingsMessage::backlightMode | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightMode
field's current value.
backlightMode
field value. BacklightTimeout DiveSettingsMessage::backlightTimeout | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightTimeout
field's current value.
backlightTimeout
field value. float DiveSettingsMessage::bottomDepth | ( | ) | const |
Returns the DiveSettingsMessage data message's bottomDepth
field's current value.
bottomDepth
field value. quint32 DiveSettingsMessage::bottomTime | ( | ) | const |
Returns the DiveSettingsMessage data message's bottomTime
field's current value.
bottomTime
field value. quint8 DiveSettingsMessage::gfHigh | ( | ) | const |
Returns the DiveSettingsMessage data message's gfHigh
field's current value.
gfHigh
field value. quint8 DiveSettingsMessage::gfLow | ( | ) | const |
Returns the DiveSettingsMessage data message's gfLow
field's current value.
gfLow
field value. quint8 DiveSettingsMessage::heartRateSource | ( | ) | const |
Returns the DiveSettingsMessage data message's heartRateSource
field's current value.
heartRateSource
field value. SourceType DiveSettingsMessage::heartRateSourceType | ( | ) | const |
Returns the DiveSettingsMessage data message's heartRateSourceType
field's current value.
heartRateSourceType
field value. MessageIndex DiveSettingsMessage::messageIndex | ( | ) | const |
Returns the DiveSettingsMessage data message's messageIndex
field's current value.
messageIndex
field value. TissueModelType DiveSettingsMessage::model | ( | ) | const |
Returns the DiveSettingsMessage data message's model
field's current value.
model
field value. QString DiveSettingsMessage::name | ( | ) | const |
Returns the DiveSettingsMessage data message's name
field's current value.
name
field value. quint8 DiveSettingsMessage::po2Critical | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Critical
field's current value.
Typically 1.60
po2Critical
field value. quint8 DiveSettingsMessage::po2Deco | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Deco
field's current value.
po2Deco
field value. quint8 DiveSettingsMessage::po2Warn | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Warn
field's current value.
Typically 1.40
po2Warn
field value. quint16 DiveSettingsMessage::repeatDiveInterval | ( | ) | const |
Returns the DiveSettingsMessage data message's repeatDiveInterval
field's current value.
Time between surfacing and ending the activity
repeatDiveInterval
field value. bool DiveSettingsMessage::safetyStopEnabled | ( | ) | const |
Returns the DiveSettingsMessage data message's safetyStopEnabled
field's current value.
safetyStopEnabled
field value. quint16 DiveSettingsMessage::safetyStopTime | ( | ) | const |
Returns the DiveSettingsMessage data message's safetyStopTime
field's current value.
Time at safety stop (if enabled)
safetyStopTime
field value. void DiveSettingsMessage::setApneaCountdownEnabled | ( | const bool | apneaCountdownEnabled | ) |
Sets the apneaCountdownEnabled
field to apneaCountdownEnabled.
apneaCountdownEnabled | The field value to set. |
void DiveSettingsMessage::setApneaCountdownTime | ( | const quint32 | apneaCountdownTime | ) |
Sets the apneaCountdownTime
field to apneaCountdownTime.
apneaCountdownTime | The field value to set. |
void DiveSettingsMessage::setBacklightBrightness | ( | const quint8 | backlightBrightness | ) |
Sets the backlightBrightness
field to backlightBrightness.
backlightBrightness | The field value to set. |
void DiveSettingsMessage::setBacklightMode | ( | const DiveBacklightMode | backlightMode | ) |
Sets the backlightMode
field to backlightMode.
backlightMode | The field value to set. |
void DiveSettingsMessage::setBacklightTimeout | ( | const BacklightTimeout | backlightTimeout | ) |
Sets the backlightTimeout
field to backlightTimeout.
backlightTimeout | The field value to set. |
void DiveSettingsMessage::setBottomDepth | ( | const float | bottomDepth | ) |
Sets the bottomDepth
field to bottomDepth.
bottomDepth | The field value to set. |
void DiveSettingsMessage::setBottomTime | ( | const quint32 | bottomTime | ) |
Sets the bottomTime
field to bottomTime.
bottomTime | The field value to set. |
void DiveSettingsMessage::setGfHigh | ( | const quint8 | gfHigh | ) |
Sets the gfHigh
field to gfHigh.
gfHigh | The field value to set. |
void DiveSettingsMessage::setGfLow | ( | const quint8 | gfLow | ) |
Sets the gfLow
field to gfLow.
gfLow | The field value to set. |
void DiveSettingsMessage::setHeartRateSource | ( | const quint8 | heartRateSource | ) |
Sets the heartRateSource
field to heartRateSource.
heartRateSource | The field value to set. |
void DiveSettingsMessage::setHeartRateSourceType | ( | const SourceType | heartRateSourceType | ) |
Sets the heartRateSourceType
field to heartRateSourceType.
heartRateSourceType | The field value to set. |
void DiveSettingsMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
void DiveSettingsMessage::setModel | ( | const TissueModelType | model | ) |
Sets the model
field to model.
model | The field value to set. |
void DiveSettingsMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
void DiveSettingsMessage::setPo2Critical | ( | const quint8 | po2Critical | ) |
Sets the po2Critical
field to po2Critical.
po2Critical | The field value to set. |
void DiveSettingsMessage::setPo2Deco | ( | const quint8 | po2Deco | ) |
Sets the po2Deco
field to po2Deco.
po2Deco | The field value to set. |
void DiveSettingsMessage::setPo2Warn | ( | const quint8 | po2Warn | ) |
Sets the po2Warn
field to po2Warn.
po2Warn | The field value to set. |
void DiveSettingsMessage::setRepeatDiveInterval | ( | const quint16 | repeatDiveInterval | ) |
Sets the repeatDiveInterval
field to repeatDiveInterval.
repeatDiveInterval | The field value to set. |
void DiveSettingsMessage::setSafetyStopEnabled | ( | const bool | safetyStopEnabled | ) |
Sets the safetyStopEnabled
field to safetyStopEnabled.
safetyStopEnabled | The field value to set. |
void DiveSettingsMessage::setSafetyStopTime | ( | const quint16 | safetyStopTime | ) |
Sets the safetyStopTime
field to safetyStopTime.
safetyStopTime | The field value to set. |
void DiveSettingsMessage::setWaterDensity | ( | const float | waterDensity | ) |
Sets the waterDensity
field to waterDensity.
waterDensity | The field value to set. |
void DiveSettingsMessage::setWaterType | ( | const WaterType | waterType | ) |
Sets the waterType
field to waterType.
waterType | The field value to set. |
float DiveSettingsMessage::waterDensity | ( | ) | const |
Returns the DiveSettingsMessage data message's waterDensity
field's current value.
Fresh water is usually 1000; salt water is usually 1025
waterDensity
field value. WaterType DiveSettingsMessage::waterType | ( | ) | const |
Returns the DiveSettingsMessage data message's waterType
field's current value.
waterType
field value.