QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
monitoringmessage_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 MonitoringMessagePrivate class.
28  */
29 #ifndef QTFIT_MONITORINGMESSAGE_P_H
30 #define QTFIT_MONITORINGMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class MonitoringMessage;
37 
39 
40 public:
41  /*!
42  * The MonitoringMessage FIT message's timestamp field.
43  *
44  * Must align to logging interval, for example, time must be 00:00:00 for daily log.
45  */
47 
48  /*!
49  * The MonitoringMessage FIT message's deviceIndex field.
50  *
51  * Associates this data to device_info message. Not required for file with single device
52  * (sensor).
53  */
55 
56  /*!
57  * The MonitoringMessage FIT message's calories field.
58  *
59  * Accumulated total calories. Maintained by MonitoringReader for each activity_type. See SDK
60  * documentation
61  */
62  quint16 calories;
63 
64  /*!
65  * The MonitoringMessage FIT message's distance field.
66  *
67  * Accumulated distance. Maintained by MonitoringReader for each activity_type. See SDK
68  * documentation.
69  */
70  quint32 distance;
71 
72  /*!
73  * The MonitoringMessage FIT message's cycles field.
74  *
75  * Accumulated cycles. Maintained by MonitoringReader for each activity_type. See SDK
76  * documentation.
77  */
78  quint32 cycles;
79 
80  /*!
81  * The MonitoringMessage FIT message's activeTime field.
82  */
83  quint32 activeTime;
84 
85  /*!
86  * The MonitoringMessage FIT message's activityType field.
87  */
89 
90  /*!
91  * The MonitoringMessage FIT message's activitySubtype field.
92  */
94 
95  /*!
96  * The MonitoringMessage FIT message's activityLevel field.
97  */
99 
100  /*!
101  * The MonitoringMessage FIT message's distance16 field.
102  */
103  quint16 distance16;
104 
105  /*!
106  * The MonitoringMessage FIT message's cycles16 field.
107  */
108  quint16 cycles16;
109 
110  /*!
111  * The MonitoringMessage FIT message's activeTime16 field.
112  */
113  quint16 activeTime16;
114 
115  /*!
116  * The MonitoringMessage FIT message's localTimestamp field.
117  *
118  * Must align to logging interval, for example, time must be 00:00:00 for daily log.
119  */
121 
122  /*!
123  * The MonitoringMessage FIT message's temperature field.
124  *
125  * Avg temperature during the logging interval ended at timestamp
126  */
127  qint16 temperature;
128 
129  /*!
130  * The MonitoringMessage FIT message's temperatureMin field.
131  *
132  * Min temperature during the logging interval ended at timestamp
133  */
135 
136  /*!
137  * The MonitoringMessage FIT message's temperatureMax field.
138  *
139  * Max temperature during the logging interval ended at timestamp
140  */
142 
143  /*!
144  * The MonitoringMessage FIT message's activityTime field.
145  *
146  * Indexed using minute_activity_level enum
147  */
148  quint16 activityTime;
149 
150  /*!
151  * The MonitoringMessage FIT message's activeCalories field.
152  */
153  quint16 activeCalories;
154 
155  /*!
156  * The MonitoringMessage FIT message's currentActivityTypeIntensity field.
157  *
158  * Indicates single type / intensity for duration since last monitoring message.
159  */
161 
162  /*!
163  * The MonitoringMessage FIT message's timestampMin8 field.
164  */
166 
167  /*!
168  * The MonitoringMessage FIT message's timestamp16 field.
169  */
170  quint16 timestamp16;
171 
172  /*!
173  * The MonitoringMessage FIT message's heartRate field.
174  */
175  quint8 heartRate;
176 
177  /*!
178  * The MonitoringMessage FIT message's intensity field.
179  */
180  quint8 intensity;
181 
182  /*!
183  * The MonitoringMessage FIT message's durationMin field.
184  */
185  quint16 durationMin;
186 
187  /*!
188  * The MonitoringMessage FIT message's duration field.
189  */
190  quint32 duration;
191 
192  /*!
193  * The MonitoringMessage FIT message's ascent field.
194  */
195  quint32 ascent;
196 
197  /*!
198  * The MonitoringMessage FIT message's descent field.
199  */
200  quint32 descent;
201 
202  /*!
203  * The MonitoringMessage FIT message's moderateActivityMinutes field.
204  */
206 
207  /*!
208  * The MonitoringMessage FIT message's vigorousActivityMinutes field.
209  */
211 
212  MonitoringMessagePrivate() = delete;
213  explicit MonitoringMessagePrivate(MonitoringMessage * const q);
214  virtual ~MonitoringMessagePrivate();
215 
216 protected:
217  bool setField(const int fieldId, const QByteArray &data,
218  const FitBaseType baseType, const bool bigEndian) override;
219 
220 private:
221  Q_DECLARE_PUBLIC(MonitoringMessage)
222  Q_DISABLE_COPY(MonitoringMessagePrivate)
223 
224 };
225 
227 
228 #endif // QTFIT_MONITORINGMESSAGE_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.
quint16 distance16
The MonitoringMessage FIT message's distance16 field.
quint8 heartRate
The MonitoringMessage FIT message's heartRate field.
quint16 activeCalories
The MonitoringMessage FIT message's activeCalories field.
DeviceIndex deviceIndex
The MonitoringMessage FIT message's deviceIndex field.
quint8 timestampMin8
The MonitoringMessage FIT message's timestampMin8 field.
quint16 durationMin
The MonitoringMessage FIT message's durationMin field.
quint32 activeTime
The MonitoringMessage FIT message's activeTime field.
quint32 descent
The MonitoringMessage FIT message's descent field.
quint16 activeTime16
The MonitoringMessage FIT message's activeTime16 field.
quint16 vigorousActivityMinutes
The MonitoringMessage FIT message's vigorousActivityMinutes field.
quint32 ascent
The MonitoringMessage FIT message's ascent field.
quint32 cycles
The MonitoringMessage FIT message's cycles field.
qint16 temperatureMax
The MonitoringMessage FIT message's temperatureMax field.
ActivitySubtype activitySubtype
The MonitoringMessage FIT message's activitySubtype field.
quint8 currentActivityTypeIntensity
The MonitoringMessage FIT message's currentActivityTypeIntensity field.
ActivityType activityType
The MonitoringMessage FIT message's activityType field.
quint8 intensity
The MonitoringMessage FIT message's intensity field.
quint16 activityTime
The MonitoringMessage FIT message's activityTime field.
LocalDateTime localTimestamp
The MonitoringMessage FIT message's localTimestamp field.
quint16 moderateActivityMinutes
The MonitoringMessage FIT message's moderateActivityMinutes field.
qint16 temperature
The MonitoringMessage FIT message's temperature field.
quint16 timestamp16
The MonitoringMessage FIT message's timestamp16 field.
qint16 temperatureMin
The MonitoringMessage FIT message's temperatureMin field.
quint16 calories
The MonitoringMessage FIT message's calories field.
ActivityLevel activityLevel
The MonitoringMessage FIT message's activityLevel field.
quint32 distance
The MonitoringMessage FIT message's distance field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint32 duration
The MonitoringMessage FIT message's duration field.
quint16 cycles16
The MonitoringMessage FIT message's cycles16 field.
DateTime timestamp
The MonitoringMessage FIT message's timestamp field.
The MonitoringMessage class represents a FIT MonitoringMessage data message.
LocalDateTime
Seconds since 00:00 Dec 31 1989 in local time zone.
Definition: types.h:250
ActivityType
Garmin FIT ActivityType type.
Definition: types.h:2281
DeviceIndex
Garmin FIT DeviceIndex type.
Definition: types.h:278
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
ActivityLevel
Garmin FIT ActivityLevel type.
Definition: types.h:2334
ActivitySubtype
Garmin FIT ActivitySubtype type.
Definition: types.h:2302
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237