QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros 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...
 

Protected Member Functions

 DiveSettingsMessage (DiveSettingsMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

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...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.

See also
DataMessage

Definition at line 39 of file divesettingsmessage.h.

Constructor & Destructor Documentation

◆ DiveSettingsMessage() [1/2]

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.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ DiveSettingsMessage() [2/2]

DiveSettingsMessage::DiveSettingsMessage ( DiveSettingsMessagePrivate *const  d)
explicitprotected

Constructs a DiveSettingsMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file divesettingsmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ apneaCountdownEnabled()

bool DiveSettingsMessage::apneaCountdownEnabled ( ) const

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

Returns
the apneaCountdownEnabled field value.

Definition at line 223 of file divesettingsmessage.cpp.

224 {
225  Q_D(const DiveSettingsMessage);
226  return d->apneaCountdownEnabled;
227 }
The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.

Referenced by setApneaCountdownEnabled().

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.

Definition at line 234 of file divesettingsmessage.cpp.

235 {
236  Q_D(const DiveSettingsMessage);
237  return d->apneaCountdownTime;
238 }

Referenced by setApneaCountdownTime().

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.

Definition at line 256 of file divesettingsmessage.cpp.

257 {
258  Q_D(const DiveSettingsMessage);
259  return d->backlightBrightness;
260 }

Referenced by setBacklightBrightness().

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.

Definition at line 245 of file divesettingsmessage.cpp.

246 {
247  Q_D(const DiveSettingsMessage);
248  return d->backlightMode;
249 }

Referenced by setBacklightMode().

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.

Definition at line 267 of file divesettingsmessage.cpp.

268 {
269  Q_D(const DiveSettingsMessage);
270  return d->backlightTimeout;
271 }

Referenced by setBacklightTimeout().

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.

Definition at line 201 of file divesettingsmessage.cpp.

202 {
203  Q_D(const DiveSettingsMessage);
204  return d->bottomDepth;
205 }

Referenced by setBottomDepth().

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.

Definition at line 212 of file divesettingsmessage.cpp.

213 {
214  Q_D(const DiveSettingsMessage);
215  return d->bottomTime;
216 }

Referenced by setBottomTime().

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.

Definition at line 118 of file divesettingsmessage.cpp.

119 {
120  Q_D(const DiveSettingsMessage);
121  return d->gfHigh;
122 }

Referenced by setGfHigh().

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.

Definition at line 107 of file divesettingsmessage.cpp.

108 {
109  Q_D(const DiveSettingsMessage);
110  return d->gfLow;
111 }

Referenced by setGfLow().

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.

Definition at line 315 of file divesettingsmessage.cpp.

316 {
317  Q_D(const DiveSettingsMessage);
318  return d->heartRateSource;
319 }

Referenced by setHeartRateSource().

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.

Definition at line 304 of file divesettingsmessage.cpp.

305 {
306  Q_D(const DiveSettingsMessage);
307  return d->heartRateSourceType;
308 }

Referenced by setHeartRateSourceType().

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.

Definition at line 74 of file divesettingsmessage.cpp.

75 {
76  Q_D(const DiveSettingsMessage);
77  return d->messageIndex;
78 }

Referenced by setMessageIndex().

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.

Definition at line 96 of file divesettingsmessage.cpp.

97 {
98  Q_D(const DiveSettingsMessage);
99  return d->model;
100 }

Referenced by setModel().

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.

Definition at line 85 of file divesettingsmessage.cpp.

86 {
87  Q_D(const DiveSettingsMessage);
88  return d->name;
89 }

Referenced by setName().

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.

Definition at line 168 of file divesettingsmessage.cpp.

169 {
170  Q_D(const DiveSettingsMessage);
171  return d->po2Critical;
172 }

Referenced by setPo2Critical().

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.

Definition at line 179 of file divesettingsmessage.cpp.

180 {
181  Q_D(const DiveSettingsMessage);
182  return d->po2Deco;
183 }

Referenced by setPo2Deco().

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.

Definition at line 155 of file divesettingsmessage.cpp.

156 {
157  Q_D(const DiveSettingsMessage);
158  return d->po2Warn;
159 }

Referenced by setPo2Warn().

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.

Definition at line 280 of file divesettingsmessage.cpp.

281 {
282  Q_D(const DiveSettingsMessage);
283  return d->repeatDiveInterval;
284 }

Referenced by setRepeatDiveInterval().

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.

Definition at line 190 of file divesettingsmessage.cpp.

191 {
192  Q_D(const DiveSettingsMessage);
193  return d->safetyStopEnabled;
194 }

Referenced by setSafetyStopEnabled().

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.

Definition at line 293 of file divesettingsmessage.cpp.

294 {
295  Q_D(const DiveSettingsMessage);
296  return d->safetyStopTime;
297 }

Referenced by setSafetyStopTime().

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.

Definition at line 456 of file divesettingsmessage.cpp.

457 {
458  Q_D(DiveSettingsMessage);
459  d->apneaCountdownEnabled = apneaCountdownEnabled;
460 }
bool apneaCountdownEnabled() const
Returns the DiveSettingsMessage data message's apneaCountdownEnabled field's current value.

References apneaCountdownEnabled().

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.

Definition at line 466 of file divesettingsmessage.cpp.

467 {
468  Q_D(DiveSettingsMessage);
469  d->apneaCountdownTime = apneaCountdownTime;
470 }
quint32 apneaCountdownTime() const
Returns the DiveSettingsMessage data message's apneaCountdownTime field's current value.

References apneaCountdownTime().

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.

Definition at line 486 of file divesettingsmessage.cpp.

487 {
488  Q_D(DiveSettingsMessage);
489  d->backlightBrightness = backlightBrightness;
490 }
quint8 backlightBrightness() const
Returns the DiveSettingsMessage data message's backlightBrightness field's current value.

References backlightBrightness().

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.

Definition at line 476 of file divesettingsmessage.cpp.

477 {
478  Q_D(DiveSettingsMessage);
479  d->backlightMode = backlightMode;
480 }
DiveBacklightMode backlightMode() const
Returns the DiveSettingsMessage data message's backlightMode field's current value.

References backlightMode().

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.

Definition at line 496 of file divesettingsmessage.cpp.

497 {
498  Q_D(DiveSettingsMessage);
499  d->backlightTimeout = backlightTimeout;
500 }
BacklightTimeout backlightTimeout() const
Returns the DiveSettingsMessage data message's backlightTimeout field's current value.

References backlightTimeout().

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.

Definition at line 436 of file divesettingsmessage.cpp.

437 {
438  Q_D(DiveSettingsMessage);
439  d->bottomDepth = bottomDepth;
440 }
float bottomDepth() const
Returns the DiveSettingsMessage data message's bottomDepth field's current value.

References bottomDepth().

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.

Definition at line 446 of file divesettingsmessage.cpp.

447 {
448  Q_D(DiveSettingsMessage);
449  d->bottomTime = bottomTime;
450 }
quint32 bottomTime() const
Returns the DiveSettingsMessage data message's bottomTime field's current value.

References bottomTime().

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.

Definition at line 366 of file divesettingsmessage.cpp.

367 {
368  Q_D(DiveSettingsMessage);
369  d->gfHigh = gfHigh;
370 }
quint8 gfHigh() const
Returns the DiveSettingsMessage data message's gfHigh field's current value.

References gfHigh().

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.

Definition at line 356 of file divesettingsmessage.cpp.

357 {
358  Q_D(DiveSettingsMessage);
359  d->gfLow = gfLow;
360 }
quint8 gfLow() const
Returns the DiveSettingsMessage data message's gfLow field's current value.

References gfLow().

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.

Definition at line 536 of file divesettingsmessage.cpp.

537 {
538  Q_D(DiveSettingsMessage);
539  d->heartRateSource = heartRateSource;
540 }
quint8 heartRateSource() const
Returns the DiveSettingsMessage data message's heartRateSource field's current value.

References heartRateSource().

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.

Definition at line 526 of file divesettingsmessage.cpp.

527 {
528  Q_D(DiveSettingsMessage);
529  d->heartRateSourceType = heartRateSourceType;
530 }
SourceType heartRateSourceType() const
Returns the DiveSettingsMessage data message's heartRateSourceType field's current value.

References heartRateSourceType().

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.

Definition at line 326 of file divesettingsmessage.cpp.

327 {
328  Q_D(DiveSettingsMessage);
329  d->messageIndex = messageIndex;
330 }
MessageIndex messageIndex() const
Returns the DiveSettingsMessage data message's messageIndex field's current value.

References messageIndex().

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.

Definition at line 346 of file divesettingsmessage.cpp.

347 {
348  Q_D(DiveSettingsMessage);
349  d->model = model;
350 }
TissueModelType model() const
Returns the DiveSettingsMessage data message's model field's current value.

References model().

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.

Definition at line 336 of file divesettingsmessage.cpp.

337 {
338  Q_D(DiveSettingsMessage);
339  d->name = name;
340 }
QString name() const
Returns the DiveSettingsMessage data message's name field's current value.

References name().

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.

Definition at line 406 of file divesettingsmessage.cpp.

407 {
408  Q_D(DiveSettingsMessage);
409  d->po2Critical = po2Critical;
410 }
quint8 po2Critical() const
Returns the DiveSettingsMessage data message's po2Critical field's current value.

References po2Critical().

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.

Definition at line 416 of file divesettingsmessage.cpp.

417 {
418  Q_D(DiveSettingsMessage);
419  d->po2Deco = po2Deco;
420 }
quint8 po2Deco() const
Returns the DiveSettingsMessage data message's po2Deco field's current value.

References po2Deco().

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.

Definition at line 396 of file divesettingsmessage.cpp.

397 {
398  Q_D(DiveSettingsMessage);
399  d->po2Warn = po2Warn;
400 }
quint8 po2Warn() const
Returns the DiveSettingsMessage data message's po2Warn field's current value.

References po2Warn().

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.

Definition at line 506 of file divesettingsmessage.cpp.

507 {
508  Q_D(DiveSettingsMessage);
509  d->repeatDiveInterval = repeatDiveInterval;
510 }
quint16 repeatDiveInterval() const
Returns the DiveSettingsMessage data message's repeatDiveInterval field's current value.

References repeatDiveInterval().

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.

Definition at line 426 of file divesettingsmessage.cpp.

427 {
428  Q_D(DiveSettingsMessage);
429  d->safetyStopEnabled = safetyStopEnabled;
430 }
bool safetyStopEnabled() const
Returns the DiveSettingsMessage data message's safetyStopEnabled field's current value.

References safetyStopEnabled().

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.

Definition at line 516 of file divesettingsmessage.cpp.

517 {
518  Q_D(DiveSettingsMessage);
519  d->safetyStopTime = safetyStopTime;
520 }
quint16 safetyStopTime() const
Returns the DiveSettingsMessage data message's safetyStopTime field's current value.

References safetyStopTime().

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.

Definition at line 386 of file divesettingsmessage.cpp.

387 {
388  Q_D(DiveSettingsMessage);
389  d->waterDensity = waterDensity;
390 }
float waterDensity() const
Returns the DiveSettingsMessage data message's waterDensity field's current value.

References waterDensity().

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.

Definition at line 376 of file divesettingsmessage.cpp.

377 {
378  Q_D(DiveSettingsMessage);
379  d->waterType = waterType;
380 }
WaterType waterType() const
Returns the DiveSettingsMessage data message's waterType field's current value.

References waterType().

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.

Definition at line 142 of file divesettingsmessage.cpp.

143 {
144  Q_D(const DiveSettingsMessage);
145  return d->waterDensity;
146 }

Referenced by setWaterDensity().

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.

Definition at line 129 of file divesettingsmessage.cpp.

130 {
131  Q_D(const DiveSettingsMessage);
132  return d->waterType;
133 }

Referenced by setWaterType().

Here is the caller graph for this function:

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