QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
DiveSettingsMessage Class Reference

The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message. More...

Inheritance diagram for DiveSettingsMessage:
[legend]
Collaboration diagram for DiveSettingsMessage:
[legend]

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

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...
 

Detailed Description

The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ DiveSettingsMessage()

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.

Member Function Documentation

◆ apneaCountdownEnabled()

bool DiveSettingsMessage::apneaCountdownEnabled ( ) const

Returns the DiveSettingsMessage data message's apneaCountdownEnabled field's current value.

Returns
the apneaCountdownEnabled field value.
Here is the caller graph for this function:

◆ apneaCountdownTime()

quint32 DiveSettingsMessage::apneaCountdownTime ( ) const

Returns the DiveSettingsMessage data message's apneaCountdownTime field's current value.

Returns
the apneaCountdownTime field value.
Here is the caller graph for this function:

◆ backlightBrightness()

quint8 DiveSettingsMessage::backlightBrightness ( ) const

Returns the DiveSettingsMessage data message's backlightBrightness field's current value.

Returns
the backlightBrightness field value.
Here is the caller graph for this function:

◆ backlightMode()

DiveBacklightMode DiveSettingsMessage::backlightMode ( ) const

Returns the DiveSettingsMessage data message's backlightMode field's current value.

Returns
the backlightMode field value.
Here is the caller graph for this function:

◆ backlightTimeout()

BacklightTimeout DiveSettingsMessage::backlightTimeout ( ) const

Returns the DiveSettingsMessage data message's backlightTimeout field's current value.

Returns
the backlightTimeout field value.
Here is the caller graph for this function:

◆ bottomDepth()

float DiveSettingsMessage::bottomDepth ( ) const

Returns the DiveSettingsMessage data message's bottomDepth field's current value.

Returns
the bottomDepth field value.
Here is the caller graph for this function:

◆ bottomTime()

quint32 DiveSettingsMessage::bottomTime ( ) const

Returns the DiveSettingsMessage data message's bottomTime field's current value.

Returns
the bottomTime field value.
Here is the caller graph for this function:

◆ gfHigh()

quint8 DiveSettingsMessage::gfHigh ( ) const

Returns the DiveSettingsMessage data message's gfHigh field's current value.

Returns
the gfHigh field value.
Here is the caller graph for this function:

◆ gfLow()

quint8 DiveSettingsMessage::gfLow ( ) const

Returns the DiveSettingsMessage data message's gfLow field's current value.

Returns
the gfLow field value.
Here is the caller graph for this function:

◆ heartRateSource()

quint8 DiveSettingsMessage::heartRateSource ( ) const

Returns the DiveSettingsMessage data message's heartRateSource field's current value.

Returns
the heartRateSource field value.
Here is the caller graph for this function:

◆ heartRateSourceType()

SourceType DiveSettingsMessage::heartRateSourceType ( ) const

Returns the DiveSettingsMessage data message's heartRateSourceType field's current value.

Returns
the heartRateSourceType field value.
Here is the caller graph for this function:

◆ messageIndex()

MessageIndex DiveSettingsMessage::messageIndex ( ) const

Returns the DiveSettingsMessage data message's messageIndex field's current value.

Returns
the messageIndex field value.
Here is the caller graph for this function:

◆ model()

TissueModelType DiveSettingsMessage::model ( ) const

Returns the DiveSettingsMessage data message's model field's current value.

Returns
the model field value.
Here is the caller graph for this function:

◆ name()

QString DiveSettingsMessage::name ( ) const

Returns the DiveSettingsMessage data message's name field's current value.

Returns
the name field value.
Here is the caller graph for this function:

◆ po2Critical()

quint8 DiveSettingsMessage::po2Critical ( ) const

Returns the DiveSettingsMessage data message's po2Critical field's current value.

Typically 1.60

Returns
the po2Critical field value.
Here is the caller graph for this function:

◆ po2Deco()

quint8 DiveSettingsMessage::po2Deco ( ) const

Returns the DiveSettingsMessage data message's po2Deco field's current value.

Returns
the po2Deco field value.
Here is the caller graph for this function:

◆ po2Warn()

quint8 DiveSettingsMessage::po2Warn ( ) const

Returns the DiveSettingsMessage data message's po2Warn field's current value.

Typically 1.40

Returns
the po2Warn field value.
Here is the caller graph for this function:

◆ repeatDiveInterval()

quint16 DiveSettingsMessage::repeatDiveInterval ( ) const

Returns the DiveSettingsMessage data message's repeatDiveInterval field's current value.

Time between surfacing and ending the activity

Returns
the repeatDiveInterval field value.
Here is the caller graph for this function:

◆ safetyStopEnabled()

bool DiveSettingsMessage::safetyStopEnabled ( ) const

Returns the DiveSettingsMessage data message's safetyStopEnabled field's current value.

Returns
the safetyStopEnabled field value.
Here is the caller graph for this function:

◆ safetyStopTime()

quint16 DiveSettingsMessage::safetyStopTime ( ) const

Returns the DiveSettingsMessage data message's safetyStopTime field's current value.

Time at safety stop (if enabled)

Returns
the safetyStopTime field value.
Here is the caller graph for this function:

◆ setApneaCountdownEnabled()

void DiveSettingsMessage::setApneaCountdownEnabled ( const bool  apneaCountdownEnabled)

Sets the apneaCountdownEnabled field to apneaCountdownEnabled.

Parameters
apneaCountdownEnabledThe field value to set.
Here is the call graph for this function:

◆ setApneaCountdownTime()

void DiveSettingsMessage::setApneaCountdownTime ( const quint32  apneaCountdownTime)

Sets the apneaCountdownTime field to apneaCountdownTime.

Parameters
apneaCountdownTimeThe field value to set.
Here is the call graph for this function:

◆ setBacklightBrightness()

void DiveSettingsMessage::setBacklightBrightness ( const quint8  backlightBrightness)

Sets the backlightBrightness field to backlightBrightness.

Parameters
backlightBrightnessThe field value to set.
Here is the call graph for this function:

◆ setBacklightMode()

void DiveSettingsMessage::setBacklightMode ( const DiveBacklightMode  backlightMode)

Sets the backlightMode field to backlightMode.

Parameters
backlightModeThe field value to set.
Here is the call graph for this function:

◆ setBacklightTimeout()

void DiveSettingsMessage::setBacklightTimeout ( const BacklightTimeout  backlightTimeout)

Sets the backlightTimeout field to backlightTimeout.

Parameters
backlightTimeoutThe field value to set.
Here is the call graph for this function:

◆ setBottomDepth()

void DiveSettingsMessage::setBottomDepth ( const float  bottomDepth)

Sets the bottomDepth field to bottomDepth.

Parameters
bottomDepthThe field value to set.
Here is the call graph for this function:

◆ setBottomTime()

void DiveSettingsMessage::setBottomTime ( const quint32  bottomTime)

Sets the bottomTime field to bottomTime.

Parameters
bottomTimeThe field value to set.
Here is the call graph for this function:

◆ setGfHigh()

void DiveSettingsMessage::setGfHigh ( const quint8  gfHigh)

Sets the gfHigh field to gfHigh.

Parameters
gfHighThe field value to set.
Here is the call graph for this function:

◆ setGfLow()

void DiveSettingsMessage::setGfLow ( const quint8  gfLow)

Sets the gfLow field to gfLow.

Parameters
gfLowThe field value to set.
Here is the call graph for this function:

◆ setHeartRateSource()

void DiveSettingsMessage::setHeartRateSource ( const quint8  heartRateSource)

Sets the heartRateSource field to heartRateSource.

Parameters
heartRateSourceThe field value to set.
Here is the call graph for this function:

◆ setHeartRateSourceType()

void DiveSettingsMessage::setHeartRateSourceType ( const SourceType  heartRateSourceType)

Sets the heartRateSourceType field to heartRateSourceType.

Parameters
heartRateSourceTypeThe field value to set.
Here is the call graph for this function:

◆ setMessageIndex()

void DiveSettingsMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

Parameters
messageIndexThe field value to set.
Here is the call graph for this function:

◆ setModel()

void DiveSettingsMessage::setModel ( const TissueModelType  model)

Sets the model field to model.

Parameters
modelThe field value to set.
Here is the call graph for this function:

◆ setName()

void DiveSettingsMessage::setName ( const QString  name)

Sets the name field to name.

Parameters
nameThe field value to set.
Here is the call graph for this function:

◆ setPo2Critical()

void DiveSettingsMessage::setPo2Critical ( const quint8  po2Critical)

Sets the po2Critical field to po2Critical.

Parameters
po2CriticalThe field value to set.
Here is the call graph for this function:

◆ setPo2Deco()

void DiveSettingsMessage::setPo2Deco ( const quint8  po2Deco)

Sets the po2Deco field to po2Deco.

Parameters
po2DecoThe field value to set.
Here is the call graph for this function:

◆ setPo2Warn()

void DiveSettingsMessage::setPo2Warn ( const quint8  po2Warn)

Sets the po2Warn field to po2Warn.

Parameters
po2WarnThe field value to set.
Here is the call graph for this function:

◆ setRepeatDiveInterval()

void DiveSettingsMessage::setRepeatDiveInterval ( const quint16  repeatDiveInterval)

Sets the repeatDiveInterval field to repeatDiveInterval.

Parameters
repeatDiveIntervalThe field value to set.
Here is the call graph for this function:

◆ setSafetyStopEnabled()

void DiveSettingsMessage::setSafetyStopEnabled ( const bool  safetyStopEnabled)

Sets the safetyStopEnabled field to safetyStopEnabled.

Parameters
safetyStopEnabledThe field value to set.
Here is the call graph for this function:

◆ setSafetyStopTime()

void DiveSettingsMessage::setSafetyStopTime ( const quint16  safetyStopTime)

Sets the safetyStopTime field to safetyStopTime.

Parameters
safetyStopTimeThe field value to set.
Here is the call graph for this function:

◆ setWaterDensity()

void DiveSettingsMessage::setWaterDensity ( const float  waterDensity)

Sets the waterDensity field to waterDensity.

Parameters
waterDensityThe field value to set.
Here is the call graph for this function:

◆ setWaterType()

void DiveSettingsMessage::setWaterType ( const WaterType  waterType)

Sets the waterType field to waterType.

Parameters
waterTypeThe field value to set.
Here is the call graph for this function:

◆ waterDensity()

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

Returns
the waterDensity field value.
Here is the caller graph for this function:

◆ waterType()

WaterType DiveSettingsMessage::waterType ( ) const

Returns the DiveSettingsMessage data message's waterType field's current value.

Returns
the waterType field value.
Here is the caller graph for this function:

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