QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
divesettingsmessage_p.h
Go to the documentation of this file.
1 /*
2  Copyright 2021 Paul Colby
3 
4  This file is part of QtFit.
5 
6  QtFit is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  QtFit is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with QtFit. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \file
22  * \note This file is automatcially generated. Any changes here are likely to be overwritten.
23  */
24 
25 /*!
26  * \file
27  * Declares the DiveSettingsMessagePrivate class.
28  */
29 #ifndef QTFIT_DIVESETTINGSMESSAGE_P_H
30 #define QTFIT_DIVESETTINGSMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
37 
39 
40 public:
41  /*!
42  * The DiveSettingsMessage FIT message's messageIndex field.
43  */
45 
46  /*!
47  * The DiveSettingsMessage FIT message's name field.
48  */
49  QString name;
50 
51  /*!
52  * The DiveSettingsMessage FIT message's model field.
53  */
55 
56  /*!
57  * The DiveSettingsMessage FIT message's gfLow field.
58  */
59  quint8 gfLow;
60 
61  /*!
62  * The DiveSettingsMessage FIT message's gfHigh field.
63  */
64  quint8 gfHigh;
65 
66  /*!
67  * The DiveSettingsMessage FIT message's waterType field.
68  */
70 
71  /*!
72  * The DiveSettingsMessage FIT message's waterDensity field.
73  *
74  * Fresh water is usually 1000; salt water is usually 1025
75  */
76  float waterDensity;
77 
78  /*!
79  * The DiveSettingsMessage FIT message's po2Warn field.
80  *
81  * Typically 1.40
82  */
83  quint8 po2Warn;
84 
85  /*!
86  * The DiveSettingsMessage FIT message's po2Critical field.
87  *
88  * Typically 1.60
89  */
90  quint8 po2Critical;
91 
92  /*!
93  * The DiveSettingsMessage FIT message's po2Deco field.
94  */
95  quint8 po2Deco;
96 
97  /*!
98  * The DiveSettingsMessage FIT message's safetyStopEnabled field.
99  */
101 
102  /*!
103  * The DiveSettingsMessage FIT message's bottomDepth field.
104  */
105  float bottomDepth;
106 
107  /*!
108  * The DiveSettingsMessage FIT message's bottomTime field.
109  */
110  quint32 bottomTime;
111 
112  /*!
113  * The DiveSettingsMessage FIT message's apneaCountdownEnabled field.
114  */
116 
117  /*!
118  * The DiveSettingsMessage FIT message's apneaCountdownTime field.
119  */
121 
122  /*!
123  * The DiveSettingsMessage FIT message's backlightMode field.
124  */
126 
127  /*!
128  * The DiveSettingsMessage FIT message's backlightBrightness field.
129  */
131 
132  /*!
133  * The DiveSettingsMessage FIT message's backlightTimeout field.
134  */
136 
137  /*!
138  * The DiveSettingsMessage FIT message's repeatDiveInterval field.
139  *
140  * Time between surfacing and ending the activity
141  */
143 
144  /*!
145  * The DiveSettingsMessage FIT message's safetyStopTime field.
146  *
147  * Time at safety stop (if enabled)
148  */
149  quint16 safetyStopTime;
150 
151  /*!
152  * The DiveSettingsMessage FIT message's heartRateSourceType field.
153  */
155 
156  /*!
157  * The DiveSettingsMessage FIT message's heartRateSource field.
158  */
160 
161  DiveSettingsMessagePrivate() = delete;
163  virtual ~DiveSettingsMessagePrivate();
164 
165 protected:
166  bool setField(const int fieldId, const QByteArray &data,
167  const FitBaseType baseType, const bool bigEndian) override;
168 
169 private:
170  Q_DECLARE_PUBLIC(DiveSettingsMessage)
171  Q_DISABLE_COPY(DiveSettingsMessagePrivate)
172 
173 };
174 
176 
177 #endif // QTFIT_DIVESETTINGSMESSAGE_P_H
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:78
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:77
Declares the AbstractDataMessagePrivate class.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint8 gfLow
The DiveSettingsMessage FIT message's gfLow field.
bool safetyStopEnabled
The DiveSettingsMessage FIT message's safetyStopEnabled field.
quint8 po2Deco
The DiveSettingsMessage FIT message's po2Deco field.
float waterDensity
The DiveSettingsMessage FIT message's waterDensity field.
float bottomDepth
The DiveSettingsMessage FIT message's bottomDepth field.
DiveBacklightMode backlightMode
The DiveSettingsMessage FIT message's backlightMode field.
quint8 po2Critical
The DiveSettingsMessage FIT message's po2Critical field.
QString name
The DiveSettingsMessage FIT message's name field.
quint8 po2Warn
The DiveSettingsMessage FIT message's po2Warn field.
BacklightTimeout backlightTimeout
The DiveSettingsMessage FIT message's backlightTimeout field.
quint16 safetyStopTime
The DiveSettingsMessage FIT message's safetyStopTime field.
quint32 apneaCountdownTime
The DiveSettingsMessage FIT message's apneaCountdownTime field.
quint8 heartRateSource
The DiveSettingsMessage FIT message's heartRateSource field.
SourceType heartRateSourceType
The DiveSettingsMessage FIT message's heartRateSourceType field.
quint8 gfHigh
The DiveSettingsMessage FIT message's gfHigh field.
WaterType waterType
The DiveSettingsMessage FIT message's waterType field.
TissueModelType model
The DiveSettingsMessage FIT message's model field.
quint8 backlightBrightness
The DiveSettingsMessage FIT message's backlightBrightness field.
MessageIndex messageIndex
The DiveSettingsMessage FIT message's messageIndex field.
quint16 repeatDiveInterval
The DiveSettingsMessage FIT message's repeatDiveInterval field.
bool apneaCountdownEnabled
The DiveSettingsMessage FIT message's apneaCountdownEnabled field.
quint32 bottomTime
The DiveSettingsMessage FIT message's bottomTime field.
The DiveSettingsMessage class represents a FIT DiveSettingsMessage data message.
SourceType
Garmin FIT SourceType type.
Definition: types.h:2789
DiveBacklightMode
Garmin FIT DiveBacklightMode type.
Definition: types.h:5249
TissueModelType
Garmin FIT TissueModelType type.
Definition: types.h:5207
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
BacklightTimeout
Timeout in seconds.
Definition: types.h:1120
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
WaterType
Garmin FIT WaterType type.
Definition: types.h:5191