QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
DiveSettingsMessage (DiveSettingsMessagePrivate *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 DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.
Definition at line 39 of file divesettingsmessage.h.
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.
Definition at line 52 of file divesettingsmessage.cpp.
|
explicitprotected |
Constructs a DiveSettingsMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file divesettingsmessage.cpp.
bool DiveSettingsMessage::apneaCountdownEnabled | ( | ) | const |
Returns the DiveSettingsMessage data message's apneaCountdownEnabled
field's current value.
apneaCountdownEnabled
field value. Definition at line 223 of file divesettingsmessage.cpp.
Referenced by setApneaCountdownEnabled().
quint32 DiveSettingsMessage::apneaCountdownTime | ( | ) | const |
Returns the DiveSettingsMessage data message's apneaCountdownTime
field's current value.
apneaCountdownTime
field value. Definition at line 234 of file divesettingsmessage.cpp.
Referenced by setApneaCountdownTime().
quint8 DiveSettingsMessage::backlightBrightness | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightBrightness
field's current value.
backlightBrightness
field value. Definition at line 256 of file divesettingsmessage.cpp.
Referenced by setBacklightBrightness().
DiveBacklightMode DiveSettingsMessage::backlightMode | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightMode
field's current value.
backlightMode
field value. Definition at line 245 of file divesettingsmessage.cpp.
Referenced by setBacklightMode().
BacklightTimeout DiveSettingsMessage::backlightTimeout | ( | ) | const |
Returns the DiveSettingsMessage data message's backlightTimeout
field's current value.
backlightTimeout
field value. Definition at line 267 of file divesettingsmessage.cpp.
Referenced by setBacklightTimeout().
float DiveSettingsMessage::bottomDepth | ( | ) | const |
Returns the DiveSettingsMessage data message's bottomDepth
field's current value.
bottomDepth
field value. Definition at line 201 of file divesettingsmessage.cpp.
Referenced by setBottomDepth().
quint32 DiveSettingsMessage::bottomTime | ( | ) | const |
Returns the DiveSettingsMessage data message's bottomTime
field's current value.
bottomTime
field value. Definition at line 212 of file divesettingsmessage.cpp.
Referenced by setBottomTime().
quint8 DiveSettingsMessage::gfHigh | ( | ) | const |
Returns the DiveSettingsMessage data message's gfHigh
field's current value.
gfHigh
field value. Definition at line 118 of file divesettingsmessage.cpp.
Referenced by setGfHigh().
quint8 DiveSettingsMessage::gfLow | ( | ) | const |
Returns the DiveSettingsMessage data message's gfLow
field's current value.
gfLow
field value. Definition at line 107 of file divesettingsmessage.cpp.
Referenced by setGfLow().
quint8 DiveSettingsMessage::heartRateSource | ( | ) | const |
Returns the DiveSettingsMessage data message's heartRateSource
field's current value.
heartRateSource
field value. Definition at line 315 of file divesettingsmessage.cpp.
Referenced by setHeartRateSource().
SourceType DiveSettingsMessage::heartRateSourceType | ( | ) | const |
Returns the DiveSettingsMessage data message's heartRateSourceType
field's current value.
heartRateSourceType
field value. Definition at line 304 of file divesettingsmessage.cpp.
Referenced by setHeartRateSourceType().
MessageIndex DiveSettingsMessage::messageIndex | ( | ) | const |
Returns the DiveSettingsMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file divesettingsmessage.cpp.
Referenced by setMessageIndex().
TissueModelType DiveSettingsMessage::model | ( | ) | const |
Returns the DiveSettingsMessage data message's model
field's current value.
model
field value. Definition at line 96 of file divesettingsmessage.cpp.
Referenced by setModel().
QString DiveSettingsMessage::name | ( | ) | const |
Returns the DiveSettingsMessage data message's name
field's current value.
name
field value. Definition at line 85 of file divesettingsmessage.cpp.
Referenced by setName().
quint8 DiveSettingsMessage::po2Critical | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Critical
field's current value.
Typically 1.60
po2Critical
field value. Definition at line 168 of file divesettingsmessage.cpp.
Referenced by setPo2Critical().
quint8 DiveSettingsMessage::po2Deco | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Deco
field's current value.
po2Deco
field value. Definition at line 179 of file divesettingsmessage.cpp.
Referenced by setPo2Deco().
quint8 DiveSettingsMessage::po2Warn | ( | ) | const |
Returns the DiveSettingsMessage data message's po2Warn
field's current value.
Typically 1.40
po2Warn
field value. Definition at line 155 of file divesettingsmessage.cpp.
Referenced by setPo2Warn().
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. Definition at line 280 of file divesettingsmessage.cpp.
Referenced by setRepeatDiveInterval().
bool DiveSettingsMessage::safetyStopEnabled | ( | ) | const |
Returns the DiveSettingsMessage data message's safetyStopEnabled
field's current value.
safetyStopEnabled
field value. Definition at line 190 of file divesettingsmessage.cpp.
Referenced by setSafetyStopEnabled().
quint16 DiveSettingsMessage::safetyStopTime | ( | ) | const |
Returns the DiveSettingsMessage data message's safetyStopTime
field's current value.
Time at safety stop (if enabled)
safetyStopTime
field value. Definition at line 293 of file divesettingsmessage.cpp.
Referenced by setSafetyStopTime().
void DiveSettingsMessage::setApneaCountdownEnabled | ( | const bool | apneaCountdownEnabled | ) |
Sets the apneaCountdownEnabled
field to apneaCountdownEnabled.
apneaCountdownEnabled | The field value to set. |
Definition at line 456 of file divesettingsmessage.cpp.
References apneaCountdownEnabled().
void DiveSettingsMessage::setApneaCountdownTime | ( | const quint32 | apneaCountdownTime | ) |
Sets the apneaCountdownTime
field to apneaCountdownTime.
apneaCountdownTime | The field value to set. |
Definition at line 466 of file divesettingsmessage.cpp.
References apneaCountdownTime().
void DiveSettingsMessage::setBacklightBrightness | ( | const quint8 | backlightBrightness | ) |
Sets the backlightBrightness
field to backlightBrightness.
backlightBrightness | The field value to set. |
Definition at line 486 of file divesettingsmessage.cpp.
References backlightBrightness().
void DiveSettingsMessage::setBacklightMode | ( | const DiveBacklightMode | backlightMode | ) |
Sets the backlightMode
field to backlightMode.
backlightMode | The field value to set. |
Definition at line 476 of file divesettingsmessage.cpp.
References backlightMode().
void DiveSettingsMessage::setBacklightTimeout | ( | const BacklightTimeout | backlightTimeout | ) |
Sets the backlightTimeout
field to backlightTimeout.
backlightTimeout | The field value to set. |
Definition at line 496 of file divesettingsmessage.cpp.
References backlightTimeout().
void DiveSettingsMessage::setBottomDepth | ( | const float | bottomDepth | ) |
Sets the bottomDepth
field to bottomDepth.
bottomDepth | The field value to set. |
Definition at line 436 of file divesettingsmessage.cpp.
References bottomDepth().
void DiveSettingsMessage::setBottomTime | ( | const quint32 | bottomTime | ) |
Sets the bottomTime
field to bottomTime.
bottomTime | The field value to set. |
Definition at line 446 of file divesettingsmessage.cpp.
References bottomTime().
void DiveSettingsMessage::setGfHigh | ( | const quint8 | gfHigh | ) |
Sets the gfHigh
field to gfHigh.
gfHigh | The field value to set. |
Definition at line 366 of file divesettingsmessage.cpp.
References gfHigh().
void DiveSettingsMessage::setGfLow | ( | const quint8 | gfLow | ) |
Sets the gfLow
field to gfLow.
gfLow | The field value to set. |
Definition at line 356 of file divesettingsmessage.cpp.
References gfLow().
void DiveSettingsMessage::setHeartRateSource | ( | const quint8 | heartRateSource | ) |
Sets the heartRateSource
field to heartRateSource.
heartRateSource | The field value to set. |
Definition at line 536 of file divesettingsmessage.cpp.
References heartRateSource().
void DiveSettingsMessage::setHeartRateSourceType | ( | const SourceType | heartRateSourceType | ) |
Sets the heartRateSourceType
field to heartRateSourceType.
heartRateSourceType | The field value to set. |
Definition at line 526 of file divesettingsmessage.cpp.
References heartRateSourceType().
void DiveSettingsMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 326 of file divesettingsmessage.cpp.
References messageIndex().
void DiveSettingsMessage::setModel | ( | const TissueModelType | model | ) |
Sets the model
field to model.
model | The field value to set. |
Definition at line 346 of file divesettingsmessage.cpp.
References model().
void DiveSettingsMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
Definition at line 336 of file divesettingsmessage.cpp.
References name().
void DiveSettingsMessage::setPo2Critical | ( | const quint8 | po2Critical | ) |
Sets the po2Critical
field to po2Critical.
po2Critical | The field value to set. |
Definition at line 406 of file divesettingsmessage.cpp.
References po2Critical().
void DiveSettingsMessage::setPo2Deco | ( | const quint8 | po2Deco | ) |
Sets the po2Deco
field to po2Deco.
po2Deco | The field value to set. |
Definition at line 416 of file divesettingsmessage.cpp.
References po2Deco().
void DiveSettingsMessage::setPo2Warn | ( | const quint8 | po2Warn | ) |
Sets the po2Warn
field to po2Warn.
po2Warn | The field value to set. |
Definition at line 396 of file divesettingsmessage.cpp.
References po2Warn().
void DiveSettingsMessage::setRepeatDiveInterval | ( | const quint16 | repeatDiveInterval | ) |
Sets the repeatDiveInterval
field to repeatDiveInterval.
repeatDiveInterval | The field value to set. |
Definition at line 506 of file divesettingsmessage.cpp.
References repeatDiveInterval().
void DiveSettingsMessage::setSafetyStopEnabled | ( | const bool | safetyStopEnabled | ) |
Sets the safetyStopEnabled
field to safetyStopEnabled.
safetyStopEnabled | The field value to set. |
Definition at line 426 of file divesettingsmessage.cpp.
References safetyStopEnabled().
void DiveSettingsMessage::setSafetyStopTime | ( | const quint16 | safetyStopTime | ) |
Sets the safetyStopTime
field to safetyStopTime.
safetyStopTime | The field value to set. |
Definition at line 516 of file divesettingsmessage.cpp.
References safetyStopTime().
void DiveSettingsMessage::setWaterDensity | ( | const float | waterDensity | ) |
Sets the waterDensity
field to waterDensity.
waterDensity | The field value to set. |
Definition at line 386 of file divesettingsmessage.cpp.
References waterDensity().
void DiveSettingsMessage::setWaterType | ( | const WaterType | waterType | ) |
Sets the waterType
field to waterType.
waterType | The field value to set. |
Definition at line 376 of file divesettingsmessage.cpp.
References waterType().
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. Definition at line 142 of file divesettingsmessage.cpp.
Referenced by setWaterDensity().
WaterType DiveSettingsMessage::waterType | ( | ) | const |
Returns the DiveSettingsMessage data message's waterType
field's current value.
waterType
field value. Definition at line 129 of file divesettingsmessage.cpp.
Referenced by setWaterType().