QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sessionmessage.cpp
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  * Defines the SessionMessage, and SessionMessagePrivate classes.
28  */
29 
30 #include "sessionmessage.h"
31 #include "sessionmessage_p.h"
32 
33 #include <QDebug>
34 #include <QtEndian>
35 
37 
38 /*!
39  * \class SessionMessage
40  *
41  * The SessionMessage class represents a FIT SessionMessage data message.
42  *
43  * \sa DataMessage
44  */
45 
46 /*!
47  * Constructs a SessionMessage object.
48  *
49  * Typically, instances of this class will be returned by FitStreamReader::readNext, but this
50  * constructor may be used, along with the relevant setter methods, to create a valid message.
51  */
53 {
54 
55 }
56 
57 /*!
58  * \internal
59  *
60  * Constructs a SessionMessage object with private implementation \a d.
61  *
62  * \param d Pointer to private implementation.
63  */
65 {
66 
67 }
68 
69 /*!
70  * Returns the SessionMessage data message's \c messageIndex field's current value.
71  *
72  * Selected bit is set for the current session.
73  *
74  * \return the \c messageIndex field value.
75  */
77 {
78  Q_D(const SessionMessage);
79  return d->messageIndex;
80 }
81 
82 /*!
83  * Returns the SessionMessage data message's \c timestamp field's current value.
84  *
85  * Sesson end time.
86  *
87  * \return the \c timestamp field value.
88  */
90 {
91  Q_D(const SessionMessage);
92  return d->timestamp;
93 }
94 
95 /*!
96  * Returns the SessionMessage data message's \c event field's current value.
97  *
98  * session
99  *
100  * \return the \c event field value.
101  */
103 {
104  Q_D(const SessionMessage);
105  return d->event;
106 }
107 
108 /*!
109  * Returns the SessionMessage data message's \c eventType field's current value.
110  *
111  * stop
112  *
113  * \return the \c eventType field value.
114  */
116 {
117  Q_D(const SessionMessage);
118  return d->eventType;
119 }
120 
121 /*!
122  * Returns the SessionMessage data message's \c startTime field's current value.
123  *
124  * \return the \c startTime field value.
125  */
127 {
128  Q_D(const SessionMessage);
129  return d->startTime;
130 }
131 
132 /*!
133  * Returns the SessionMessage data message's \c startPositionLat field's current value.
134  *
135  * \return the \c startPositionLat field value.
136  */
138 {
139  Q_D(const SessionMessage);
140  return d->startPositionLat;
141 }
142 
143 /*!
144  * Returns the SessionMessage data message's \c startPositionLong field's current value.
145  *
146  * \return the \c startPositionLong field value.
147  */
149 {
150  Q_D(const SessionMessage);
151  return d->startPositionLong;
152 }
153 
154 /*!
155  * Returns the SessionMessage data message's \c sport field's current value.
156  *
157  * \return the \c sport field value.
158  */
160 {
161  Q_D(const SessionMessage);
162  return d->sport;
163 }
164 
165 /*!
166  * Returns the SessionMessage data message's \c subSport field's current value.
167  *
168  * \return the \c subSport field value.
169  */
171 {
172  Q_D(const SessionMessage);
173  return d->subSport;
174 }
175 
176 /*!
177  * Returns the SessionMessage data message's \c totalElapsedTime field's current value.
178  *
179  * Time (includes pauses)
180  *
181  * \return the \c totalElapsedTime field value.
182  */
184 {
185  Q_D(const SessionMessage);
186  return d->totalElapsedTime;
187 }
188 
189 /*!
190  * Returns the SessionMessage data message's \c totalTimerTime field's current value.
191  *
192  * Timer Time (excludes pauses)
193  *
194  * \return the \c totalTimerTime field value.
195  */
197 {
198  Q_D(const SessionMessage);
199  return d->totalTimerTime;
200 }
201 
202 /*!
203  * Returns the SessionMessage data message's \c totalDistance field's current value.
204  *
205  * \return the \c totalDistance field value.
206  */
208 {
209  Q_D(const SessionMessage);
210  return d->totalDistance;
211 }
212 
213 /*!
214  * Returns the SessionMessage data message's \c totalCycles field's current value.
215  *
216  * \return the \c totalCycles field value.
217  */
219 {
220  Q_D(const SessionMessage);
221  return d->totalCycles;
222 }
223 
224 /*!
225  * Returns the SessionMessage data message's \c totalCalories field's current value.
226  *
227  * \return the \c totalCalories field value.
228  */
230 {
231  Q_D(const SessionMessage);
232  return d->totalCalories;
233 }
234 
235 /*!
236  * Returns the SessionMessage data message's \c totalFatCalories field's current value.
237  *
238  * \return the \c totalFatCalories field value.
239  */
241 {
242  Q_D(const SessionMessage);
243  return d->totalFatCalories;
244 }
245 
246 /*!
247  * Returns the SessionMessage data message's \c avgSpeed field's current value.
248  *
249  * total_distance / total_timer_time
250  *
251  * \return the \c avgSpeed field value.
252  */
254 {
255  Q_D(const SessionMessage);
256  return d->avgSpeed;
257 }
258 
259 /*!
260  * Returns the SessionMessage data message's \c maxSpeed field's current value.
261  *
262  * \return the \c maxSpeed field value.
263  */
265 {
266  Q_D(const SessionMessage);
267  return d->maxSpeed;
268 }
269 
270 /*!
271  * Returns the SessionMessage data message's \c avgHeartRate field's current value.
272  *
273  * average heart rate (excludes pause time)
274  *
275  * \return the \c avgHeartRate field value.
276  */
278 {
279  Q_D(const SessionMessage);
280  return d->avgHeartRate;
281 }
282 
283 /*!
284  * Returns the SessionMessage data message's \c maxHeartRate field's current value.
285  *
286  * \return the \c maxHeartRate field value.
287  */
289 {
290  Q_D(const SessionMessage);
291  return d->maxHeartRate;
292 }
293 
294 /*!
295  * Returns the SessionMessage data message's \c avgCadence field's current value.
296  *
297  * total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles /
298  * total_elapsed_time
299  *
300  * \return the \c avgCadence field value.
301  */
303 {
304  Q_D(const SessionMessage);
305  return d->avgCadence;
306 }
307 
308 /*!
309  * Returns the SessionMessage data message's \c maxCadence field's current value.
310  *
311  * \return the \c maxCadence field value.
312  */
314 {
315  Q_D(const SessionMessage);
316  return d->maxCadence;
317 }
318 
319 /*!
320  * Returns the SessionMessage data message's \c avgPower field's current value.
321  *
322  * total_power / total_timer_time if non_zero_avg_power otherwise total_power /
323  * total_elapsed_time
324  *
325  * \return the \c avgPower field value.
326  */
328 {
329  Q_D(const SessionMessage);
330  return d->avgPower;
331 }
332 
333 /*!
334  * Returns the SessionMessage data message's \c maxPower field's current value.
335  *
336  * \return the \c maxPower field value.
337  */
339 {
340  Q_D(const SessionMessage);
341  return d->maxPower;
342 }
343 
344 /*!
345  * Returns the SessionMessage data message's \c totalAscent field's current value.
346  *
347  * \return the \c totalAscent field value.
348  */
350 {
351  Q_D(const SessionMessage);
352  return d->totalAscent;
353 }
354 
355 /*!
356  * Returns the SessionMessage data message's \c totalDescent field's current value.
357  *
358  * \return the \c totalDescent field value.
359  */
361 {
362  Q_D(const SessionMessage);
363  return d->totalDescent;
364 }
365 
366 /*!
367  * Returns the SessionMessage data message's \c totalTrainingEffect field's current value.
368  *
369  * \return the \c totalTrainingEffect field value.
370  */
372 {
373  Q_D(const SessionMessage);
374  return d->totalTrainingEffect;
375 }
376 
377 /*!
378  * Returns the SessionMessage data message's \c firstLapIndex field's current value.
379  *
380  * \return the \c firstLapIndex field value.
381  */
383 {
384  Q_D(const SessionMessage);
385  return d->firstLapIndex;
386 }
387 
388 /*!
389  * Returns the SessionMessage data message's \c numLaps field's current value.
390  *
391  * \return the \c numLaps field value.
392  */
393 quint16 SessionMessage::numLaps() const
394 {
395  Q_D(const SessionMessage);
396  return d->numLaps;
397 }
398 
399 /*!
400  * Returns the SessionMessage data message's \c eventGroup field's current value.
401  *
402  * \return the \c eventGroup field value.
403  */
405 {
406  Q_D(const SessionMessage);
407  return d->eventGroup;
408 }
409 
410 /*!
411  * Returns the SessionMessage data message's \c trigger field's current value.
412  *
413  * \return the \c trigger field value.
414  */
416 {
417  Q_D(const SessionMessage);
418  return d->trigger;
419 }
420 
421 /*!
422  * Returns the SessionMessage data message's \c necLat field's current value.
423  *
424  * North east corner latitude
425  *
426  * \return the \c necLat field value.
427  */
429 {
430  Q_D(const SessionMessage);
431  return d->necLat;
432 }
433 
434 /*!
435  * Returns the SessionMessage data message's \c necLong field's current value.
436  *
437  * North east corner longitude
438  *
439  * \return the \c necLong field value.
440  */
442 {
443  Q_D(const SessionMessage);
444  return d->necLong;
445 }
446 
447 /*!
448  * Returns the SessionMessage data message's \c swcLat field's current value.
449  *
450  * South west corner latitude
451  *
452  * \return the \c swcLat field value.
453  */
455 {
456  Q_D(const SessionMessage);
457  return d->swcLat;
458 }
459 
460 /*!
461  * Returns the SessionMessage data message's \c swcLong field's current value.
462  *
463  * South west corner longitude
464  *
465  * \return the \c swcLong field value.
466  */
468 {
469  Q_D(const SessionMessage);
470  return d->swcLong;
471 }
472 
473 /*!
474  * Returns the SessionMessage data message's \c numLengths field's current value.
475  *
476  * # of lengths of swim pool
477  *
478  * \return the \c numLengths field value.
479  */
481 {
482  Q_D(const SessionMessage);
483  return d->numLengths;
484 }
485 
486 /*!
487  * Returns the SessionMessage data message's \c normalizedPower field's current value.
488  *
489  * \return the \c normalizedPower field value.
490  */
492 {
493  Q_D(const SessionMessage);
494  return d->normalizedPower;
495 }
496 
497 /*!
498  * Returns the SessionMessage data message's \c trainingStressScore field's current value.
499  *
500  * \return the \c trainingStressScore field value.
501  */
503 {
504  Q_D(const SessionMessage);
505  return d->trainingStressScore;
506 }
507 
508 /*!
509  * Returns the SessionMessage data message's \c intensityFactor field's current value.
510  *
511  * \return the \c intensityFactor field value.
512  */
514 {
515  Q_D(const SessionMessage);
516  return d->intensityFactor;
517 }
518 
519 /*!
520  * Returns the SessionMessage data message's \c leftRightBalance field's current value.
521  *
522  * \return the \c leftRightBalance field value.
523  */
525 {
526  Q_D(const SessionMessage);
527  return d->leftRightBalance;
528 }
529 
530 /*!
531  * Returns the SessionMessage data message's \c avgStrokeCount field's current value.
532  *
533  * \return the \c avgStrokeCount field value.
534  */
536 {
537  Q_D(const SessionMessage);
538  return d->avgStrokeCount;
539 }
540 
541 /*!
542  * Returns the SessionMessage data message's \c avgStrokeDistance field's current value.
543  *
544  * \return the \c avgStrokeDistance field value.
545  */
547 {
548  Q_D(const SessionMessage);
549  return d->avgStrokeDistance;
550 }
551 
552 /*!
553  * Returns the SessionMessage data message's \c swimStroke field's current value.
554  *
555  * \return the \c swimStroke field value.
556  */
558 {
559  Q_D(const SessionMessage);
560  return d->swimStroke;
561 }
562 
563 /*!
564  * Returns the SessionMessage data message's \c poolLength field's current value.
565  *
566  * \return the \c poolLength field value.
567  */
569 {
570  Q_D(const SessionMessage);
571  return d->poolLength;
572 }
573 
574 /*!
575  * Returns the SessionMessage data message's \c thresholdPower field's current value.
576  *
577  * \return the \c thresholdPower field value.
578  */
580 {
581  Q_D(const SessionMessage);
582  return d->thresholdPower;
583 }
584 
585 /*!
586  * Returns the SessionMessage data message's \c poolLengthUnit field's current value.
587  *
588  * \return the \c poolLengthUnit field value.
589  */
591 {
592  Q_D(const SessionMessage);
593  return d->poolLengthUnit;
594 }
595 
596 /*!
597  * Returns the SessionMessage data message's \c numActiveLengths field's current value.
598  *
599  * # of active lengths of swim pool
600  *
601  * \return the \c numActiveLengths field value.
602  */
604 {
605  Q_D(const SessionMessage);
606  return d->numActiveLengths;
607 }
608 
609 /*!
610  * Returns the SessionMessage data message's \c totalWork field's current value.
611  *
612  * \return the \c totalWork field value.
613  */
615 {
616  Q_D(const SessionMessage);
617  return d->totalWork;
618 }
619 
620 /*!
621  * Returns the SessionMessage data message's \c avgAltitude field's current value.
622  *
623  * \return the \c avgAltitude field value.
624  */
626 {
627  Q_D(const SessionMessage);
628  return d->avgAltitude;
629 }
630 
631 /*!
632  * Returns the SessionMessage data message's \c maxAltitude field's current value.
633  *
634  * \return the \c maxAltitude field value.
635  */
637 {
638  Q_D(const SessionMessage);
639  return d->maxAltitude;
640 }
641 
642 /*!
643  * Returns the SessionMessage data message's \c gpsAccuracy field's current value.
644  *
645  * \return the \c gpsAccuracy field value.
646  */
648 {
649  Q_D(const SessionMessage);
650  return d->gpsAccuracy;
651 }
652 
653 /*!
654  * Returns the SessionMessage data message's \c avgGrade field's current value.
655  *
656  * \return the \c avgGrade field value.
657  */
659 {
660  Q_D(const SessionMessage);
661  return d->avgGrade;
662 }
663 
664 /*!
665  * Returns the SessionMessage data message's \c avgPosGrade field's current value.
666  *
667  * \return the \c avgPosGrade field value.
668  */
670 {
671  Q_D(const SessionMessage);
672  return d->avgPosGrade;
673 }
674 
675 /*!
676  * Returns the SessionMessage data message's \c avgNegGrade field's current value.
677  *
678  * \return the \c avgNegGrade field value.
679  */
681 {
682  Q_D(const SessionMessage);
683  return d->avgNegGrade;
684 }
685 
686 /*!
687  * Returns the SessionMessage data message's \c maxPosGrade field's current value.
688  *
689  * \return the \c maxPosGrade field value.
690  */
692 {
693  Q_D(const SessionMessage);
694  return d->maxPosGrade;
695 }
696 
697 /*!
698  * Returns the SessionMessage data message's \c maxNegGrade field's current value.
699  *
700  * \return the \c maxNegGrade field value.
701  */
703 {
704  Q_D(const SessionMessage);
705  return d->maxNegGrade;
706 }
707 
708 /*!
709  * Returns the SessionMessage data message's \c avgTemperature field's current value.
710  *
711  * \return the \c avgTemperature field value.
712  */
714 {
715  Q_D(const SessionMessage);
716  return d->avgTemperature;
717 }
718 
719 /*!
720  * Returns the SessionMessage data message's \c maxTemperature field's current value.
721  *
722  * \return the \c maxTemperature field value.
723  */
725 {
726  Q_D(const SessionMessage);
727  return d->maxTemperature;
728 }
729 
730 /*!
731  * Returns the SessionMessage data message's \c totalMovingTime field's current value.
732  *
733  * \return the \c totalMovingTime field value.
734  */
736 {
737  Q_D(const SessionMessage);
738  return d->totalMovingTime;
739 }
740 
741 /*!
742  * Returns the SessionMessage data message's \c avgPosVerticalSpeed field's current value.
743  *
744  * \return the \c avgPosVerticalSpeed field value.
745  */
747 {
748  Q_D(const SessionMessage);
749  return d->avgPosVerticalSpeed;
750 }
751 
752 /*!
753  * Returns the SessionMessage data message's \c avgNegVerticalSpeed field's current value.
754  *
755  * \return the \c avgNegVerticalSpeed field value.
756  */
758 {
759  Q_D(const SessionMessage);
760  return d->avgNegVerticalSpeed;
761 }
762 
763 /*!
764  * Returns the SessionMessage data message's \c maxPosVerticalSpeed field's current value.
765  *
766  * \return the \c maxPosVerticalSpeed field value.
767  */
769 {
770  Q_D(const SessionMessage);
771  return d->maxPosVerticalSpeed;
772 }
773 
774 /*!
775  * Returns the SessionMessage data message's \c maxNegVerticalSpeed field's current value.
776  *
777  * \return the \c maxNegVerticalSpeed field value.
778  */
780 {
781  Q_D(const SessionMessage);
782  return d->maxNegVerticalSpeed;
783 }
784 
785 /*!
786  * Returns the SessionMessage data message's \c minHeartRate field's current value.
787  *
788  * \return the \c minHeartRate field value.
789  */
791 {
792  Q_D(const SessionMessage);
793  return d->minHeartRate;
794 }
795 
796 /*!
797  * Returns the SessionMessage data message's \c timeInHrZone field's current value.
798  *
799  * \return the \c timeInHrZone field value.
800  */
802 {
803  Q_D(const SessionMessage);
804  return d->timeInHrZone;
805 }
806 
807 /*!
808  * Returns the SessionMessage data message's \c timeInSpeedZone field's current value.
809  *
810  * \return the \c timeInSpeedZone field value.
811  */
813 {
814  Q_D(const SessionMessage);
815  return d->timeInSpeedZone;
816 }
817 
818 /*!
819  * Returns the SessionMessage data message's \c timeInCadenceZone field's current value.
820  *
821  * \return the \c timeInCadenceZone field value.
822  */
824 {
825  Q_D(const SessionMessage);
826  return d->timeInCadenceZone;
827 }
828 
829 /*!
830  * Returns the SessionMessage data message's \c timeInPowerZone field's current value.
831  *
832  * \return the \c timeInPowerZone field value.
833  */
835 {
836  Q_D(const SessionMessage);
837  return d->timeInPowerZone;
838 }
839 
840 /*!
841  * Returns the SessionMessage data message's \c avgLapTime field's current value.
842  *
843  * \return the \c avgLapTime field value.
844  */
846 {
847  Q_D(const SessionMessage);
848  return d->avgLapTime;
849 }
850 
851 /*!
852  * Returns the SessionMessage data message's \c bestLapIndex field's current value.
853  *
854  * \return the \c bestLapIndex field value.
855  */
857 {
858  Q_D(const SessionMessage);
859  return d->bestLapIndex;
860 }
861 
862 /*!
863  * Returns the SessionMessage data message's \c minAltitude field's current value.
864  *
865  * \return the \c minAltitude field value.
866  */
868 {
869  Q_D(const SessionMessage);
870  return d->minAltitude;
871 }
872 
873 /*!
874  * Returns the SessionMessage data message's \c playerScore field's current value.
875  *
876  * \return the \c playerScore field value.
877  */
879 {
880  Q_D(const SessionMessage);
881  return d->playerScore;
882 }
883 
884 /*!
885  * Returns the SessionMessage data message's \c opponentScore field's current value.
886  *
887  * \return the \c opponentScore field value.
888  */
890 {
891  Q_D(const SessionMessage);
892  return d->opponentScore;
893 }
894 
895 /*!
896  * Returns the SessionMessage data message's \c opponentName field's current value.
897  *
898  * \return the \c opponentName field value.
899  */
901 {
902  Q_D(const SessionMessage);
903  return d->opponentName;
904 }
905 
906 /*!
907  * Returns the SessionMessage data message's \c strokeCount field's current value.
908  *
909  * stroke_type enum used as the index
910  *
911  * \return the \c strokeCount field value.
912  */
914 {
915  Q_D(const SessionMessage);
916  return d->strokeCount;
917 }
918 
919 /*!
920  * Returns the SessionMessage data message's \c zoneCount field's current value.
921  *
922  * zone number used as the index
923  *
924  * \return the \c zoneCount field value.
925  */
927 {
928  Q_D(const SessionMessage);
929  return d->zoneCount;
930 }
931 
932 /*!
933  * Returns the SessionMessage data message's \c maxBallSpeed field's current value.
934  *
935  * \return the \c maxBallSpeed field value.
936  */
938 {
939  Q_D(const SessionMessage);
940  return d->maxBallSpeed;
941 }
942 
943 /*!
944  * Returns the SessionMessage data message's \c avgBallSpeed field's current value.
945  *
946  * \return the \c avgBallSpeed field value.
947  */
949 {
950  Q_D(const SessionMessage);
951  return d->avgBallSpeed;
952 }
953 
954 /*!
955  * Returns the SessionMessage data message's \c avgVerticalOscillation field's current value.
956  *
957  * \return the \c avgVerticalOscillation field value.
958  */
960 {
961  Q_D(const SessionMessage);
962  return d->avgVerticalOscillation;
963 }
964 
965 /*!
966  * Returns the SessionMessage data message's \c avgStanceTimePercent field's current value.
967  *
968  * \return the \c avgStanceTimePercent field value.
969  */
971 {
972  Q_D(const SessionMessage);
973  return d->avgStanceTimePercent;
974 }
975 
976 /*!
977  * Returns the SessionMessage data message's \c avgStanceTime field's current value.
978  *
979  * \return the \c avgStanceTime field value.
980  */
982 {
983  Q_D(const SessionMessage);
984  return d->avgStanceTime;
985 }
986 
987 /*!
988  * Returns the SessionMessage data message's \c avgFractionalCadence field's current value.
989  *
990  * fractional part of the avg_cadence
991  *
992  * \return the \c avgFractionalCadence field value.
993  */
995 {
996  Q_D(const SessionMessage);
997  return d->avgFractionalCadence;
998 }
999 
1000 /*!
1001  * Returns the SessionMessage data message's \c maxFractionalCadence field's current value.
1002  *
1003  * fractional part of the max_cadence
1004  *
1005  * \return the \c maxFractionalCadence field value.
1006  */
1008 {
1009  Q_D(const SessionMessage);
1010  return d->maxFractionalCadence;
1011 }
1012 
1013 /*!
1014  * Returns the SessionMessage data message's \c totalFractionalCycles field's current value.
1015  *
1016  * fractional part of the total_cycles
1017  *
1018  * \return the \c totalFractionalCycles field value.
1019  */
1021 {
1022  Q_D(const SessionMessage);
1023  return d->totalFractionalCycles;
1024 }
1025 
1026 /*!
1027  * Returns the SessionMessage data message's \c avgTotalHemoglobinConc field's current value.
1028  *
1029  * Avg saturated and unsaturated hemoglobin
1030  *
1031  * \return the \c avgTotalHemoglobinConc field value.
1032  */
1034 {
1035  Q_D(const SessionMessage);
1036  return d->avgTotalHemoglobinConc;
1037 }
1038 
1039 /*!
1040  * Returns the SessionMessage data message's \c minTotalHemoglobinConc field's current value.
1041  *
1042  * Min saturated and unsaturated hemoglobin
1043  *
1044  * \return the \c minTotalHemoglobinConc field value.
1045  */
1047 {
1048  Q_D(const SessionMessage);
1049  return d->minTotalHemoglobinConc;
1050 }
1051 
1052 /*!
1053  * Returns the SessionMessage data message's \c maxTotalHemoglobinConc field's current value.
1054  *
1055  * Max saturated and unsaturated hemoglobin
1056  *
1057  * \return the \c maxTotalHemoglobinConc field value.
1058  */
1060 {
1061  Q_D(const SessionMessage);
1062  return d->maxTotalHemoglobinConc;
1063 }
1064 
1065 /*!
1066  * Returns the SessionMessage data message's \c avgSaturatedHemoglobinPercent field's current value.
1067  *
1068  * Avg percentage of hemoglobin saturated with oxygen
1069  *
1070  * \return the \c avgSaturatedHemoglobinPercent field value.
1071  */
1073 {
1074  Q_D(const SessionMessage);
1075  return d->avgSaturatedHemoglobinPercent;
1076 }
1077 
1078 /*!
1079  * Returns the SessionMessage data message's \c minSaturatedHemoglobinPercent field's current value.
1080  *
1081  * Min percentage of hemoglobin saturated with oxygen
1082  *
1083  * \return the \c minSaturatedHemoglobinPercent field value.
1084  */
1086 {
1087  Q_D(const SessionMessage);
1088  return d->minSaturatedHemoglobinPercent;
1089 }
1090 
1091 /*!
1092  * Returns the SessionMessage data message's \c maxSaturatedHemoglobinPercent field's current value.
1093  *
1094  * Max percentage of hemoglobin saturated with oxygen
1095  *
1096  * \return the \c maxSaturatedHemoglobinPercent field value.
1097  */
1099 {
1100  Q_D(const SessionMessage);
1101  return d->maxSaturatedHemoglobinPercent;
1102 }
1103 
1104 /*!
1105  * Returns the SessionMessage data message's \c avgLeftTorqueEffectiveness field's current value.
1106  *
1107  * \return the \c avgLeftTorqueEffectiveness field value.
1108  */
1110 {
1111  Q_D(const SessionMessage);
1112  return d->avgLeftTorqueEffectiveness;
1113 }
1114 
1115 /*!
1116  * Returns the SessionMessage data message's \c avgRightTorqueEffectiveness field's current value.
1117  *
1118  * \return the \c avgRightTorqueEffectiveness field value.
1119  */
1121 {
1122  Q_D(const SessionMessage);
1123  return d->avgRightTorqueEffectiveness;
1124 }
1125 
1126 /*!
1127  * Returns the SessionMessage data message's \c avgLeftPedalSmoothness field's current value.
1128  *
1129  * \return the \c avgLeftPedalSmoothness field value.
1130  */
1132 {
1133  Q_D(const SessionMessage);
1134  return d->avgLeftPedalSmoothness;
1135 }
1136 
1137 /*!
1138  * Returns the SessionMessage data message's \c avgRightPedalSmoothness field's current value.
1139  *
1140  * \return the \c avgRightPedalSmoothness field value.
1141  */
1143 {
1144  Q_D(const SessionMessage);
1145  return d->avgRightPedalSmoothness;
1146 }
1147 
1148 /*!
1149  * Returns the SessionMessage data message's \c avgCombinedPedalSmoothness field's current value.
1150  *
1151  * \return the \c avgCombinedPedalSmoothness field value.
1152  */
1154 {
1155  Q_D(const SessionMessage);
1156  return d->avgCombinedPedalSmoothness;
1157 }
1158 
1159 /*!
1160  * Returns the SessionMessage data message's \c sportIndex field's current value.
1161  *
1162  * \return the \c sportIndex field value.
1163  */
1165 {
1166  Q_D(const SessionMessage);
1167  return d->sportIndex;
1168 }
1169 
1170 /*!
1171  * Returns the SessionMessage data message's \c timeStanding field's current value.
1172  *
1173  * Total time spend in the standing position
1174  *
1175  * \return the \c timeStanding field value.
1176  */
1178 {
1179  Q_D(const SessionMessage);
1180  return d->timeStanding;
1181 }
1182 
1183 /*!
1184  * Returns the SessionMessage data message's \c standCount field's current value.
1185  *
1186  * Number of transitions to the standing state
1187  *
1188  * \return the \c standCount field value.
1189  */
1191 {
1192  Q_D(const SessionMessage);
1193  return d->standCount;
1194 }
1195 
1196 /*!
1197  * Returns the SessionMessage data message's \c avgLeftPco field's current value.
1198  *
1199  * Average platform center offset Left
1200  *
1201  * \return the \c avgLeftPco field value.
1202  */
1204 {
1205  Q_D(const SessionMessage);
1206  return d->avgLeftPco;
1207 }
1208 
1209 /*!
1210  * Returns the SessionMessage data message's \c avgRightPco field's current value.
1211  *
1212  * Average platform center offset Right
1213  *
1214  * \return the \c avgRightPco field value.
1215  */
1217 {
1218  Q_D(const SessionMessage);
1219  return d->avgRightPco;
1220 }
1221 
1222 /*!
1223  * Returns the SessionMessage data message's \c avgLeftPowerPhase field's current value.
1224  *
1225  * Average left power phase angles. Indexes defined by power_phase_type.
1226  *
1227  * \return the \c avgLeftPowerPhase field value.
1228  */
1230 {
1231  Q_D(const SessionMessage);
1232  return d->avgLeftPowerPhase;
1233 }
1234 
1235 /*!
1236  * Returns the SessionMessage data message's \c avgLeftPowerPhasePeak field's current value.
1237  *
1238  * Average left power phase peak angles. Data value indexes defined by power_phase_type.
1239  *
1240  * \return the \c avgLeftPowerPhasePeak field value.
1241  */
1243 {
1244  Q_D(const SessionMessage);
1245  return d->avgLeftPowerPhasePeak;
1246 }
1247 
1248 /*!
1249  * Returns the SessionMessage data message's \c avgRightPowerPhase field's current value.
1250  *
1251  * Average right power phase angles. Data value indexes defined by power_phase_type.
1252  *
1253  * \return the \c avgRightPowerPhase field value.
1254  */
1256 {
1257  Q_D(const SessionMessage);
1258  return d->avgRightPowerPhase;
1259 }
1260 
1261 /*!
1262  * Returns the SessionMessage data message's \c avgRightPowerPhasePeak field's current value.
1263  *
1264  * Average right power phase peak angles data value indexes defined by power_phase_type.
1265  *
1266  * \return the \c avgRightPowerPhasePeak field value.
1267  */
1269 {
1270  Q_D(const SessionMessage);
1271  return d->avgRightPowerPhasePeak;
1272 }
1273 
1274 /*!
1275  * Returns the SessionMessage data message's \c avgPowerPosition field's current value.
1276  *
1277  * Average power by position. Data value indexes defined by rider_position_type.
1278  *
1279  * \return the \c avgPowerPosition field value.
1280  */
1282 {
1283  Q_D(const SessionMessage);
1284  return d->avgPowerPosition;
1285 }
1286 
1287 /*!
1288  * Returns the SessionMessage data message's \c maxPowerPosition field's current value.
1289  *
1290  * Maximum power by position. Data value indexes defined by rider_position_type.
1291  *
1292  * \return the \c maxPowerPosition field value.
1293  */
1295 {
1296  Q_D(const SessionMessage);
1297  return d->maxPowerPosition;
1298 }
1299 
1300 /*!
1301  * Returns the SessionMessage data message's \c avgCadencePosition field's current value.
1302  *
1303  * Average cadence by position. Data value indexes defined by rider_position_type.
1304  *
1305  * \return the \c avgCadencePosition field value.
1306  */
1308 {
1309  Q_D(const SessionMessage);
1310  return d->avgCadencePosition;
1311 }
1312 
1313 /*!
1314  * Returns the SessionMessage data message's \c maxCadencePosition field's current value.
1315  *
1316  * Maximum cadence by position. Data value indexes defined by rider_position_type.
1317  *
1318  * \return the \c maxCadencePosition field value.
1319  */
1321 {
1322  Q_D(const SessionMessage);
1323  return d->maxCadencePosition;
1324 }
1325 
1326 /*!
1327  * Returns the SessionMessage data message's \c enhancedAvgSpeed field's current value.
1328  *
1329  * total_distance / total_timer_time
1330  *
1331  * \return the \c enhancedAvgSpeed field value.
1332  */
1334 {
1335  Q_D(const SessionMessage);
1336  return d->enhancedAvgSpeed;
1337 }
1338 
1339 /*!
1340  * Returns the SessionMessage data message's \c enhancedMaxSpeed field's current value.
1341  *
1342  * \return the \c enhancedMaxSpeed field value.
1343  */
1345 {
1346  Q_D(const SessionMessage);
1347  return d->enhancedMaxSpeed;
1348 }
1349 
1350 /*!
1351  * Returns the SessionMessage data message's \c enhancedAvgAltitude field's current value.
1352  *
1353  * \return the \c enhancedAvgAltitude field value.
1354  */
1356 {
1357  Q_D(const SessionMessage);
1358  return d->enhancedAvgAltitude;
1359 }
1360 
1361 /*!
1362  * Returns the SessionMessage data message's \c enhancedMinAltitude field's current value.
1363  *
1364  * \return the \c enhancedMinAltitude field value.
1365  */
1367 {
1368  Q_D(const SessionMessage);
1369  return d->enhancedMinAltitude;
1370 }
1371 
1372 /*!
1373  * Returns the SessionMessage data message's \c enhancedMaxAltitude field's current value.
1374  *
1375  * \return the \c enhancedMaxAltitude field value.
1376  */
1378 {
1379  Q_D(const SessionMessage);
1380  return d->enhancedMaxAltitude;
1381 }
1382 
1383 /*!
1384  * Returns the SessionMessage data message's \c avgLevMotorPower field's current value.
1385  *
1386  * lev average motor power during session
1387  *
1388  * \return the \c avgLevMotorPower field value.
1389  */
1391 {
1392  Q_D(const SessionMessage);
1393  return d->avgLevMotorPower;
1394 }
1395 
1396 /*!
1397  * Returns the SessionMessage data message's \c maxLevMotorPower field's current value.
1398  *
1399  * lev maximum motor power during session
1400  *
1401  * \return the \c maxLevMotorPower field value.
1402  */
1404 {
1405  Q_D(const SessionMessage);
1406  return d->maxLevMotorPower;
1407 }
1408 
1409 /*!
1410  * Returns the SessionMessage data message's \c levBatteryConsumption field's current value.
1411  *
1412  * lev battery consumption during session
1413  *
1414  * \return the \c levBatteryConsumption field value.
1415  */
1417 {
1418  Q_D(const SessionMessage);
1419  return d->levBatteryConsumption;
1420 }
1421 
1422 /*!
1423  * Returns the SessionMessage data message's \c avgVerticalRatio field's current value.
1424  *
1425  * \return the \c avgVerticalRatio field value.
1426  */
1428 {
1429  Q_D(const SessionMessage);
1430  return d->avgVerticalRatio;
1431 }
1432 
1433 /*!
1434  * Returns the SessionMessage data message's \c avgStanceTimeBalance field's current value.
1435  *
1436  * \return the \c avgStanceTimeBalance field value.
1437  */
1439 {
1440  Q_D(const SessionMessage);
1441  return d->avgStanceTimeBalance;
1442 }
1443 
1444 /*!
1445  * Returns the SessionMessage data message's \c avgStepLength field's current value.
1446  *
1447  * \return the \c avgStepLength field value.
1448  */
1450 {
1451  Q_D(const SessionMessage);
1452  return d->avgStepLength;
1453 }
1454 
1455 /*!
1456  * Returns the SessionMessage data message's \c totalAnaerobicTrainingEffect field's current value.
1457  *
1458  * \return the \c totalAnaerobicTrainingEffect field value.
1459  */
1461 {
1462  Q_D(const SessionMessage);
1463  return d->totalAnaerobicTrainingEffect;
1464 }
1465 
1466 /*!
1467  * Returns the SessionMessage data message's \c avgVam field's current value.
1468  *
1469  * \return the \c avgVam field value.
1470  */
1471 quint16 SessionMessage::avgVam() const
1472 {
1473  Q_D(const SessionMessage);
1474  return d->avgVam;
1475 }
1476 
1477 /*!
1478  * Returns the SessionMessage data message's \c totalGrit field's current value.
1479  *
1480  * The grit score estimates how challenging a route could be for a cyclist in terms of time
1481  * spent going over sharp turns or large grade slopes.
1482  *
1483  * \return the \c totalGrit field value.
1484  */
1486 {
1487  Q_D(const SessionMessage);
1488  return d->totalGrit;
1489 }
1490 
1491 /*!
1492  * Returns the SessionMessage data message's \c totalFlow field's current value.
1493  *
1494  * The flow score estimates how long distance wise a cyclist deaccelerates over intervals where
1495  * deacceleration is unnecessary such as smooth turns or small grade angle intervals.
1496  *
1497  * \return the \c totalFlow field value.
1498  */
1500 {
1501  Q_D(const SessionMessage);
1502  return d->totalFlow;
1503 }
1504 
1505 /*!
1506  * Returns the SessionMessage data message's \c jumpCount field's current value.
1507  *
1508  * \return the \c jumpCount field value.
1509  */
1511 {
1512  Q_D(const SessionMessage);
1513  return d->jumpCount;
1514 }
1515 
1516 /*!
1517  * Returns the SessionMessage data message's \c avgGrit field's current value.
1518  *
1519  * The grit score estimates how challenging a route could be for a cyclist in terms of time
1520  * spent going over sharp turns or large grade slopes.
1521  *
1522  * \return the \c avgGrit field value.
1523  */
1525 {
1526  Q_D(const SessionMessage);
1527  return d->avgGrit;
1528 }
1529 
1530 /*!
1531  * Returns the SessionMessage data message's \c avgFlow field's current value.
1532  *
1533  * The flow score estimates how long distance wise a cyclist deaccelerates over intervals where
1534  * deacceleration is unnecessary such as smooth turns or small grade angle intervals.
1535  *
1536  * \return the \c avgFlow field value.
1537  */
1539 {
1540  Q_D(const SessionMessage);
1541  return d->avgFlow;
1542 }
1543 
1544 /*!
1545  * Returns the SessionMessage data message's \c totalFractionalAscent field's current value.
1546  *
1547  * fractional part of total_ascent
1548  *
1549  * \return the \c totalFractionalAscent field value.
1550  */
1552 {
1553  Q_D(const SessionMessage);
1554  return d->totalFractionalAscent;
1555 }
1556 
1557 /*!
1558  * Returns the SessionMessage data message's \c totalFractionalDescent field's current value.
1559  *
1560  * fractional part of total_descent
1561  *
1562  * \return the \c totalFractionalDescent field value.
1563  */
1565 {
1566  Q_D(const SessionMessage);
1567  return d->totalFractionalDescent;
1568 }
1569 
1570 /*!
1571  * Returns the SessionMessage data message's \c avgCoreTemperature field's current value.
1572  *
1573  * \return the \c avgCoreTemperature field value.
1574  */
1576 {
1577  Q_D(const SessionMessage);
1578  return d->avgCoreTemperature;
1579 }
1580 
1581 /*!
1582  * Returns the SessionMessage data message's \c minCoreTemperature field's current value.
1583  *
1584  * \return the \c minCoreTemperature field value.
1585  */
1587 {
1588  Q_D(const SessionMessage);
1589  return d->minCoreTemperature;
1590 }
1591 
1592 /*!
1593  * Returns the SessionMessage data message's \c maxCoreTemperature field's current value.
1594  *
1595  * \return the \c maxCoreTemperature field value.
1596  */
1598 {
1599  Q_D(const SessionMessage);
1600  return d->maxCoreTemperature;
1601 }
1602 
1603 /*!
1604  * Sets the \c messageIndex field to \a messageIndex.
1605  *
1606  * \param messageIndex The field value to set.
1607  */
1609 {
1610  Q_D(SessionMessage);
1611  d->messageIndex = messageIndex;
1612 }
1613 /*!
1614  * Sets the \c timestamp field to \a timestamp.
1615  *
1616  * \param timestamp The field value to set.
1617  */
1619 {
1620  Q_D(SessionMessage);
1621  d->timestamp = timestamp;
1622 }
1623 /*!
1624  * Sets the \c event field to \a event.
1625  *
1626  * \param event The field value to set.
1627  */
1629 {
1630  Q_D(SessionMessage);
1631  d->event = event;
1632 }
1633 /*!
1634  * Sets the \c eventType field to \a eventType.
1635  *
1636  * \param eventType The field value to set.
1637  */
1639 {
1640  Q_D(SessionMessage);
1641  d->eventType = eventType;
1642 }
1643 /*!
1644  * Sets the \c startTime field to \a startTime.
1645  *
1646  * \param startTime The field value to set.
1647  */
1649 {
1650  Q_D(SessionMessage);
1651  d->startTime = startTime;
1652 }
1653 /*!
1654  * Sets the \c startPositionLat field to \a startPositionLat.
1655  *
1656  * \param startPositionLat The field value to set.
1657  */
1658 void SessionMessage::setStartPositionLat(const qint32 startPositionLat)
1659 {
1660  Q_D(SessionMessage);
1661  d->startPositionLat = startPositionLat;
1662 }
1663 /*!
1664  * Sets the \c startPositionLong field to \a startPositionLong.
1665  *
1666  * \param startPositionLong The field value to set.
1667  */
1668 void SessionMessage::setStartPositionLong(const qint32 startPositionLong)
1669 {
1670  Q_D(SessionMessage);
1671  d->startPositionLong = startPositionLong;
1672 }
1673 /*!
1674  * Sets the \c sport field to \a sport.
1675  *
1676  * \param sport The field value to set.
1677  */
1679 {
1680  Q_D(SessionMessage);
1681  d->sport = sport;
1682 }
1683 /*!
1684  * Sets the \c subSport field to \a subSport.
1685  *
1686  * \param subSport The field value to set.
1687  */
1689 {
1690  Q_D(SessionMessage);
1691  d->subSport = subSport;
1692 }
1693 /*!
1694  * Sets the \c totalElapsedTime field to \a totalElapsedTime.
1695  *
1696  * \param totalElapsedTime The field value to set.
1697  */
1698 void SessionMessage::setTotalElapsedTime(const quint32 totalElapsedTime)
1699 {
1700  Q_D(SessionMessage);
1701  d->totalElapsedTime = totalElapsedTime;
1702 }
1703 /*!
1704  * Sets the \c totalTimerTime field to \a totalTimerTime.
1705  *
1706  * \param totalTimerTime The field value to set.
1707  */
1708 void SessionMessage::setTotalTimerTime(const quint32 totalTimerTime)
1709 {
1710  Q_D(SessionMessage);
1711  d->totalTimerTime = totalTimerTime;
1712 }
1713 /*!
1714  * Sets the \c totalDistance field to \a totalDistance.
1715  *
1716  * \param totalDistance The field value to set.
1717  */
1718 void SessionMessage::setTotalDistance(const quint32 totalDistance)
1719 {
1720  Q_D(SessionMessage);
1721  d->totalDistance = totalDistance;
1722 }
1723 /*!
1724  * Sets the \c totalCycles field to \a totalCycles.
1725  *
1726  * \param totalCycles The field value to set.
1727  */
1728 void SessionMessage::setTotalCycles(const quint32 totalCycles)
1729 {
1730  Q_D(SessionMessage);
1731  d->totalCycles = totalCycles;
1732 }
1733 /*!
1734  * Sets the \c totalCalories field to \a totalCalories.
1735  *
1736  * \param totalCalories The field value to set.
1737  */
1738 void SessionMessage::setTotalCalories(const quint16 totalCalories)
1739 {
1740  Q_D(SessionMessage);
1741  d->totalCalories = totalCalories;
1742 }
1743 /*!
1744  * Sets the \c totalFatCalories field to \a totalFatCalories.
1745  *
1746  * \param totalFatCalories The field value to set.
1747  */
1748 void SessionMessage::setTotalFatCalories(const quint16 totalFatCalories)
1749 {
1750  Q_D(SessionMessage);
1751  d->totalFatCalories = totalFatCalories;
1752 }
1753 /*!
1754  * Sets the \c avgSpeed field to \a avgSpeed.
1755  *
1756  * \param avgSpeed The field value to set.
1757  */
1758 void SessionMessage::setAvgSpeed(const quint16 avgSpeed)
1759 {
1760  Q_D(SessionMessage);
1761  d->avgSpeed = avgSpeed;
1762 }
1763 /*!
1764  * Sets the \c maxSpeed field to \a maxSpeed.
1765  *
1766  * \param maxSpeed The field value to set.
1767  */
1768 void SessionMessage::setMaxSpeed(const quint16 maxSpeed)
1769 {
1770  Q_D(SessionMessage);
1771  d->maxSpeed = maxSpeed;
1772 }
1773 /*!
1774  * Sets the \c avgHeartRate field to \a avgHeartRate.
1775  *
1776  * \param avgHeartRate The field value to set.
1777  */
1778 void SessionMessage::setAvgHeartRate(const quint8 avgHeartRate)
1779 {
1780  Q_D(SessionMessage);
1781  d->avgHeartRate = avgHeartRate;
1782 }
1783 /*!
1784  * Sets the \c maxHeartRate field to \a maxHeartRate.
1785  *
1786  * \param maxHeartRate The field value to set.
1787  */
1788 void SessionMessage::setMaxHeartRate(const quint8 maxHeartRate)
1789 {
1790  Q_D(SessionMessage);
1791  d->maxHeartRate = maxHeartRate;
1792 }
1793 /*!
1794  * Sets the \c avgCadence field to \a avgCadence.
1795  *
1796  * \param avgCadence The field value to set.
1797  */
1798 void SessionMessage::setAvgCadence(const quint8 avgCadence)
1799 {
1800  Q_D(SessionMessage);
1801  d->avgCadence = avgCadence;
1802 }
1803 /*!
1804  * Sets the \c maxCadence field to \a maxCadence.
1805  *
1806  * \param maxCadence The field value to set.
1807  */
1808 void SessionMessage::setMaxCadence(const quint8 maxCadence)
1809 {
1810  Q_D(SessionMessage);
1811  d->maxCadence = maxCadence;
1812 }
1813 /*!
1814  * Sets the \c avgPower field to \a avgPower.
1815  *
1816  * \param avgPower The field value to set.
1817  */
1818 void SessionMessage::setAvgPower(const quint16 avgPower)
1819 {
1820  Q_D(SessionMessage);
1821  d->avgPower = avgPower;
1822 }
1823 /*!
1824  * Sets the \c maxPower field to \a maxPower.
1825  *
1826  * \param maxPower The field value to set.
1827  */
1828 void SessionMessage::setMaxPower(const quint16 maxPower)
1829 {
1830  Q_D(SessionMessage);
1831  d->maxPower = maxPower;
1832 }
1833 /*!
1834  * Sets the \c totalAscent field to \a totalAscent.
1835  *
1836  * \param totalAscent The field value to set.
1837  */
1838 void SessionMessage::setTotalAscent(const quint16 totalAscent)
1839 {
1840  Q_D(SessionMessage);
1841  d->totalAscent = totalAscent;
1842 }
1843 /*!
1844  * Sets the \c totalDescent field to \a totalDescent.
1845  *
1846  * \param totalDescent The field value to set.
1847  */
1848 void SessionMessage::setTotalDescent(const quint16 totalDescent)
1849 {
1850  Q_D(SessionMessage);
1851  d->totalDescent = totalDescent;
1852 }
1853 /*!
1854  * Sets the \c totalTrainingEffect field to \a totalTrainingEffect.
1855  *
1856  * \param totalTrainingEffect The field value to set.
1857  */
1858 void SessionMessage::setTotalTrainingEffect(const quint8 totalTrainingEffect)
1859 {
1860  Q_D(SessionMessage);
1861  d->totalTrainingEffect = totalTrainingEffect;
1862 }
1863 /*!
1864  * Sets the \c firstLapIndex field to \a firstLapIndex.
1865  *
1866  * \param firstLapIndex The field value to set.
1867  */
1868 void SessionMessage::setFirstLapIndex(const quint16 firstLapIndex)
1869 {
1870  Q_D(SessionMessage);
1871  d->firstLapIndex = firstLapIndex;
1872 }
1873 /*!
1874  * Sets the \c numLaps field to \a numLaps.
1875  *
1876  * \param numLaps The field value to set.
1877  */
1878 void SessionMessage::setNumLaps(const quint16 numLaps)
1879 {
1880  Q_D(SessionMessage);
1881  d->numLaps = numLaps;
1882 }
1883 /*!
1884  * Sets the \c eventGroup field to \a eventGroup.
1885  *
1886  * \param eventGroup The field value to set.
1887  */
1888 void SessionMessage::setEventGroup(const quint8 eventGroup)
1889 {
1890  Q_D(SessionMessage);
1891  d->eventGroup = eventGroup;
1892 }
1893 /*!
1894  * Sets the \c trigger field to \a trigger.
1895  *
1896  * \param trigger The field value to set.
1897  */
1899 {
1900  Q_D(SessionMessage);
1901  d->trigger = trigger;
1902 }
1903 /*!
1904  * Sets the \c necLat field to \a necLat.
1905  *
1906  * \param necLat The field value to set.
1907  */
1908 void SessionMessage::setNecLat(const qint32 necLat)
1909 {
1910  Q_D(SessionMessage);
1911  d->necLat = necLat;
1912 }
1913 /*!
1914  * Sets the \c necLong field to \a necLong.
1915  *
1916  * \param necLong The field value to set.
1917  */
1918 void SessionMessage::setNecLong(const qint32 necLong)
1919 {
1920  Q_D(SessionMessage);
1921  d->necLong = necLong;
1922 }
1923 /*!
1924  * Sets the \c swcLat field to \a swcLat.
1925  *
1926  * \param swcLat The field value to set.
1927  */
1928 void SessionMessage::setSwcLat(const qint32 swcLat)
1929 {
1930  Q_D(SessionMessage);
1931  d->swcLat = swcLat;
1932 }
1933 /*!
1934  * Sets the \c swcLong field to \a swcLong.
1935  *
1936  * \param swcLong The field value to set.
1937  */
1938 void SessionMessage::setSwcLong(const qint32 swcLong)
1939 {
1940  Q_D(SessionMessage);
1941  d->swcLong = swcLong;
1942 }
1943 /*!
1944  * Sets the \c numLengths field to \a numLengths.
1945  *
1946  * \param numLengths The field value to set.
1947  */
1948 void SessionMessage::setNumLengths(const quint16 numLengths)
1949 {
1950  Q_D(SessionMessage);
1951  d->numLengths = numLengths;
1952 }
1953 /*!
1954  * Sets the \c normalizedPower field to \a normalizedPower.
1955  *
1956  * \param normalizedPower The field value to set.
1957  */
1958 void SessionMessage::setNormalizedPower(const quint16 normalizedPower)
1959 {
1960  Q_D(SessionMessage);
1961  d->normalizedPower = normalizedPower;
1962 }
1963 /*!
1964  * Sets the \c trainingStressScore field to \a trainingStressScore.
1965  *
1966  * \param trainingStressScore The field value to set.
1967  */
1968 void SessionMessage::setTrainingStressScore(const quint16 trainingStressScore)
1969 {
1970  Q_D(SessionMessage);
1971  d->trainingStressScore = trainingStressScore;
1972 }
1973 /*!
1974  * Sets the \c intensityFactor field to \a intensityFactor.
1975  *
1976  * \param intensityFactor The field value to set.
1977  */
1978 void SessionMessage::setIntensityFactor(const quint16 intensityFactor)
1979 {
1980  Q_D(SessionMessage);
1981  d->intensityFactor = intensityFactor;
1982 }
1983 /*!
1984  * Sets the \c leftRightBalance field to \a leftRightBalance.
1985  *
1986  * \param leftRightBalance The field value to set.
1987  */
1989 {
1990  Q_D(SessionMessage);
1991  d->leftRightBalance = leftRightBalance;
1992 }
1993 /*!
1994  * Sets the \c avgStrokeCount field to \a avgStrokeCount.
1995  *
1996  * \param avgStrokeCount The field value to set.
1997  */
1998 void SessionMessage::setAvgStrokeCount(const quint32 avgStrokeCount)
1999 {
2000  Q_D(SessionMessage);
2001  d->avgStrokeCount = avgStrokeCount;
2002 }
2003 /*!
2004  * Sets the \c avgStrokeDistance field to \a avgStrokeDistance.
2005  *
2006  * \param avgStrokeDistance The field value to set.
2007  */
2008 void SessionMessage::setAvgStrokeDistance(const quint16 avgStrokeDistance)
2009 {
2010  Q_D(SessionMessage);
2011  d->avgStrokeDistance = avgStrokeDistance;
2012 }
2013 /*!
2014  * Sets the \c swimStroke field to \a swimStroke.
2015  *
2016  * \param swimStroke The field value to set.
2017  */
2019 {
2020  Q_D(SessionMessage);
2021  d->swimStroke = swimStroke;
2022 }
2023 /*!
2024  * Sets the \c poolLength field to \a poolLength.
2025  *
2026  * \param poolLength The field value to set.
2027  */
2028 void SessionMessage::setPoolLength(const quint16 poolLength)
2029 {
2030  Q_D(SessionMessage);
2031  d->poolLength = poolLength;
2032 }
2033 /*!
2034  * Sets the \c thresholdPower field to \a thresholdPower.
2035  *
2036  * \param thresholdPower The field value to set.
2037  */
2038 void SessionMessage::setThresholdPower(const quint16 thresholdPower)
2039 {
2040  Q_D(SessionMessage);
2041  d->thresholdPower = thresholdPower;
2042 }
2043 /*!
2044  * Sets the \c poolLengthUnit field to \a poolLengthUnit.
2045  *
2046  * \param poolLengthUnit The field value to set.
2047  */
2049 {
2050  Q_D(SessionMessage);
2051  d->poolLengthUnit = poolLengthUnit;
2052 }
2053 /*!
2054  * Sets the \c numActiveLengths field to \a numActiveLengths.
2055  *
2056  * \param numActiveLengths The field value to set.
2057  */
2058 void SessionMessage::setNumActiveLengths(const quint16 numActiveLengths)
2059 {
2060  Q_D(SessionMessage);
2061  d->numActiveLengths = numActiveLengths;
2062 }
2063 /*!
2064  * Sets the \c totalWork field to \a totalWork.
2065  *
2066  * \param totalWork The field value to set.
2067  */
2068 void SessionMessage::setTotalWork(const quint32 totalWork)
2069 {
2070  Q_D(SessionMessage);
2071  d->totalWork = totalWork;
2072 }
2073 /*!
2074  * Sets the \c avgAltitude field to \a avgAltitude.
2075  *
2076  * \param avgAltitude The field value to set.
2077  */
2078 void SessionMessage::setAvgAltitude(const quint16 avgAltitude)
2079 {
2080  Q_D(SessionMessage);
2081  d->avgAltitude = avgAltitude;
2082 }
2083 /*!
2084  * Sets the \c maxAltitude field to \a maxAltitude.
2085  *
2086  * \param maxAltitude The field value to set.
2087  */
2088 void SessionMessage::setMaxAltitude(const quint16 maxAltitude)
2089 {
2090  Q_D(SessionMessage);
2091  d->maxAltitude = maxAltitude;
2092 }
2093 /*!
2094  * Sets the \c gpsAccuracy field to \a gpsAccuracy.
2095  *
2096  * \param gpsAccuracy The field value to set.
2097  */
2098 void SessionMessage::setGpsAccuracy(const quint8 gpsAccuracy)
2099 {
2100  Q_D(SessionMessage);
2101  d->gpsAccuracy = gpsAccuracy;
2102 }
2103 /*!
2104  * Sets the \c avgGrade field to \a avgGrade.
2105  *
2106  * \param avgGrade The field value to set.
2107  */
2108 void SessionMessage::setAvgGrade(const qint16 avgGrade)
2109 {
2110  Q_D(SessionMessage);
2111  d->avgGrade = avgGrade;
2112 }
2113 /*!
2114  * Sets the \c avgPosGrade field to \a avgPosGrade.
2115  *
2116  * \param avgPosGrade The field value to set.
2117  */
2118 void SessionMessage::setAvgPosGrade(const qint16 avgPosGrade)
2119 {
2120  Q_D(SessionMessage);
2121  d->avgPosGrade = avgPosGrade;
2122 }
2123 /*!
2124  * Sets the \c avgNegGrade field to \a avgNegGrade.
2125  *
2126  * \param avgNegGrade The field value to set.
2127  */
2128 void SessionMessage::setAvgNegGrade(const qint16 avgNegGrade)
2129 {
2130  Q_D(SessionMessage);
2131  d->avgNegGrade = avgNegGrade;
2132 }
2133 /*!
2134  * Sets the \c maxPosGrade field to \a maxPosGrade.
2135  *
2136  * \param maxPosGrade The field value to set.
2137  */
2138 void SessionMessage::setMaxPosGrade(const qint16 maxPosGrade)
2139 {
2140  Q_D(SessionMessage);
2141  d->maxPosGrade = maxPosGrade;
2142 }
2143 /*!
2144  * Sets the \c maxNegGrade field to \a maxNegGrade.
2145  *
2146  * \param maxNegGrade The field value to set.
2147  */
2148 void SessionMessage::setMaxNegGrade(const qint16 maxNegGrade)
2149 {
2150  Q_D(SessionMessage);
2151  d->maxNegGrade = maxNegGrade;
2152 }
2153 /*!
2154  * Sets the \c avgTemperature field to \a avgTemperature.
2155  *
2156  * \param avgTemperature The field value to set.
2157  */
2158 void SessionMessage::setAvgTemperature(const qint8 avgTemperature)
2159 {
2160  Q_D(SessionMessage);
2161  d->avgTemperature = avgTemperature;
2162 }
2163 /*!
2164  * Sets the \c maxTemperature field to \a maxTemperature.
2165  *
2166  * \param maxTemperature The field value to set.
2167  */
2168 void SessionMessage::setMaxTemperature(const qint8 maxTemperature)
2169 {
2170  Q_D(SessionMessage);
2171  d->maxTemperature = maxTemperature;
2172 }
2173 /*!
2174  * Sets the \c totalMovingTime field to \a totalMovingTime.
2175  *
2176  * \param totalMovingTime The field value to set.
2177  */
2178 void SessionMessage::setTotalMovingTime(const quint32 totalMovingTime)
2179 {
2180  Q_D(SessionMessage);
2181  d->totalMovingTime = totalMovingTime;
2182 }
2183 /*!
2184  * Sets the \c avgPosVerticalSpeed field to \a avgPosVerticalSpeed.
2185  *
2186  * \param avgPosVerticalSpeed The field value to set.
2187  */
2188 void SessionMessage::setAvgPosVerticalSpeed(const qint16 avgPosVerticalSpeed)
2189 {
2190  Q_D(SessionMessage);
2191  d->avgPosVerticalSpeed = avgPosVerticalSpeed;
2192 }
2193 /*!
2194  * Sets the \c avgNegVerticalSpeed field to \a avgNegVerticalSpeed.
2195  *
2196  * \param avgNegVerticalSpeed The field value to set.
2197  */
2198 void SessionMessage::setAvgNegVerticalSpeed(const qint16 avgNegVerticalSpeed)
2199 {
2200  Q_D(SessionMessage);
2201  d->avgNegVerticalSpeed = avgNegVerticalSpeed;
2202 }
2203 /*!
2204  * Sets the \c maxPosVerticalSpeed field to \a maxPosVerticalSpeed.
2205  *
2206  * \param maxPosVerticalSpeed The field value to set.
2207  */
2208 void SessionMessage::setMaxPosVerticalSpeed(const qint16 maxPosVerticalSpeed)
2209 {
2210  Q_D(SessionMessage);
2211  d->maxPosVerticalSpeed = maxPosVerticalSpeed;
2212 }
2213 /*!
2214  * Sets the \c maxNegVerticalSpeed field to \a maxNegVerticalSpeed.
2215  *
2216  * \param maxNegVerticalSpeed The field value to set.
2217  */
2218 void SessionMessage::setMaxNegVerticalSpeed(const qint16 maxNegVerticalSpeed)
2219 {
2220  Q_D(SessionMessage);
2221  d->maxNegVerticalSpeed = maxNegVerticalSpeed;
2222 }
2223 /*!
2224  * Sets the \c minHeartRate field to \a minHeartRate.
2225  *
2226  * \param minHeartRate The field value to set.
2227  */
2228 void SessionMessage::setMinHeartRate(const quint8 minHeartRate)
2229 {
2230  Q_D(SessionMessage);
2231  d->minHeartRate = minHeartRate;
2232 }
2233 /*!
2234  * Sets the \c timeInHrZone field to \a timeInHrZone.
2235  *
2236  * \param timeInHrZone The field value to set.
2237  */
2238 void SessionMessage::setTimeInHrZone(const quint32 timeInHrZone)
2239 {
2240  Q_D(SessionMessage);
2241  d->timeInHrZone = timeInHrZone;
2242 }
2243 /*!
2244  * Sets the \c timeInSpeedZone field to \a timeInSpeedZone.
2245  *
2246  * \param timeInSpeedZone The field value to set.
2247  */
2248 void SessionMessage::setTimeInSpeedZone(const quint32 timeInSpeedZone)
2249 {
2250  Q_D(SessionMessage);
2251  d->timeInSpeedZone = timeInSpeedZone;
2252 }
2253 /*!
2254  * Sets the \c timeInCadenceZone field to \a timeInCadenceZone.
2255  *
2256  * \param timeInCadenceZone The field value to set.
2257  */
2258 void SessionMessage::setTimeInCadenceZone(const quint32 timeInCadenceZone)
2259 {
2260  Q_D(SessionMessage);
2261  d->timeInCadenceZone = timeInCadenceZone;
2262 }
2263 /*!
2264  * Sets the \c timeInPowerZone field to \a timeInPowerZone.
2265  *
2266  * \param timeInPowerZone The field value to set.
2267  */
2268 void SessionMessage::setTimeInPowerZone(const quint32 timeInPowerZone)
2269 {
2270  Q_D(SessionMessage);
2271  d->timeInPowerZone = timeInPowerZone;
2272 }
2273 /*!
2274  * Sets the \c avgLapTime field to \a avgLapTime.
2275  *
2276  * \param avgLapTime The field value to set.
2277  */
2278 void SessionMessage::setAvgLapTime(const quint32 avgLapTime)
2279 {
2280  Q_D(SessionMessage);
2281  d->avgLapTime = avgLapTime;
2282 }
2283 /*!
2284  * Sets the \c bestLapIndex field to \a bestLapIndex.
2285  *
2286  * \param bestLapIndex The field value to set.
2287  */
2288 void SessionMessage::setBestLapIndex(const quint16 bestLapIndex)
2289 {
2290  Q_D(SessionMessage);
2291  d->bestLapIndex = bestLapIndex;
2292 }
2293 /*!
2294  * Sets the \c minAltitude field to \a minAltitude.
2295  *
2296  * \param minAltitude The field value to set.
2297  */
2298 void SessionMessage::setMinAltitude(const quint16 minAltitude)
2299 {
2300  Q_D(SessionMessage);
2301  d->minAltitude = minAltitude;
2302 }
2303 /*!
2304  * Sets the \c playerScore field to \a playerScore.
2305  *
2306  * \param playerScore The field value to set.
2307  */
2308 void SessionMessage::setPlayerScore(const quint16 playerScore)
2309 {
2310  Q_D(SessionMessage);
2311  d->playerScore = playerScore;
2312 }
2313 /*!
2314  * Sets the \c opponentScore field to \a opponentScore.
2315  *
2316  * \param opponentScore The field value to set.
2317  */
2318 void SessionMessage::setOpponentScore(const quint16 opponentScore)
2319 {
2320  Q_D(SessionMessage);
2321  d->opponentScore = opponentScore;
2322 }
2323 /*!
2324  * Sets the \c opponentName field to \a opponentName.
2325  *
2326  * \param opponentName The field value to set.
2327  */
2328 void SessionMessage::setOpponentName(const QString opponentName)
2329 {
2330  Q_D(SessionMessage);
2331  d->opponentName = opponentName;
2332 }
2333 /*!
2334  * Sets the \c strokeCount field to \a strokeCount.
2335  *
2336  * \param strokeCount The field value to set.
2337  */
2338 void SessionMessage::setStrokeCount(const quint16 strokeCount)
2339 {
2340  Q_D(SessionMessage);
2341  d->strokeCount = strokeCount;
2342 }
2343 /*!
2344  * Sets the \c zoneCount field to \a zoneCount.
2345  *
2346  * \param zoneCount The field value to set.
2347  */
2348 void SessionMessage::setZoneCount(const quint16 zoneCount)
2349 {
2350  Q_D(SessionMessage);
2351  d->zoneCount = zoneCount;
2352 }
2353 /*!
2354  * Sets the \c maxBallSpeed field to \a maxBallSpeed.
2355  *
2356  * \param maxBallSpeed The field value to set.
2357  */
2358 void SessionMessage::setMaxBallSpeed(const quint16 maxBallSpeed)
2359 {
2360  Q_D(SessionMessage);
2361  d->maxBallSpeed = maxBallSpeed;
2362 }
2363 /*!
2364  * Sets the \c avgBallSpeed field to \a avgBallSpeed.
2365  *
2366  * \param avgBallSpeed The field value to set.
2367  */
2368 void SessionMessage::setAvgBallSpeed(const quint16 avgBallSpeed)
2369 {
2370  Q_D(SessionMessage);
2371  d->avgBallSpeed = avgBallSpeed;
2372 }
2373 /*!
2374  * Sets the \c avgVerticalOscillation field to \a avgVerticalOscillation.
2375  *
2376  * \param avgVerticalOscillation The field value to set.
2377  */
2378 void SessionMessage::setAvgVerticalOscillation(const quint16 avgVerticalOscillation)
2379 {
2380  Q_D(SessionMessage);
2381  d->avgVerticalOscillation = avgVerticalOscillation;
2382 }
2383 /*!
2384  * Sets the \c avgStanceTimePercent field to \a avgStanceTimePercent.
2385  *
2386  * \param avgStanceTimePercent The field value to set.
2387  */
2388 void SessionMessage::setAvgStanceTimePercent(const quint16 avgStanceTimePercent)
2389 {
2390  Q_D(SessionMessage);
2391  d->avgStanceTimePercent = avgStanceTimePercent;
2392 }
2393 /*!
2394  * Sets the \c avgStanceTime field to \a avgStanceTime.
2395  *
2396  * \param avgStanceTime The field value to set.
2397  */
2398 void SessionMessage::setAvgStanceTime(const quint16 avgStanceTime)
2399 {
2400  Q_D(SessionMessage);
2401  d->avgStanceTime = avgStanceTime;
2402 }
2403 /*!
2404  * Sets the \c avgFractionalCadence field to \a avgFractionalCadence.
2405  *
2406  * \param avgFractionalCadence The field value to set.
2407  */
2408 void SessionMessage::setAvgFractionalCadence(const quint8 avgFractionalCadence)
2409 {
2410  Q_D(SessionMessage);
2411  d->avgFractionalCadence = avgFractionalCadence;
2412 }
2413 /*!
2414  * Sets the \c maxFractionalCadence field to \a maxFractionalCadence.
2415  *
2416  * \param maxFractionalCadence The field value to set.
2417  */
2418 void SessionMessage::setMaxFractionalCadence(const quint8 maxFractionalCadence)
2419 {
2420  Q_D(SessionMessage);
2421  d->maxFractionalCadence = maxFractionalCadence;
2422 }
2423 /*!
2424  * Sets the \c totalFractionalCycles field to \a totalFractionalCycles.
2425  *
2426  * \param totalFractionalCycles The field value to set.
2427  */
2428 void SessionMessage::setTotalFractionalCycles(const quint8 totalFractionalCycles)
2429 {
2430  Q_D(SessionMessage);
2431  d->totalFractionalCycles = totalFractionalCycles;
2432 }
2433 /*!
2434  * Sets the \c avgTotalHemoglobinConc field to \a avgTotalHemoglobinConc.
2435  *
2436  * \param avgTotalHemoglobinConc The field value to set.
2437  */
2438 void SessionMessage::setAvgTotalHemoglobinConc(const quint16 avgTotalHemoglobinConc)
2439 {
2440  Q_D(SessionMessage);
2441  d->avgTotalHemoglobinConc = avgTotalHemoglobinConc;
2442 }
2443 /*!
2444  * Sets the \c minTotalHemoglobinConc field to \a minTotalHemoglobinConc.
2445  *
2446  * \param minTotalHemoglobinConc The field value to set.
2447  */
2448 void SessionMessage::setMinTotalHemoglobinConc(const quint16 minTotalHemoglobinConc)
2449 {
2450  Q_D(SessionMessage);
2451  d->minTotalHemoglobinConc = minTotalHemoglobinConc;
2452 }
2453 /*!
2454  * Sets the \c maxTotalHemoglobinConc field to \a maxTotalHemoglobinConc.
2455  *
2456  * \param maxTotalHemoglobinConc The field value to set.
2457  */
2458 void SessionMessage::setMaxTotalHemoglobinConc(const quint16 maxTotalHemoglobinConc)
2459 {
2460  Q_D(SessionMessage);
2461  d->maxTotalHemoglobinConc = maxTotalHemoglobinConc;
2462 }
2463 /*!
2464  * Sets the \c avgSaturatedHemoglobinPercent field to \a avgSaturatedHemoglobinPercent.
2465  *
2466  * \param avgSaturatedHemoglobinPercent The field value to set.
2467  */
2468 void SessionMessage::setAvgSaturatedHemoglobinPercent(const quint16 avgSaturatedHemoglobinPercent)
2469 {
2470  Q_D(SessionMessage);
2471  d->avgSaturatedHemoglobinPercent = avgSaturatedHemoglobinPercent;
2472 }
2473 /*!
2474  * Sets the \c minSaturatedHemoglobinPercent field to \a minSaturatedHemoglobinPercent.
2475  *
2476  * \param minSaturatedHemoglobinPercent The field value to set.
2477  */
2478 void SessionMessage::setMinSaturatedHemoglobinPercent(const quint16 minSaturatedHemoglobinPercent)
2479 {
2480  Q_D(SessionMessage);
2481  d->minSaturatedHemoglobinPercent = minSaturatedHemoglobinPercent;
2482 }
2483 /*!
2484  * Sets the \c maxSaturatedHemoglobinPercent field to \a maxSaturatedHemoglobinPercent.
2485  *
2486  * \param maxSaturatedHemoglobinPercent The field value to set.
2487  */
2488 void SessionMessage::setMaxSaturatedHemoglobinPercent(const quint16 maxSaturatedHemoglobinPercent)
2489 {
2490  Q_D(SessionMessage);
2491  d->maxSaturatedHemoglobinPercent = maxSaturatedHemoglobinPercent;
2492 }
2493 /*!
2494  * Sets the \c avgLeftTorqueEffectiveness field to \a avgLeftTorqueEffectiveness.
2495  *
2496  * \param avgLeftTorqueEffectiveness The field value to set.
2497  */
2498 void SessionMessage::setAvgLeftTorqueEffectiveness(const quint8 avgLeftTorqueEffectiveness)
2499 {
2500  Q_D(SessionMessage);
2501  d->avgLeftTorqueEffectiveness = avgLeftTorqueEffectiveness;
2502 }
2503 /*!
2504  * Sets the \c avgRightTorqueEffectiveness field to \a avgRightTorqueEffectiveness.
2505  *
2506  * \param avgRightTorqueEffectiveness The field value to set.
2507  */
2508 void SessionMessage::setAvgRightTorqueEffectiveness(const quint8 avgRightTorqueEffectiveness)
2509 {
2510  Q_D(SessionMessage);
2511  d->avgRightTorqueEffectiveness = avgRightTorqueEffectiveness;
2512 }
2513 /*!
2514  * Sets the \c avgLeftPedalSmoothness field to \a avgLeftPedalSmoothness.
2515  *
2516  * \param avgLeftPedalSmoothness The field value to set.
2517  */
2518 void SessionMessage::setAvgLeftPedalSmoothness(const quint8 avgLeftPedalSmoothness)
2519 {
2520  Q_D(SessionMessage);
2521  d->avgLeftPedalSmoothness = avgLeftPedalSmoothness;
2522 }
2523 /*!
2524  * Sets the \c avgRightPedalSmoothness field to \a avgRightPedalSmoothness.
2525  *
2526  * \param avgRightPedalSmoothness The field value to set.
2527  */
2528 void SessionMessage::setAvgRightPedalSmoothness(const quint8 avgRightPedalSmoothness)
2529 {
2530  Q_D(SessionMessage);
2531  d->avgRightPedalSmoothness = avgRightPedalSmoothness;
2532 }
2533 /*!
2534  * Sets the \c avgCombinedPedalSmoothness field to \a avgCombinedPedalSmoothness.
2535  *
2536  * \param avgCombinedPedalSmoothness The field value to set.
2537  */
2538 void SessionMessage::setAvgCombinedPedalSmoothness(const quint8 avgCombinedPedalSmoothness)
2539 {
2540  Q_D(SessionMessage);
2541  d->avgCombinedPedalSmoothness = avgCombinedPedalSmoothness;
2542 }
2543 /*!
2544  * Sets the \c sportIndex field to \a sportIndex.
2545  *
2546  * \param sportIndex The field value to set.
2547  */
2548 void SessionMessage::setSportIndex(const quint8 sportIndex)
2549 {
2550  Q_D(SessionMessage);
2551  d->sportIndex = sportIndex;
2552 }
2553 /*!
2554  * Sets the \c timeStanding field to \a timeStanding.
2555  *
2556  * \param timeStanding The field value to set.
2557  */
2558 void SessionMessage::setTimeStanding(const quint32 timeStanding)
2559 {
2560  Q_D(SessionMessage);
2561  d->timeStanding = timeStanding;
2562 }
2563 /*!
2564  * Sets the \c standCount field to \a standCount.
2565  *
2566  * \param standCount The field value to set.
2567  */
2568 void SessionMessage::setStandCount(const quint16 standCount)
2569 {
2570  Q_D(SessionMessage);
2571  d->standCount = standCount;
2572 }
2573 /*!
2574  * Sets the \c avgLeftPco field to \a avgLeftPco.
2575  *
2576  * \param avgLeftPco The field value to set.
2577  */
2578 void SessionMessage::setAvgLeftPco(const qint8 avgLeftPco)
2579 {
2580  Q_D(SessionMessage);
2581  d->avgLeftPco = avgLeftPco;
2582 }
2583 /*!
2584  * Sets the \c avgRightPco field to \a avgRightPco.
2585  *
2586  * \param avgRightPco The field value to set.
2587  */
2588 void SessionMessage::setAvgRightPco(const qint8 avgRightPco)
2589 {
2590  Q_D(SessionMessage);
2591  d->avgRightPco = avgRightPco;
2592 }
2593 /*!
2594  * Sets the \c avgLeftPowerPhase field to \a avgLeftPowerPhase.
2595  *
2596  * \param avgLeftPowerPhase The field value to set.
2597  */
2598 void SessionMessage::setAvgLeftPowerPhase(const quint8 avgLeftPowerPhase)
2599 {
2600  Q_D(SessionMessage);
2601  d->avgLeftPowerPhase = avgLeftPowerPhase;
2602 }
2603 /*!
2604  * Sets the \c avgLeftPowerPhasePeak field to \a avgLeftPowerPhasePeak.
2605  *
2606  * \param avgLeftPowerPhasePeak The field value to set.
2607  */
2608 void SessionMessage::setAvgLeftPowerPhasePeak(const quint8 avgLeftPowerPhasePeak)
2609 {
2610  Q_D(SessionMessage);
2611  d->avgLeftPowerPhasePeak = avgLeftPowerPhasePeak;
2612 }
2613 /*!
2614  * Sets the \c avgRightPowerPhase field to \a avgRightPowerPhase.
2615  *
2616  * \param avgRightPowerPhase The field value to set.
2617  */
2618 void SessionMessage::setAvgRightPowerPhase(const quint8 avgRightPowerPhase)
2619 {
2620  Q_D(SessionMessage);
2621  d->avgRightPowerPhase = avgRightPowerPhase;
2622 }
2623 /*!
2624  * Sets the \c avgRightPowerPhasePeak field to \a avgRightPowerPhasePeak.
2625  *
2626  * \param avgRightPowerPhasePeak The field value to set.
2627  */
2628 void SessionMessage::setAvgRightPowerPhasePeak(const quint8 avgRightPowerPhasePeak)
2629 {
2630  Q_D(SessionMessage);
2631  d->avgRightPowerPhasePeak = avgRightPowerPhasePeak;
2632 }
2633 /*!
2634  * Sets the \c avgPowerPosition field to \a avgPowerPosition.
2635  *
2636  * \param avgPowerPosition The field value to set.
2637  */
2638 void SessionMessage::setAvgPowerPosition(const quint16 avgPowerPosition)
2639 {
2640  Q_D(SessionMessage);
2641  d->avgPowerPosition = avgPowerPosition;
2642 }
2643 /*!
2644  * Sets the \c maxPowerPosition field to \a maxPowerPosition.
2645  *
2646  * \param maxPowerPosition The field value to set.
2647  */
2648 void SessionMessage::setMaxPowerPosition(const quint16 maxPowerPosition)
2649 {
2650  Q_D(SessionMessage);
2651  d->maxPowerPosition = maxPowerPosition;
2652 }
2653 /*!
2654  * Sets the \c avgCadencePosition field to \a avgCadencePosition.
2655  *
2656  * \param avgCadencePosition The field value to set.
2657  */
2658 void SessionMessage::setAvgCadencePosition(const quint8 avgCadencePosition)
2659 {
2660  Q_D(SessionMessage);
2661  d->avgCadencePosition = avgCadencePosition;
2662 }
2663 /*!
2664  * Sets the \c maxCadencePosition field to \a maxCadencePosition.
2665  *
2666  * \param maxCadencePosition The field value to set.
2667  */
2668 void SessionMessage::setMaxCadencePosition(const quint8 maxCadencePosition)
2669 {
2670  Q_D(SessionMessage);
2671  d->maxCadencePosition = maxCadencePosition;
2672 }
2673 /*!
2674  * Sets the \c enhancedAvgSpeed field to \a enhancedAvgSpeed.
2675  *
2676  * \param enhancedAvgSpeed The field value to set.
2677  */
2678 void SessionMessage::setEnhancedAvgSpeed(const quint32 enhancedAvgSpeed)
2679 {
2680  Q_D(SessionMessage);
2681  d->enhancedAvgSpeed = enhancedAvgSpeed;
2682 }
2683 /*!
2684  * Sets the \c enhancedMaxSpeed field to \a enhancedMaxSpeed.
2685  *
2686  * \param enhancedMaxSpeed The field value to set.
2687  */
2688 void SessionMessage::setEnhancedMaxSpeed(const quint32 enhancedMaxSpeed)
2689 {
2690  Q_D(SessionMessage);
2691  d->enhancedMaxSpeed = enhancedMaxSpeed;
2692 }
2693 /*!
2694  * Sets the \c enhancedAvgAltitude field to \a enhancedAvgAltitude.
2695  *
2696  * \param enhancedAvgAltitude The field value to set.
2697  */
2698 void SessionMessage::setEnhancedAvgAltitude(const quint32 enhancedAvgAltitude)
2699 {
2700  Q_D(SessionMessage);
2701  d->enhancedAvgAltitude = enhancedAvgAltitude;
2702 }
2703 /*!
2704  * Sets the \c enhancedMinAltitude field to \a enhancedMinAltitude.
2705  *
2706  * \param enhancedMinAltitude The field value to set.
2707  */
2708 void SessionMessage::setEnhancedMinAltitude(const quint32 enhancedMinAltitude)
2709 {
2710  Q_D(SessionMessage);
2711  d->enhancedMinAltitude = enhancedMinAltitude;
2712 }
2713 /*!
2714  * Sets the \c enhancedMaxAltitude field to \a enhancedMaxAltitude.
2715  *
2716  * \param enhancedMaxAltitude The field value to set.
2717  */
2718 void SessionMessage::setEnhancedMaxAltitude(const quint32 enhancedMaxAltitude)
2719 {
2720  Q_D(SessionMessage);
2721  d->enhancedMaxAltitude = enhancedMaxAltitude;
2722 }
2723 /*!
2724  * Sets the \c avgLevMotorPower field to \a avgLevMotorPower.
2725  *
2726  * \param avgLevMotorPower The field value to set.
2727  */
2728 void SessionMessage::setAvgLevMotorPower(const quint16 avgLevMotorPower)
2729 {
2730  Q_D(SessionMessage);
2731  d->avgLevMotorPower = avgLevMotorPower;
2732 }
2733 /*!
2734  * Sets the \c maxLevMotorPower field to \a maxLevMotorPower.
2735  *
2736  * \param maxLevMotorPower The field value to set.
2737  */
2738 void SessionMessage::setMaxLevMotorPower(const quint16 maxLevMotorPower)
2739 {
2740  Q_D(SessionMessage);
2741  d->maxLevMotorPower = maxLevMotorPower;
2742 }
2743 /*!
2744  * Sets the \c levBatteryConsumption field to \a levBatteryConsumption.
2745  *
2746  * \param levBatteryConsumption The field value to set.
2747  */
2748 void SessionMessage::setLevBatteryConsumption(const quint8 levBatteryConsumption)
2749 {
2750  Q_D(SessionMessage);
2751  d->levBatteryConsumption = levBatteryConsumption;
2752 }
2753 /*!
2754  * Sets the \c avgVerticalRatio field to \a avgVerticalRatio.
2755  *
2756  * \param avgVerticalRatio The field value to set.
2757  */
2758 void SessionMessage::setAvgVerticalRatio(const quint16 avgVerticalRatio)
2759 {
2760  Q_D(SessionMessage);
2761  d->avgVerticalRatio = avgVerticalRatio;
2762 }
2763 /*!
2764  * Sets the \c avgStanceTimeBalance field to \a avgStanceTimeBalance.
2765  *
2766  * \param avgStanceTimeBalance The field value to set.
2767  */
2768 void SessionMessage::setAvgStanceTimeBalance(const quint16 avgStanceTimeBalance)
2769 {
2770  Q_D(SessionMessage);
2771  d->avgStanceTimeBalance = avgStanceTimeBalance;
2772 }
2773 /*!
2774  * Sets the \c avgStepLength field to \a avgStepLength.
2775  *
2776  * \param avgStepLength The field value to set.
2777  */
2778 void SessionMessage::setAvgStepLength(const quint16 avgStepLength)
2779 {
2780  Q_D(SessionMessage);
2781  d->avgStepLength = avgStepLength;
2782 }
2783 /*!
2784  * Sets the \c totalAnaerobicTrainingEffect field to \a totalAnaerobicTrainingEffect.
2785  *
2786  * \param totalAnaerobicTrainingEffect The field value to set.
2787  */
2788 void SessionMessage::setTotalAnaerobicTrainingEffect(const quint8 totalAnaerobicTrainingEffect)
2789 {
2790  Q_D(SessionMessage);
2791  d->totalAnaerobicTrainingEffect = totalAnaerobicTrainingEffect;
2792 }
2793 /*!
2794  * Sets the \c avgVam field to \a avgVam.
2795  *
2796  * \param avgVam The field value to set.
2797  */
2798 void SessionMessage::setAvgVam(const quint16 avgVam)
2799 {
2800  Q_D(SessionMessage);
2801  d->avgVam = avgVam;
2802 }
2803 /*!
2804  * Sets the \c totalGrit field to \a totalGrit.
2805  *
2806  * \param totalGrit The field value to set.
2807  */
2808 void SessionMessage::setTotalGrit(const float totalGrit)
2809 {
2810  Q_D(SessionMessage);
2811  d->totalGrit = totalGrit;
2812 }
2813 /*!
2814  * Sets the \c totalFlow field to \a totalFlow.
2815  *
2816  * \param totalFlow The field value to set.
2817  */
2818 void SessionMessage::setTotalFlow(const float totalFlow)
2819 {
2820  Q_D(SessionMessage);
2821  d->totalFlow = totalFlow;
2822 }
2823 /*!
2824  * Sets the \c jumpCount field to \a jumpCount.
2825  *
2826  * \param jumpCount The field value to set.
2827  */
2828 void SessionMessage::setJumpCount(const quint16 jumpCount)
2829 {
2830  Q_D(SessionMessage);
2831  d->jumpCount = jumpCount;
2832 }
2833 /*!
2834  * Sets the \c avgGrit field to \a avgGrit.
2835  *
2836  * \param avgGrit The field value to set.
2837  */
2838 void SessionMessage::setAvgGrit(const float avgGrit)
2839 {
2840  Q_D(SessionMessage);
2841  d->avgGrit = avgGrit;
2842 }
2843 /*!
2844  * Sets the \c avgFlow field to \a avgFlow.
2845  *
2846  * \param avgFlow The field value to set.
2847  */
2848 void SessionMessage::setAvgFlow(const float avgFlow)
2849 {
2850  Q_D(SessionMessage);
2851  d->avgFlow = avgFlow;
2852 }
2853 /*!
2854  * Sets the \c totalFractionalAscent field to \a totalFractionalAscent.
2855  *
2856  * \param totalFractionalAscent The field value to set.
2857  */
2858 void SessionMessage::setTotalFractionalAscent(const quint8 totalFractionalAscent)
2859 {
2860  Q_D(SessionMessage);
2861  d->totalFractionalAscent = totalFractionalAscent;
2862 }
2863 /*!
2864  * Sets the \c totalFractionalDescent field to \a totalFractionalDescent.
2865  *
2866  * \param totalFractionalDescent The field value to set.
2867  */
2868 void SessionMessage::setTotalFractionalDescent(const quint8 totalFractionalDescent)
2869 {
2870  Q_D(SessionMessage);
2871  d->totalFractionalDescent = totalFractionalDescent;
2872 }
2873 /*!
2874  * Sets the \c avgCoreTemperature field to \a avgCoreTemperature.
2875  *
2876  * \param avgCoreTemperature The field value to set.
2877  */
2878 void SessionMessage::setAvgCoreTemperature(const quint16 avgCoreTemperature)
2879 {
2880  Q_D(SessionMessage);
2881  d->avgCoreTemperature = avgCoreTemperature;
2882 }
2883 /*!
2884  * Sets the \c minCoreTemperature field to \a minCoreTemperature.
2885  *
2886  * \param minCoreTemperature The field value to set.
2887  */
2888 void SessionMessage::setMinCoreTemperature(const quint16 minCoreTemperature)
2889 {
2890  Q_D(SessionMessage);
2891  d->minCoreTemperature = minCoreTemperature;
2892 }
2893 /*!
2894  * Sets the \c maxCoreTemperature field to \a maxCoreTemperature.
2895  *
2896  * \param maxCoreTemperature The field value to set.
2897  */
2898 void SessionMessage::setMaxCoreTemperature(const quint16 maxCoreTemperature)
2899 {
2900  Q_D(SessionMessage);
2901  d->maxCoreTemperature = maxCoreTemperature;
2902 }
2903 
2904 /// \cond internal
2905 
2906 /*!
2907  * \internal
2908  *
2909  * \class SessionMessagePrivate
2910  *
2911  * The SessionMessagePrivate class provides private implementation for the SessionMessage.
2912  *
2913  * \sa SessionMessage
2914  */
2915 
2916 /*!
2917  * \internal
2918  *
2919  * Constructs a SessionMessagePrivate object with public implementation \a q.
2920  *
2921  * \param q Pointer to public implementaton.
2922  */
2923 SessionMessagePrivate::SessionMessagePrivate(SessionMessage * const q)
2925  , messageIndex(static_cast<MessageIndex>(-1))
2926  , timestamp(static_cast<DateTime>(-1))
2927  , event(static_cast<Event>(-1))
2928  , eventType(static_cast<EventType>(-1))
2929  , startTime(static_cast<DateTime>(-1))
2930  , startPositionLat(0x7FFFFFFF)
2931  , startPositionLong(0x7FFFFFFF)
2932  , sport(static_cast<Sport>(-1))
2933  , subSport(static_cast<SubSport>(-1))
2934  , totalElapsedTime(0xFFFFFFFF)
2935  , totalTimerTime(0xFFFFFFFF)
2936  , totalDistance(0xFFFFFFFF)
2937  , totalCycles(0xFFFFFFFF)
2938  , totalCalories(0xFFFF)
2939  , totalFatCalories(0xFFFF)
2940  , avgSpeed(0xFFFF)
2941  , maxSpeed(0xFFFF)
2942  , avgHeartRate(0xFF)
2943  , maxHeartRate(0xFF)
2944  , avgCadence(0xFF)
2945  , maxCadence(0xFF)
2946  , avgPower(0xFFFF)
2947  , maxPower(0xFFFF)
2948  , totalAscent(0xFFFF)
2949  , totalDescent(0xFFFF)
2950  , totalTrainingEffect(0xFF)
2951  , firstLapIndex(0xFFFF)
2952  , numLaps(0xFFFF)
2953  , eventGroup(0xFF)
2954  , trigger(static_cast<SessionTrigger>(-1))
2955  , necLat(0x7FFFFFFF)
2956  , necLong(0x7FFFFFFF)
2957  , swcLat(0x7FFFFFFF)
2958  , swcLong(0x7FFFFFFF)
2959  , numLengths(0xFFFF)
2960  , normalizedPower(0xFFFF)
2961  , trainingStressScore(0xFFFF)
2962  , intensityFactor(0xFFFF)
2963  , leftRightBalance(static_cast<LeftRightBalance100>(-1))
2964  , avgStrokeCount(0xFFFFFFFF)
2965  , avgStrokeDistance(0xFFFF)
2966  , swimStroke(static_cast<SwimStroke>(-1))
2967  , poolLength(0xFFFF)
2968  , thresholdPower(0xFFFF)
2969  , poolLengthUnit(static_cast<DisplayMeasure>(-1))
2970  , numActiveLengths(0xFFFF)
2971  , totalWork(0xFFFFFFFF)
2972  , avgAltitude(0xFFFF)
2973  , maxAltitude(0xFFFF)
2974  , gpsAccuracy(0xFF)
2975  , avgGrade(0x7FFF)
2976  , avgPosGrade(0x7FFF)
2977  , avgNegGrade(0x7FFF)
2978  , maxPosGrade(0x7FFF)
2979  , maxNegGrade(0x7FFF)
2980  , avgTemperature(0x7F)
2981  , maxTemperature(0x7F)
2982  , totalMovingTime(0xFFFFFFFF)
2983  , avgPosVerticalSpeed(0x7FFF)
2984  , avgNegVerticalSpeed(0x7FFF)
2985  , maxPosVerticalSpeed(0x7FFF)
2986  , maxNegVerticalSpeed(0x7FFF)
2987  , minHeartRate(0xFF)
2988  , timeInHrZone(0xFFFFFFFF)
2989  , timeInSpeedZone(0xFFFFFFFF)
2990  , timeInCadenceZone(0xFFFFFFFF)
2991  , timeInPowerZone(0xFFFFFFFF)
2992  , avgLapTime(0xFFFFFFFF)
2993  , bestLapIndex(0xFFFF)
2994  , minAltitude(0xFFFF)
2995  , playerScore(0xFFFF)
2996  , opponentScore(0xFFFF)
2997  , strokeCount(0xFFFF)
2998  , zoneCount(0xFFFF)
2999  , maxBallSpeed(0xFFFF)
3000  , avgBallSpeed(0xFFFF)
3001  , avgVerticalOscillation(0xFFFF)
3002  , avgStanceTimePercent(0xFFFF)
3003  , avgStanceTime(0xFFFF)
3004  , avgFractionalCadence(0xFF)
3005  , maxFractionalCadence(0xFF)
3006  , totalFractionalCycles(0xFF)
3007  , avgTotalHemoglobinConc(0xFFFF)
3008  , minTotalHemoglobinConc(0xFFFF)
3009  , maxTotalHemoglobinConc(0xFFFF)
3010  , avgSaturatedHemoglobinPercent(0xFFFF)
3011  , minSaturatedHemoglobinPercent(0xFFFF)
3012  , maxSaturatedHemoglobinPercent(0xFFFF)
3013  , avgLeftTorqueEffectiveness(0xFF)
3014  , avgRightTorqueEffectiveness(0xFF)
3015  , avgLeftPedalSmoothness(0xFF)
3016  , avgRightPedalSmoothness(0xFF)
3017  , avgCombinedPedalSmoothness(0xFF)
3018  , sportIndex(0xFF)
3019  , timeStanding(0xFFFFFFFF)
3020  , standCount(0xFFFF)
3021  , avgLeftPco(0x7F)
3022  , avgRightPco(0x7F)
3023  , avgLeftPowerPhase(0xFF)
3024  , avgLeftPowerPhasePeak(0xFF)
3025  , avgRightPowerPhase(0xFF)
3026  , avgRightPowerPhasePeak(0xFF)
3027  , avgPowerPosition(0xFFFF)
3028  , maxPowerPosition(0xFFFF)
3029  , avgCadencePosition(0xFF)
3030  , maxCadencePosition(0xFF)
3031  , enhancedAvgSpeed(0xFFFFFFFF)
3032  , enhancedMaxSpeed(0xFFFFFFFF)
3033  , enhancedAvgAltitude(0xFFFFFFFF)
3034  , enhancedMinAltitude(0xFFFFFFFF)
3035  , enhancedMaxAltitude(0xFFFFFFFF)
3036  , avgLevMotorPower(0xFFFF)
3037  , maxLevMotorPower(0xFFFF)
3038  , levBatteryConsumption(0xFF)
3039  , avgVerticalRatio(0xFFFF)
3040  , avgStanceTimeBalance(0xFFFF)
3041  , avgStepLength(0xFFFF)
3042  , totalAnaerobicTrainingEffect(0xFF)
3043  , avgVam(0xFFFF)
3044  , totalGrit(static_cast<float>(-1))
3045  , totalFlow(static_cast<float>(-1))
3046  , jumpCount(0xFFFF)
3047  , avgGrit(static_cast<float>(-1))
3048  , avgFlow(static_cast<float>(-1))
3049  , totalFractionalAscent(0xFF)
3050  , totalFractionalDescent(0xFF)
3051  , avgCoreTemperature(0xFFFF)
3052  , minCoreTemperature(0xFFFF)
3053  , maxCoreTemperature(0xFFFF)
3054 {
3055  globalMessageNumber = MesgNum::Session;
3056 }
3057 
3058 /*!
3059  * \internal
3060  *
3061  * Destroys the SessionMessagePrivate object.
3062  */
3064 {
3065 
3066 }
3067 
3069  const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian)
3070 {
3071  switch (fieldId) {
3072  case 254: // See Profile.xlsx::Messages:session.messageIndex
3073  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.messageIndex")) return false;
3074  this->messageIndex = static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3075  break;
3076  case 253: // See Profile.xlsx::Messages:session.timestamp
3077  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timestamp")) return false;
3078  this->timestamp = static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3079  break;
3080  case 0: // See Profile.xlsx::Messages:session.event
3081  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.event")) return false;
3082  this->event = static_cast<Event>(data.at(0));
3083  break;
3084  case 1: // See Profile.xlsx::Messages:session.eventType
3085  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.eventType")) return false;
3086  this->eventType = static_cast<EventType>(data.at(0));
3087  break;
3088  case 2: // See Profile.xlsx::Messages:session.startTime
3089  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.startTime")) return false;
3090  this->startTime = static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3091  break;
3092  case 3: // See Profile.xlsx::Messages:session.startPositionLat
3093  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.startPositionLat")) return false;
3094  this->startPositionLat = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3095  break;
3096  case 4: // See Profile.xlsx::Messages:session.startPositionLong
3097  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.startPositionLong")) return false;
3098  this->startPositionLong = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3099  break;
3100  case 5: // See Profile.xlsx::Messages:session.sport
3101  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.sport")) return false;
3102  this->sport = static_cast<Sport>(data.at(0));
3103  break;
3104  case 6: // See Profile.xlsx::Messages:session.subSport
3105  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.subSport")) return false;
3106  this->subSport = static_cast<SubSport>(data.at(0));
3107  break;
3108  case 7: // See Profile.xlsx::Messages:session.totalElapsedTime
3109  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalElapsedTime")) return false;
3110  this->totalElapsedTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3111  break;
3112  case 8: // See Profile.xlsx::Messages:session.totalTimerTime
3113  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalTimerTime")) return false;
3114  this->totalTimerTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3115  break;
3116  case 9: // See Profile.xlsx::Messages:session.totalDistance
3117  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalDistance")) return false;
3118  this->totalDistance = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3119  break;
3120  case 10: // See Profile.xlsx::Messages:session.totalCycles
3121  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalCycles")) return false;
3122  this->totalCycles = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3123  break;
3124  case 11: // See Profile.xlsx::Messages:session.totalCalories
3125  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.totalCalories")) return false;
3126  this->totalCalories = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3127  break;
3128  case 13: // See Profile.xlsx::Messages:session.totalFatCalories
3129  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.totalFatCalories")) return false;
3130  this->totalFatCalories = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3131  break;
3132  case 14: // See Profile.xlsx::Messages:session.avgSpeed
3133  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgSpeed")) return false;
3134  this->avgSpeed = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3135  break;
3136  case 15: // See Profile.xlsx::Messages:session.maxSpeed
3137  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxSpeed")) return false;
3138  this->maxSpeed = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3139  break;
3140  case 16: // See Profile.xlsx::Messages:session.avgHeartRate
3141  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgHeartRate")) return false;
3142  this->avgHeartRate = static_cast<quint8>(data.at(0));
3143  break;
3144  case 17: // See Profile.xlsx::Messages:session.maxHeartRate
3145  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.maxHeartRate")) return false;
3146  this->maxHeartRate = static_cast<quint8>(data.at(0));
3147  break;
3148  case 18: // See Profile.xlsx::Messages:session.avgCadence
3149  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgCadence")) return false;
3150  this->avgCadence = static_cast<quint8>(data.at(0));
3151  break;
3152  case 19: // See Profile.xlsx::Messages:session.maxCadence
3153  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.maxCadence")) return false;
3154  this->maxCadence = static_cast<quint8>(data.at(0));
3155  break;
3156  case 20: // See Profile.xlsx::Messages:session.avgPower
3157  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgPower")) return false;
3158  this->avgPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3159  break;
3160  case 21: // See Profile.xlsx::Messages:session.maxPower
3161  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxPower")) return false;
3162  this->maxPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3163  break;
3164  case 22: // See Profile.xlsx::Messages:session.totalAscent
3165  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.totalAscent")) return false;
3166  this->totalAscent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3167  break;
3168  case 23: // See Profile.xlsx::Messages:session.totalDescent
3169  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.totalDescent")) return false;
3170  this->totalDescent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3171  break;
3172  case 24: // See Profile.xlsx::Messages:session.totalTrainingEffect
3173  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.totalTrainingEffect")) return false;
3174  this->totalTrainingEffect = static_cast<quint8>(data.at(0));
3175  break;
3176  case 25: // See Profile.xlsx::Messages:session.firstLapIndex
3177  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.firstLapIndex")) return false;
3178  this->firstLapIndex = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3179  break;
3180  case 26: // See Profile.xlsx::Messages:session.numLaps
3181  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.numLaps")) return false;
3182  this->numLaps = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3183  break;
3184  case 27: // See Profile.xlsx::Messages:session.eventGroup
3185  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.eventGroup")) return false;
3186  this->eventGroup = static_cast<quint8>(data.at(0));
3187  break;
3188  case 28: // See Profile.xlsx::Messages:session.trigger
3189  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.trigger")) return false;
3190  this->trigger = static_cast<SessionTrigger>(data.at(0));
3191  break;
3192  case 29: // See Profile.xlsx::Messages:session.necLat
3193  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.necLat")) return false;
3194  this->necLat = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3195  break;
3196  case 30: // See Profile.xlsx::Messages:session.necLong
3197  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.necLong")) return false;
3198  this->necLong = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3199  break;
3200  case 31: // See Profile.xlsx::Messages:session.swcLat
3201  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.swcLat")) return false;
3202  this->swcLat = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3203  break;
3204  case 32: // See Profile.xlsx::Messages:session.swcLong
3205  if (!verify(data, baseType, 4, FitBaseType::Sint32, "session.swcLong")) return false;
3206  this->swcLong = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
3207  break;
3208  case 33: // See Profile.xlsx::Messages:session.numLengths
3209  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.numLengths")) return false;
3210  this->numLengths = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3211  break;
3212  case 34: // See Profile.xlsx::Messages:session.normalizedPower
3213  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.normalizedPower")) return false;
3214  this->normalizedPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3215  break;
3216  case 35: // See Profile.xlsx::Messages:session.trainingStressScore
3217  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.trainingStressScore")) return false;
3218  this->trainingStressScore = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3219  break;
3220  case 36: // See Profile.xlsx::Messages:session.intensityFactor
3221  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.intensityFactor")) return false;
3222  this->intensityFactor = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3223  break;
3224  case 37: // See Profile.xlsx::Messages:session.leftRightBalance
3225  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.leftRightBalance")) return false;
3226  this->leftRightBalance = static_cast<LeftRightBalance100>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3227  break;
3228  case 41: // See Profile.xlsx::Messages:session.avgStrokeCount
3229  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.avgStrokeCount")) return false;
3230  this->avgStrokeCount = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3231  break;
3232  case 42: // See Profile.xlsx::Messages:session.avgStrokeDistance
3233  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgStrokeDistance")) return false;
3234  this->avgStrokeDistance = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3235  break;
3236  case 43: // See Profile.xlsx::Messages:session.swimStroke
3237  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.swimStroke")) return false;
3238  this->swimStroke = static_cast<SwimStroke>(data.at(0));
3239  break;
3240  case 44: // See Profile.xlsx::Messages:session.poolLength
3241  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.poolLength")) return false;
3242  this->poolLength = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3243  break;
3244  case 45: // See Profile.xlsx::Messages:session.thresholdPower
3245  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.thresholdPower")) return false;
3246  this->thresholdPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3247  break;
3248  case 46: // See Profile.xlsx::Messages:session.poolLengthUnit
3249  if (!verify(data, baseType, 1, FitBaseType::Enum, "session.poolLengthUnit")) return false;
3250  this->poolLengthUnit = static_cast<DisplayMeasure>(data.at(0));
3251  break;
3252  case 47: // See Profile.xlsx::Messages:session.numActiveLengths
3253  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.numActiveLengths")) return false;
3254  this->numActiveLengths = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3255  break;
3256  case 48: // See Profile.xlsx::Messages:session.totalWork
3257  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalWork")) return false;
3258  this->totalWork = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3259  break;
3260  case 49: // See Profile.xlsx::Messages:session.avgAltitude
3261  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgAltitude")) return false;
3262  this->avgAltitude = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3263  break;
3264  case 50: // See Profile.xlsx::Messages:session.maxAltitude
3265  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxAltitude")) return false;
3266  this->maxAltitude = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3267  break;
3268  case 51: // See Profile.xlsx::Messages:session.gpsAccuracy
3269  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.gpsAccuracy")) return false;
3270  this->gpsAccuracy = static_cast<quint8>(data.at(0));
3271  break;
3272  case 52: // See Profile.xlsx::Messages:session.avgGrade
3273  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.avgGrade")) return false;
3274  this->avgGrade = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3275  break;
3276  case 53: // See Profile.xlsx::Messages:session.avgPosGrade
3277  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.avgPosGrade")) return false;
3278  this->avgPosGrade = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3279  break;
3280  case 54: // See Profile.xlsx::Messages:session.avgNegGrade
3281  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.avgNegGrade")) return false;
3282  this->avgNegGrade = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3283  break;
3284  case 55: // See Profile.xlsx::Messages:session.maxPosGrade
3285  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.maxPosGrade")) return false;
3286  this->maxPosGrade = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3287  break;
3288  case 56: // See Profile.xlsx::Messages:session.maxNegGrade
3289  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.maxNegGrade")) return false;
3290  this->maxNegGrade = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3291  break;
3292  case 57: // See Profile.xlsx::Messages:session.avgTemperature
3293  if (!verify(data, baseType, 1, FitBaseType::Sint8, "session.avgTemperature")) return false;
3294  this->avgTemperature = static_cast<qint8>(data.at(0));
3295  break;
3296  case 58: // See Profile.xlsx::Messages:session.maxTemperature
3297  if (!verify(data, baseType, 1, FitBaseType::Sint8, "session.maxTemperature")) return false;
3298  this->maxTemperature = static_cast<qint8>(data.at(0));
3299  break;
3300  case 59: // See Profile.xlsx::Messages:session.totalMovingTime
3301  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.totalMovingTime")) return false;
3302  this->totalMovingTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3303  break;
3304  case 60: // See Profile.xlsx::Messages:session.avgPosVerticalSpeed
3305  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.avgPosVerticalSpeed")) return false;
3306  this->avgPosVerticalSpeed = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3307  break;
3308  case 61: // See Profile.xlsx::Messages:session.avgNegVerticalSpeed
3309  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.avgNegVerticalSpeed")) return false;
3310  this->avgNegVerticalSpeed = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3311  break;
3312  case 62: // See Profile.xlsx::Messages:session.maxPosVerticalSpeed
3313  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.maxPosVerticalSpeed")) return false;
3314  this->maxPosVerticalSpeed = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3315  break;
3316  case 63: // See Profile.xlsx::Messages:session.maxNegVerticalSpeed
3317  if (!verify(data, baseType, 2, FitBaseType::Sint16, "session.maxNegVerticalSpeed")) return false;
3318  this->maxNegVerticalSpeed = static_cast<qint16>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
3319  break;
3320  case 64: // See Profile.xlsx::Messages:session.minHeartRate
3321  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.minHeartRate")) return false;
3322  this->minHeartRate = static_cast<quint8>(data.at(0));
3323  break;
3324  case 65: // See Profile.xlsx::Messages:session.timeInHrZone
3325  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timeInHrZone")) return false;
3326  this->timeInHrZone = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3327  break;
3328  case 66: // See Profile.xlsx::Messages:session.timeInSpeedZone
3329  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timeInSpeedZone")) return false;
3330  this->timeInSpeedZone = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3331  break;
3332  case 67: // See Profile.xlsx::Messages:session.timeInCadenceZone
3333  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timeInCadenceZone")) return false;
3334  this->timeInCadenceZone = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3335  break;
3336  case 68: // See Profile.xlsx::Messages:session.timeInPowerZone
3337  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timeInPowerZone")) return false;
3338  this->timeInPowerZone = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3339  break;
3340  case 69: // See Profile.xlsx::Messages:session.avgLapTime
3341  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.avgLapTime")) return false;
3342  this->avgLapTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3343  break;
3344  case 70: // See Profile.xlsx::Messages:session.bestLapIndex
3345  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.bestLapIndex")) return false;
3346  this->bestLapIndex = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3347  break;
3348  case 71: // See Profile.xlsx::Messages:session.minAltitude
3349  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.minAltitude")) return false;
3350  this->minAltitude = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3351  break;
3352  case 82: // See Profile.xlsx::Messages:session.playerScore
3353  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.playerScore")) return false;
3354  this->playerScore = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3355  break;
3356  case 83: // See Profile.xlsx::Messages:session.opponentScore
3357  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.opponentScore")) return false;
3358  this->opponentScore = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3359  break;
3360  case 84: // See Profile.xlsx::Messages:session.opponentName
3361  if (!verify(data, baseType, 1, FitBaseType::String, "session.opponentName")) return false;
3362  this->opponentName = QString::fromUtf8(data);
3363  break;
3364  case 85: // See Profile.xlsx::Messages:session.strokeCount
3365  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.strokeCount")) return false;
3366  this->strokeCount = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3367  break;
3368  case 86: // See Profile.xlsx::Messages:session.zoneCount
3369  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.zoneCount")) return false;
3370  this->zoneCount = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3371  break;
3372  case 87: // See Profile.xlsx::Messages:session.maxBallSpeed
3373  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxBallSpeed")) return false;
3374  this->maxBallSpeed = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3375  break;
3376  case 88: // See Profile.xlsx::Messages:session.avgBallSpeed
3377  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgBallSpeed")) return false;
3378  this->avgBallSpeed = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3379  break;
3380  case 89: // See Profile.xlsx::Messages:session.avgVerticalOscillation
3381  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgVerticalOscillation")) return false;
3382  this->avgVerticalOscillation = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3383  break;
3384  case 90: // See Profile.xlsx::Messages:session.avgStanceTimePercent
3385  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgStanceTimePercent")) return false;
3386  this->avgStanceTimePercent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3387  break;
3388  case 91: // See Profile.xlsx::Messages:session.avgStanceTime
3389  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgStanceTime")) return false;
3390  this->avgStanceTime = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3391  break;
3392  case 92: // See Profile.xlsx::Messages:session.avgFractionalCadence
3393  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgFractionalCadence")) return false;
3394  this->avgFractionalCadence = static_cast<quint8>(data.at(0));
3395  break;
3396  case 93: // See Profile.xlsx::Messages:session.maxFractionalCadence
3397  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.maxFractionalCadence")) return false;
3398  this->maxFractionalCadence = static_cast<quint8>(data.at(0));
3399  break;
3400  case 94: // See Profile.xlsx::Messages:session.totalFractionalCycles
3401  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.totalFractionalCycles")) return false;
3402  this->totalFractionalCycles = static_cast<quint8>(data.at(0));
3403  break;
3404  case 95: // See Profile.xlsx::Messages:session.avgTotalHemoglobinConc
3405  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgTotalHemoglobinConc")) return false;
3406  this->avgTotalHemoglobinConc = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3407  break;
3408  case 96: // See Profile.xlsx::Messages:session.minTotalHemoglobinConc
3409  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.minTotalHemoglobinConc")) return false;
3410  this->minTotalHemoglobinConc = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3411  break;
3412  case 97: // See Profile.xlsx::Messages:session.maxTotalHemoglobinConc
3413  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxTotalHemoglobinConc")) return false;
3414  this->maxTotalHemoglobinConc = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3415  break;
3416  case 98: // See Profile.xlsx::Messages:session.avgSaturatedHemoglobinPercent
3417  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgSaturatedHemoglobinPercent")) return false;
3418  this->avgSaturatedHemoglobinPercent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3419  break;
3420  case 99: // See Profile.xlsx::Messages:session.minSaturatedHemoglobinPercent
3421  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.minSaturatedHemoglobinPercent")) return false;
3422  this->minSaturatedHemoglobinPercent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3423  break;
3424  case 100: // See Profile.xlsx::Messages:session.maxSaturatedHemoglobinPercent
3425  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxSaturatedHemoglobinPercent")) return false;
3426  this->maxSaturatedHemoglobinPercent = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3427  break;
3428  case 101: // See Profile.xlsx::Messages:session.avgLeftTorqueEffectiveness
3429  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgLeftTorqueEffectiveness")) return false;
3430  this->avgLeftTorqueEffectiveness = static_cast<quint8>(data.at(0));
3431  break;
3432  case 102: // See Profile.xlsx::Messages:session.avgRightTorqueEffectiveness
3433  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgRightTorqueEffectiveness")) return false;
3434  this->avgRightTorqueEffectiveness = static_cast<quint8>(data.at(0));
3435  break;
3436  case 103: // See Profile.xlsx::Messages:session.avgLeftPedalSmoothness
3437  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgLeftPedalSmoothness")) return false;
3438  this->avgLeftPedalSmoothness = static_cast<quint8>(data.at(0));
3439  break;
3440  case 104: // See Profile.xlsx::Messages:session.avgRightPedalSmoothness
3441  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgRightPedalSmoothness")) return false;
3442  this->avgRightPedalSmoothness = static_cast<quint8>(data.at(0));
3443  break;
3444  case 105: // See Profile.xlsx::Messages:session.avgCombinedPedalSmoothness
3445  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgCombinedPedalSmoothness")) return false;
3446  this->avgCombinedPedalSmoothness = static_cast<quint8>(data.at(0));
3447  break;
3448  case 111: // See Profile.xlsx::Messages:session.sportIndex
3449  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.sportIndex")) return false;
3450  this->sportIndex = static_cast<quint8>(data.at(0));
3451  break;
3452  case 112: // See Profile.xlsx::Messages:session.timeStanding
3453  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.timeStanding")) return false;
3454  this->timeStanding = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3455  break;
3456  case 113: // See Profile.xlsx::Messages:session.standCount
3457  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.standCount")) return false;
3458  this->standCount = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3459  break;
3460  case 114: // See Profile.xlsx::Messages:session.avgLeftPco
3461  if (!verify(data, baseType, 1, FitBaseType::Sint8, "session.avgLeftPco")) return false;
3462  this->avgLeftPco = static_cast<qint8>(data.at(0));
3463  break;
3464  case 115: // See Profile.xlsx::Messages:session.avgRightPco
3465  if (!verify(data, baseType, 1, FitBaseType::Sint8, "session.avgRightPco")) return false;
3466  this->avgRightPco = static_cast<qint8>(data.at(0));
3467  break;
3468  case 116: // See Profile.xlsx::Messages:session.avgLeftPowerPhase
3469  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgLeftPowerPhase")) return false;
3470  this->avgLeftPowerPhase = static_cast<quint8>(data.at(0));
3471  break;
3472  case 117: // See Profile.xlsx::Messages:session.avgLeftPowerPhasePeak
3473  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgLeftPowerPhasePeak")) return false;
3474  this->avgLeftPowerPhasePeak = static_cast<quint8>(data.at(0));
3475  break;
3476  case 118: // See Profile.xlsx::Messages:session.avgRightPowerPhase
3477  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgRightPowerPhase")) return false;
3478  this->avgRightPowerPhase = static_cast<quint8>(data.at(0));
3479  break;
3480  case 119: // See Profile.xlsx::Messages:session.avgRightPowerPhasePeak
3481  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgRightPowerPhasePeak")) return false;
3482  this->avgRightPowerPhasePeak = static_cast<quint8>(data.at(0));
3483  break;
3484  case 120: // See Profile.xlsx::Messages:session.avgPowerPosition
3485  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgPowerPosition")) return false;
3486  this->avgPowerPosition = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3487  break;
3488  case 121: // See Profile.xlsx::Messages:session.maxPowerPosition
3489  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxPowerPosition")) return false;
3490  this->maxPowerPosition = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3491  break;
3492  case 122: // See Profile.xlsx::Messages:session.avgCadencePosition
3493  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.avgCadencePosition")) return false;
3494  this->avgCadencePosition = static_cast<quint8>(data.at(0));
3495  break;
3496  case 123: // See Profile.xlsx::Messages:session.maxCadencePosition
3497  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.maxCadencePosition")) return false;
3498  this->maxCadencePosition = static_cast<quint8>(data.at(0));
3499  break;
3500  case 124: // See Profile.xlsx::Messages:session.enhancedAvgSpeed
3501  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.enhancedAvgSpeed")) return false;
3502  this->enhancedAvgSpeed = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3503  break;
3504  case 125: // See Profile.xlsx::Messages:session.enhancedMaxSpeed
3505  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.enhancedMaxSpeed")) return false;
3506  this->enhancedMaxSpeed = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3507  break;
3508  case 126: // See Profile.xlsx::Messages:session.enhancedAvgAltitude
3509  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.enhancedAvgAltitude")) return false;
3510  this->enhancedAvgAltitude = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3511  break;
3512  case 127: // See Profile.xlsx::Messages:session.enhancedMinAltitude
3513  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.enhancedMinAltitude")) return false;
3514  this->enhancedMinAltitude = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3515  break;
3516  case 128: // See Profile.xlsx::Messages:session.enhancedMaxAltitude
3517  if (!verify(data, baseType, 4, FitBaseType::Uint32, "session.enhancedMaxAltitude")) return false;
3518  this->enhancedMaxAltitude = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
3519  break;
3520  case 129: // See Profile.xlsx::Messages:session.avgLevMotorPower
3521  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgLevMotorPower")) return false;
3522  this->avgLevMotorPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3523  break;
3524  case 130: // See Profile.xlsx::Messages:session.maxLevMotorPower
3525  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxLevMotorPower")) return false;
3526  this->maxLevMotorPower = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3527  break;
3528  case 131: // See Profile.xlsx::Messages:session.levBatteryConsumption
3529  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.levBatteryConsumption")) return false;
3530  this->levBatteryConsumption = static_cast<quint8>(data.at(0));
3531  break;
3532  case 132: // See Profile.xlsx::Messages:session.avgVerticalRatio
3533  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgVerticalRatio")) return false;
3534  this->avgVerticalRatio = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3535  break;
3536  case 133: // See Profile.xlsx::Messages:session.avgStanceTimeBalance
3537  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgStanceTimeBalance")) return false;
3538  this->avgStanceTimeBalance = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3539  break;
3540  case 134: // See Profile.xlsx::Messages:session.avgStepLength
3541  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgStepLength")) return false;
3542  this->avgStepLength = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3543  break;
3544  case 137: // See Profile.xlsx::Messages:session.totalAnaerobicTrainingEffect
3545  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.totalAnaerobicTrainingEffect")) return false;
3546  this->totalAnaerobicTrainingEffect = static_cast<quint8>(data.at(0));
3547  break;
3548  case 139: // See Profile.xlsx::Messages:session.avgVam
3549  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgVam")) return false;
3550  this->avgVam = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3551  break;
3552  case 181: // See Profile.xlsx::Messages:session.totalGrit
3553  if (!verify(data, baseType, 4, FitBaseType::Float32, "session.totalGrit")) return false;
3554  #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
3555  { // Qt's from-endian functions have no float/double specialisations prior to Qt 5.12.
3556  const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
3557  static_assert(sizeof(localEndian) == 4, "src not expected size");
3558  static_assert(sizeof(this->totalGrit) == 4, "src and dst not the same size");
3559  memcpy(&this->totalGrit, &localEndian, data.size());
3560  }
3561  #else
3562  this->totalGrit = static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
3563  #endif
3564  break;
3565  case 182: // See Profile.xlsx::Messages:session.totalFlow
3566  if (!verify(data, baseType, 4, FitBaseType::Float32, "session.totalFlow")) return false;
3567  #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
3568  { // Qt's from-endian functions have no float/double specialisations prior to Qt 5.12.
3569  const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
3570  static_assert(sizeof(localEndian) == 4, "src not expected size");
3571  static_assert(sizeof(this->totalFlow) == 4, "src and dst not the same size");
3572  memcpy(&this->totalFlow, &localEndian, data.size());
3573  }
3574  #else
3575  this->totalFlow = static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
3576  #endif
3577  break;
3578  case 183: // See Profile.xlsx::Messages:session.jumpCount
3579  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.jumpCount")) return false;
3580  this->jumpCount = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3581  break;
3582  case 186: // See Profile.xlsx::Messages:session.avgGrit
3583  if (!verify(data, baseType, 4, FitBaseType::Float32, "session.avgGrit")) return false;
3584  #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
3585  { // Qt's from-endian functions have no float/double specialisations prior to Qt 5.12.
3586  const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
3587  static_assert(sizeof(localEndian) == 4, "src not expected size");
3588  static_assert(sizeof(this->avgGrit) == 4, "src and dst not the same size");
3589  memcpy(&this->avgGrit, &localEndian, data.size());
3590  }
3591  #else
3592  this->avgGrit = static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
3593  #endif
3594  break;
3595  case 187: // See Profile.xlsx::Messages:session.avgFlow
3596  if (!verify(data, baseType, 4, FitBaseType::Float32, "session.avgFlow")) return false;
3597  #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
3598  { // Qt's from-endian functions have no float/double specialisations prior to Qt 5.12.
3599  const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
3600  static_assert(sizeof(localEndian) == 4, "src not expected size");
3601  static_assert(sizeof(this->avgFlow) == 4, "src and dst not the same size");
3602  memcpy(&this->avgFlow, &localEndian, data.size());
3603  }
3604  #else
3605  this->avgFlow = static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
3606  #endif
3607  break;
3608  case 199: // See Profile.xlsx::Messages:session.totalFractionalAscent
3609  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.totalFractionalAscent")) return false;
3610  this->totalFractionalAscent = static_cast<quint8>(data.at(0));
3611  break;
3612  case 200: // See Profile.xlsx::Messages:session.totalFractionalDescent
3613  if (!verify(data, baseType, 1, FitBaseType::Uint8, "session.totalFractionalDescent")) return false;
3614  this->totalFractionalDescent = static_cast<quint8>(data.at(0));
3615  break;
3616  case 208: // See Profile.xlsx::Messages:session.avgCoreTemperature
3617  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.avgCoreTemperature")) return false;
3618  this->avgCoreTemperature = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3619  break;
3620  case 209: // See Profile.xlsx::Messages:session.minCoreTemperature
3621  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.minCoreTemperature")) return false;
3622  this->minCoreTemperature = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3623  break;
3624  case 210: // See Profile.xlsx::Messages:session.maxCoreTemperature
3625  if (!verify(data, baseType, 2, FitBaseType::Uint16, "session.maxCoreTemperature")) return false;
3626  this->maxCoreTemperature = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
3627  break;
3628  default:
3629  qWarning() << "ignoring unknown session message field number" << fieldId << bigEndian;
3630  // Fall through to return true, as its still 'safe' to continue parsing data messages.
3631  }
3632  return true;
3633 }
3634 
3635 /// \endcond
3636 
#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
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
quint32 enhancedAvgSpeed
The SessionMessage FIT message's enhancedAvgSpeed field.
quint32 totalTimerTime
The SessionMessage FIT message's totalTimerTime field.
quint16 firstLapIndex
The SessionMessage FIT message's firstLapIndex field.
quint32 avgStrokeCount
The SessionMessage FIT message's avgStrokeCount field.
quint8 totalTrainingEffect
The SessionMessage FIT message's totalTrainingEffect field.
quint16 avgStepLength
The SessionMessage FIT message's avgStepLength field.
quint8 levBatteryConsumption
The SessionMessage FIT message's levBatteryConsumption field.
quint16 poolLength
The SessionMessage FIT message's poolLength field.
quint8 gpsAccuracy
The SessionMessage FIT message's gpsAccuracy field.
quint16 avgStanceTime
The SessionMessage FIT message's avgStanceTime field.
quint16 avgLevMotorPower
The SessionMessage FIT message's avgLevMotorPower field.
quint8 avgCadencePosition
The SessionMessage FIT message's avgCadencePosition field.
quint8 avgLeftPowerPhase
The SessionMessage FIT message's avgLeftPowerPhase field.
qint8 avgRightPco
The SessionMessage FIT message's avgRightPco field.
SessionTrigger trigger
The SessionMessage FIT message's trigger field.
quint16 jumpCount
The SessionMessage FIT message's jumpCount field.
quint16 numLaps
The SessionMessage FIT message's numLaps field.
quint32 totalDistance
The SessionMessage FIT message's totalDistance field.
qint16 maxNegVerticalSpeed
The SessionMessage FIT message's maxNegVerticalSpeed field.
quint16 avgTotalHemoglobinConc
The SessionMessage FIT message's avgTotalHemoglobinConc field.
quint16 numLengths
The SessionMessage FIT message's numLengths field.
float avgFlow
The SessionMessage FIT message's avgFlow field.
qint16 maxPosVerticalSpeed
The SessionMessage FIT message's maxPosVerticalSpeed field.
quint16 maxCoreTemperature
The SessionMessage FIT message's maxCoreTemperature field.
quint8 avgLeftTorqueEffectiveness
The SessionMessage FIT message's avgLeftTorqueEffectiveness field.
quint16 totalCalories
The SessionMessage FIT message's totalCalories field.
quint16 minSaturatedHemoglobinPercent
The SessionMessage FIT message's minSaturatedHemoglobinPercent field.
quint16 avgVerticalOscillation
The SessionMessage FIT message's avgVerticalOscillation field.
quint32 totalWork
The SessionMessage FIT message's totalWork field.
quint16 trainingStressScore
The SessionMessage FIT message's trainingStressScore field.
quint8 avgRightPowerPhase
The SessionMessage FIT message's avgRightPowerPhase field.
quint16 thresholdPower
The SessionMessage FIT message's thresholdPower field.
quint16 avgAltitude
The SessionMessage FIT message's avgAltitude field.
quint8 eventGroup
The SessionMessage FIT message's eventGroup field.
quint16 avgStrokeDistance
The SessionMessage FIT message's avgStrokeDistance field.
quint32 timeStanding
The SessionMessage FIT message's timeStanding field.
EventType eventType
The SessionMessage FIT message's eventType field.
float avgGrit
The SessionMessage FIT message's avgGrit field.
quint8 maxCadencePosition
The SessionMessage FIT message's maxCadencePosition field.
quint32 totalCycles
The SessionMessage FIT message's totalCycles field.
QString opponentName
The SessionMessage FIT message's opponentName field.
qint16 avgNegVerticalSpeed
The SessionMessage FIT message's avgNegVerticalSpeed field.
quint32 enhancedMaxSpeed
The SessionMessage FIT message's enhancedMaxSpeed field.
qint32 swcLat
The SessionMessage FIT message's swcLat field.
DateTime startTime
The SessionMessage FIT message's startTime field.
quint16 maxBallSpeed
The SessionMessage FIT message's maxBallSpeed field.
qint8 avgLeftPco
The SessionMessage FIT message's avgLeftPco field.
quint8 totalAnaerobicTrainingEffect
The SessionMessage FIT message's totalAnaerobicTrainingEffect field.
quint8 maxCadence
The SessionMessage FIT message's maxCadence field.
quint8 avgHeartRate
The SessionMessage FIT message's avgHeartRate field.
quint16 strokeCount
The SessionMessage FIT message's strokeCount field.
quint8 minHeartRate
The SessionMessage FIT message's minHeartRate field.
qint16 avgPosGrade
The SessionMessage FIT message's avgPosGrade field.
quint16 maxPowerPosition
The SessionMessage FIT message's maxPowerPosition field.
quint8 avgCombinedPedalSmoothness
The SessionMessage FIT message's avgCombinedPedalSmoothness field.
SubSport subSport
The SessionMessage FIT message's subSport field.
quint8 avgRightPedalSmoothness
The SessionMessage FIT message's avgRightPedalSmoothness field.
qint32 necLong
The SessionMessage FIT message's necLong field.
qint32 necLat
The SessionMessage FIT message's necLat field.
quint16 avgCoreTemperature
The SessionMessage FIT message's avgCoreTemperature field.
quint16 numActiveLengths
The SessionMessage FIT message's numActiveLengths field.
LeftRightBalance100 leftRightBalance
The SessionMessage FIT message's leftRightBalance field.
quint16 avgStanceTimeBalance
The SessionMessage FIT message's avgStanceTimeBalance field.
qint16 avgGrade
The SessionMessage FIT message's avgGrade field.
quint16 maxSpeed
The SessionMessage FIT message's maxSpeed field.
quint8 avgRightPowerPhasePeak
The SessionMessage FIT message's avgRightPowerPhasePeak field.
DisplayMeasure poolLengthUnit
The SessionMessage FIT message's poolLengthUnit field.
qint32 swcLong
The SessionMessage FIT message's swcLong field.
MessageIndex messageIndex
The SessionMessage FIT message's messageIndex field.
quint16 avgStanceTimePercent
The SessionMessage FIT message's avgStanceTimePercent field.
quint16 maxLevMotorPower
The SessionMessage FIT message's maxLevMotorPower field.
qint16 avgPosVerticalSpeed
The SessionMessage FIT message's avgPosVerticalSpeed field.
quint8 totalFractionalCycles
The SessionMessage FIT message's totalFractionalCycles field.
quint16 avgVerticalRatio
The SessionMessage FIT message's avgVerticalRatio field.
quint16 bestLapIndex
The SessionMessage FIT message's bestLapIndex field.
quint8 totalFractionalAscent
The SessionMessage FIT message's totalFractionalAscent field.
quint16 avgVam
The SessionMessage FIT message's avgVam field.
quint32 totalMovingTime
The SessionMessage FIT message's totalMovingTime field.
quint16 totalFatCalories
The SessionMessage FIT message's totalFatCalories field.
float totalGrit
The SessionMessage FIT message's totalGrit field.
quint32 timeInSpeedZone
The SessionMessage FIT message's timeInSpeedZone field.
quint8 maxHeartRate
The SessionMessage FIT message's maxHeartRate field.
quint16 normalizedPower
The SessionMessage FIT message's normalizedPower field.
quint16 maxPower
The SessionMessage FIT message's maxPower field.
quint32 enhancedAvgAltitude
The SessionMessage FIT message's enhancedAvgAltitude field.
qint8 avgTemperature
The SessionMessage FIT message's avgTemperature field.
quint32 enhancedMinAltitude
The SessionMessage FIT message's enhancedMinAltitude field.
quint16 playerScore
The SessionMessage FIT message's playerScore field.
quint8 maxFractionalCadence
The SessionMessage FIT message's maxFractionalCadence field.
quint16 opponentScore
The SessionMessage FIT message's opponentScore field.
Sport sport
The SessionMessage FIT message's sport field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
qint32 startPositionLat
The SessionMessage FIT message's startPositionLat field.
qint16 maxPosGrade
The SessionMessage FIT message's maxPosGrade field.
quint32 avgLapTime
The SessionMessage FIT message's avgLapTime field.
quint32 enhancedMaxAltitude
The SessionMessage FIT message's enhancedMaxAltitude field.
qint16 maxNegGrade
The SessionMessage FIT message's maxNegGrade field.
quint16 totalDescent
The SessionMessage FIT message's totalDescent field.
SwimStroke swimStroke
The SessionMessage FIT message's swimStroke field.
quint16 totalAscent
The SessionMessage FIT message's totalAscent field.
quint32 timeInPowerZone
The SessionMessage FIT message's timeInPowerZone field.
quint16 intensityFactor
The SessionMessage FIT message's intensityFactor field.
float totalFlow
The SessionMessage FIT message's totalFlow field.
quint16 avgSaturatedHemoglobinPercent
The SessionMessage FIT message's avgSaturatedHemoglobinPercent field.
quint16 avgPowerPosition
The SessionMessage FIT message's avgPowerPosition field.
quint16 minCoreTemperature
The SessionMessage FIT message's minCoreTemperature field.
quint16 minTotalHemoglobinConc
The SessionMessage FIT message's minTotalHemoglobinConc field.
quint16 minAltitude
The SessionMessage FIT message's minAltitude field.
quint8 sportIndex
The SessionMessage FIT message's sportIndex field.
DateTime timestamp
The SessionMessage FIT message's timestamp field.
quint16 avgBallSpeed
The SessionMessage FIT message's avgBallSpeed field.
quint16 avgSpeed
The SessionMessage FIT message's avgSpeed field.
quint16 zoneCount
The SessionMessage FIT message's zoneCount field.
quint32 timeInHrZone
The SessionMessage FIT message's timeInHrZone field.
qint16 avgNegGrade
The SessionMessage FIT message's avgNegGrade field.
quint16 maxTotalHemoglobinConc
The SessionMessage FIT message's maxTotalHemoglobinConc field.
quint16 standCount
The SessionMessage FIT message's standCount field.
quint8 avgLeftPedalSmoothness
The SessionMessage FIT message's avgLeftPedalSmoothness field.
quint16 maxSaturatedHemoglobinPercent
The SessionMessage FIT message's maxSaturatedHemoglobinPercent field.
quint8 totalFractionalDescent
The SessionMessage FIT message's totalFractionalDescent field.
quint32 timeInCadenceZone
The SessionMessage FIT message's timeInCadenceZone field.
quint16 avgPower
The SessionMessage FIT message's avgPower field.
quint8 avgCadence
The SessionMessage FIT message's avgCadence field.
quint16 maxAltitude
The SessionMessage FIT message's maxAltitude field.
quint8 avgLeftPowerPhasePeak
The SessionMessage FIT message's avgLeftPowerPhasePeak field.
quint8 avgFractionalCadence
The SessionMessage FIT message's avgFractionalCadence field.
qint8 maxTemperature
The SessionMessage FIT message's maxTemperature field.
qint32 startPositionLong
The SessionMessage FIT message's startPositionLong field.
quint8 avgRightTorqueEffectiveness
The SessionMessage FIT message's avgRightTorqueEffectiveness field.
quint32 totalElapsedTime
The SessionMessage FIT message's totalElapsedTime field.
The SessionMessage class represents a FIT SessionMessage data message.
void setTotalElapsedTime(const quint32 totalElapsedTime)
Sets the totalElapsedTime field to totalElapsedTime.
quint32 totalTimerTime() const
Returns the SessionMessage data message's totalTimerTime field's current value.
quint16 avgSpeed() const
Returns the SessionMessage data message's avgSpeed field's current value.
void setTotalDescent(const quint16 totalDescent)
Sets the totalDescent field to totalDescent.
Sport sport() const
Returns the SessionMessage data message's sport field's current value.
void setMinSaturatedHemoglobinPercent(const quint16 minSaturatedHemoglobinPercent)
Sets the minSaturatedHemoglobinPercent field to minSaturatedHemoglobinPercent.
float avgGrit() const
Returns the SessionMessage data message's avgGrit field's current value.
quint16 avgVam() const
Returns the SessionMessage data message's avgVam field's current value.
qint32 necLat() const
Returns the SessionMessage data message's necLat field's current value.
void setAvgLeftPowerPhasePeak(const quint8 avgLeftPowerPhasePeak)
Sets the avgLeftPowerPhasePeak field to avgLeftPowerPhasePeak.
void setSubSport(const SubSport subSport)
Sets the subSport field to subSport.
quint16 avgStanceTime() const
Returns the SessionMessage data message's avgStanceTime field's current value.
void setFirstLapIndex(const quint16 firstLapIndex)
Sets the firstLapIndex field to firstLapIndex.
quint32 timeInHrZone() const
Returns the SessionMessage data message's timeInHrZone field's current value.
void setTotalFractionalCycles(const quint8 totalFractionalCycles)
Sets the totalFractionalCycles field to totalFractionalCycles.
void setJumpCount(const quint16 jumpCount)
Sets the jumpCount field to jumpCount.
quint16 maxAltitude() const
Returns the SessionMessage data message's maxAltitude field's current value.
void setMaxTemperature(const qint8 maxTemperature)
Sets the maxTemperature field to maxTemperature.
quint16 avgVerticalOscillation() const
Returns the SessionMessage data message's avgVerticalOscillation field's current value.
void setMaxCadencePosition(const quint8 maxCadencePosition)
Sets the maxCadencePosition field to maxCadencePosition.
void setMaxLevMotorPower(const quint16 maxLevMotorPower)
Sets the maxLevMotorPower field to maxLevMotorPower.
LeftRightBalance100 leftRightBalance() const
Returns the SessionMessage data message's leftRightBalance field's current value.
quint8 avgFractionalCadence() const
Returns the SessionMessage data message's avgFractionalCadence field's current value.
void setTrainingStressScore(const quint16 trainingStressScore)
Sets the trainingStressScore field to trainingStressScore.
quint16 avgVerticalRatio() const
Returns the SessionMessage data message's avgVerticalRatio field's current value.
void setAvgVerticalOscillation(const quint16 avgVerticalOscillation)
Sets the avgVerticalOscillation field to avgVerticalOscillation.
void setStandCount(const quint16 standCount)
Sets the standCount field to standCount.
void setTimeInSpeedZone(const quint32 timeInSpeedZone)
Sets the timeInSpeedZone field to timeInSpeedZone.
qint16 maxNegVerticalSpeed() const
Returns the SessionMessage data message's maxNegVerticalSpeed field's current value.
quint8 maxCadence() const
Returns the SessionMessage data message's maxCadence field's current value.
void setIntensityFactor(const quint16 intensityFactor)
Sets the intensityFactor field to intensityFactor.
quint8 avgLeftPowerPhasePeak() const
Returns the SessionMessage data message's avgLeftPowerPhasePeak field's current value.
void setMaxTotalHemoglobinConc(const quint16 maxTotalHemoglobinConc)
Sets the maxTotalHemoglobinConc field to maxTotalHemoglobinConc.
quint16 firstLapIndex() const
Returns the SessionMessage data message's firstLapIndex field's current value.
void setAvgLeftPowerPhase(const quint8 avgLeftPowerPhase)
Sets the avgLeftPowerPhase field to avgLeftPowerPhase.
quint8 avgCadence() const
Returns the SessionMessage data message's avgCadence field's current value.
void setEnhancedMaxAltitude(const quint32 enhancedMaxAltitude)
Sets the enhancedMaxAltitude field to enhancedMaxAltitude.
quint32 timeInCadenceZone() const
Returns the SessionMessage data message's timeInCadenceZone field's current value.
void setTotalDistance(const quint32 totalDistance)
Sets the totalDistance field to totalDistance.
quint8 avgRightPowerPhase() const
Returns the SessionMessage data message's avgRightPowerPhase field's current value.
void setMinTotalHemoglobinConc(const quint16 minTotalHemoglobinConc)
Sets the minTotalHemoglobinConc field to minTotalHemoglobinConc.
quint16 opponentScore() const
Returns the SessionMessage data message's opponentScore field's current value.
void setMaxPowerPosition(const quint16 maxPowerPosition)
Sets the maxPowerPosition field to maxPowerPosition.
quint16 poolLength() const
Returns the SessionMessage data message's poolLength field's current value.
quint16 maxSpeed() const
Returns the SessionMessage data message's maxSpeed field's current value.
quint32 totalWork() const
Returns the SessionMessage data message's totalWork field's current value.
qint8 avgLeftPco() const
Returns the SessionMessage data message's avgLeftPco field's current value.
quint16 avgPowerPosition() const
Returns the SessionMessage data message's avgPowerPosition field's current value.
quint16 avgBallSpeed() const
Returns the SessionMessage data message's avgBallSpeed field's current value.
void setEnhancedAvgSpeed(const quint32 enhancedAvgSpeed)
Sets the enhancedAvgSpeed field to enhancedAvgSpeed.
quint8 avgRightPowerPhasePeak() const
Returns the SessionMessage data message's avgRightPowerPhasePeak field's current value.
quint16 strokeCount() const
Returns the SessionMessage data message's strokeCount field's current value.
void setMaxHeartRate(const quint8 maxHeartRate)
Sets the maxHeartRate field to maxHeartRate.
quint32 totalDistance() const
Returns the SessionMessage data message's totalDistance field's current value.
quint16 playerScore() const
Returns the SessionMessage data message's playerScore field's current value.
quint32 timeStanding() const
Returns the SessionMessage data message's timeStanding field's current value.
void setAvgStepLength(const quint16 avgStepLength)
Sets the avgStepLength field to avgStepLength.
void setAvgCombinedPedalSmoothness(const quint8 avgCombinedPedalSmoothness)
Sets the avgCombinedPedalSmoothness field to avgCombinedPedalSmoothness.
void setEnhancedMinAltitude(const quint32 enhancedMinAltitude)
Sets the enhancedMinAltitude field to enhancedMinAltitude.
void setAvgRightTorqueEffectiveness(const quint8 avgRightTorqueEffectiveness)
Sets the avgRightTorqueEffectiveness field to avgRightTorqueEffectiveness.
void setMaxCoreTemperature(const quint16 maxCoreTemperature)
Sets the maxCoreTemperature field to maxCoreTemperature.
void setPlayerScore(const quint16 playerScore)
Sets the playerScore field to playerScore.
qint16 avgNegGrade() const
Returns the SessionMessage data message's avgNegGrade field's current value.
void setTotalFlow(const float totalFlow)
Sets the totalFlow field to totalFlow.
void setThresholdPower(const quint16 thresholdPower)
Sets the thresholdPower field to thresholdPower.
void setAvgGrade(const qint16 avgGrade)
Sets the avgGrade field to avgGrade.
quint8 avgRightPedalSmoothness() const
Returns the SessionMessage data message's avgRightPedalSmoothness field's current value.
void setTotalCycles(const quint32 totalCycles)
Sets the totalCycles field to totalCycles.
void setAvgHeartRate(const quint8 avgHeartRate)
Sets the avgHeartRate field to avgHeartRate.
void setAvgCadence(const quint8 avgCadence)
Sets the avgCadence field to avgCadence.
void setAvgGrit(const float avgGrit)
Sets the avgGrit field to avgGrit.
void setMaxSaturatedHemoglobinPercent(const quint16 maxSaturatedHemoglobinPercent)
Sets the maxSaturatedHemoglobinPercent field to maxSaturatedHemoglobinPercent.
void setAvgBallSpeed(const quint16 avgBallSpeed)
Sets the avgBallSpeed field to avgBallSpeed.
DateTime startTime() const
Returns the SessionMessage data message's startTime field's current value.
qint16 avgGrade() const
Returns the SessionMessage data message's avgGrade field's current value.
void setMaxPower(const quint16 maxPower)
Sets the maxPower field to maxPower.
void setAvgRightPedalSmoothness(const quint8 avgRightPedalSmoothness)
Sets the avgRightPedalSmoothness field to avgRightPedalSmoothness.
quint8 totalFractionalAscent() const
Returns the SessionMessage data message's totalFractionalAscent field's current value.
void setTotalGrit(const float totalGrit)
Sets the totalGrit field to totalGrit.
void setTotalTrainingEffect(const quint8 totalTrainingEffect)
Sets the totalTrainingEffect field to totalTrainingEffect.
void setEventGroup(const quint8 eventGroup)
Sets the eventGroup field to eventGroup.
quint32 enhancedMaxAltitude() const
Returns the SessionMessage data message's enhancedMaxAltitude field's current value.
void setNecLat(const qint32 necLat)
Sets the necLat field to necLat.
quint32 timeInPowerZone() const
Returns the SessionMessage data message's timeInPowerZone field's current value.
float avgFlow() const
Returns the SessionMessage data message's avgFlow field's current value.
void setStartPositionLat(const qint32 startPositionLat)
Sets the startPositionLat field to startPositionLat.
SwimStroke swimStroke() const
Returns the SessionMessage data message's swimStroke field's current value.
void setAvgSaturatedHemoglobinPercent(const quint16 avgSaturatedHemoglobinPercent)
Sets the avgSaturatedHemoglobinPercent field to avgSaturatedHemoglobinPercent.
quint8 totalTrainingEffect() const
Returns the SessionMessage data message's totalTrainingEffect field's current value.
void setMaxBallSpeed(const quint16 maxBallSpeed)
Sets the maxBallSpeed field to maxBallSpeed.
Event event() const
Returns the SessionMessage data message's event field's current value.
qint16 avgPosVerticalSpeed() const
Returns the SessionMessage data message's avgPosVerticalSpeed field's current value.
quint32 avgStrokeCount() const
Returns the SessionMessage data message's avgStrokeCount field's current value.
quint8 eventGroup() const
Returns the SessionMessage data message's eventGroup field's current value.
quint16 jumpCount() const
Returns the SessionMessage data message's jumpCount field's current value.
void setTrigger(const SessionTrigger trigger)
Sets the trigger field to trigger.
void setTotalTimerTime(const quint32 totalTimerTime)
Sets the totalTimerTime field to totalTimerTime.
quint16 minCoreTemperature() const
Returns the SessionMessage data message's minCoreTemperature field's current value.
qint16 maxPosGrade() const
Returns the SessionMessage data message's maxPosGrade field's current value.
void setAvgStanceTimeBalance(const quint16 avgStanceTimeBalance)
Sets the avgStanceTimeBalance field to avgStanceTimeBalance.
void setAvgSpeed(const quint16 avgSpeed)
Sets the avgSpeed field to avgSpeed.
quint16 minSaturatedHemoglobinPercent() const
Returns the SessionMessage data message's minSaturatedHemoglobinPercent field's current value.
quint16 trainingStressScore() const
Returns the SessionMessage data message's trainingStressScore field's current value.
void setSwcLat(const qint32 swcLat)
Sets the swcLat field to swcLat.
quint16 avgStanceTimePercent() const
Returns the SessionMessage data message's avgStanceTimePercent field's current value.
quint16 avgAltitude() const
Returns the SessionMessage data message's avgAltitude field's current value.
void setPoolLengthUnit(const DisplayMeasure poolLengthUnit)
Sets the poolLengthUnit field to poolLengthUnit.
void setNumLaps(const quint16 numLaps)
Sets the numLaps field to numLaps.
quint16 avgStepLength() const
Returns the SessionMessage data message's avgStepLength field's current value.
quint8 avgCombinedPedalSmoothness() const
Returns the SessionMessage data message's avgCombinedPedalSmoothness field's current value.
quint16 maxBallSpeed() const
Returns the SessionMessage data message's maxBallSpeed field's current value.
void setAvgAltitude(const quint16 avgAltitude)
Sets the avgAltitude field to avgAltitude.
quint32 enhancedMaxSpeed() const
Returns the SessionMessage data message's enhancedMaxSpeed field's current value.
quint8 avgLeftPedalSmoothness() const
Returns the SessionMessage data message's avgLeftPedalSmoothness field's current value.
void setEventType(const EventType eventType)
Sets the eventType field to eventType.
MessageIndex messageIndex() const
Returns the SessionMessage data message's messageIndex field's current value.
void setEnhancedAvgAltitude(const quint32 enhancedAvgAltitude)
Sets the enhancedAvgAltitude field to enhancedAvgAltitude.
void setAvgLevMotorPower(const quint16 avgLevMotorPower)
Sets the avgLevMotorPower field to avgLevMotorPower.
quint32 totalElapsedTime() const
Returns the SessionMessage data message's totalElapsedTime field's current value.
SessionMessage()
Constructs a SessionMessage object.
quint32 totalCycles() const
Returns the SessionMessage data message's totalCycles field's current value.
void setTotalCalories(const quint16 totalCalories)
Sets the totalCalories field to totalCalories.
SubSport subSport() const
Returns the SessionMessage data message's subSport field's current value.
QString opponentName() const
Returns the SessionMessage data message's opponentName field's current value.
qint32 startPositionLong() const
Returns the SessionMessage data message's startPositionLong field's current value.
void setAvgLeftTorqueEffectiveness(const quint8 avgLeftTorqueEffectiveness)
Sets the avgLeftTorqueEffectiveness field to avgLeftTorqueEffectiveness.
quint16 maxPowerPosition() const
Returns the SessionMessage data message's maxPowerPosition field's current value.
quint16 minAltitude() const
Returns the SessionMessage data message's minAltitude field's current value.
quint8 avgLeftTorqueEffectiveness() const
Returns the SessionMessage data message's avgLeftTorqueEffectiveness field's current value.
void setAvgRightPowerPhase(const quint8 avgRightPowerPhase)
Sets the avgRightPowerPhase field to avgRightPowerPhase.
void setGpsAccuracy(const quint8 gpsAccuracy)
Sets the gpsAccuracy field to gpsAccuracy.
quint8 avgLeftPowerPhase() const
Returns the SessionMessage data message's avgLeftPowerPhase field's current value.
void setAvgRightPowerPhasePeak(const quint8 avgRightPowerPhasePeak)
Sets the avgRightPowerPhasePeak field to avgRightPowerPhasePeak.
void setMaxFractionalCadence(const quint8 maxFractionalCadence)
Sets the maxFractionalCadence field to maxFractionalCadence.
void setAvgStanceTimePercent(const quint16 avgStanceTimePercent)
Sets the avgStanceTimePercent field to avgStanceTimePercent.
void setMaxNegGrade(const qint16 maxNegGrade)
Sets the maxNegGrade field to maxNegGrade.
void setAvgPowerPosition(const quint16 avgPowerPosition)
Sets the avgPowerPosition field to avgPowerPosition.
void setMaxNegVerticalSpeed(const qint16 maxNegVerticalSpeed)
Sets the maxNegVerticalSpeed field to maxNegVerticalSpeed.
quint16 totalCalories() const
Returns the SessionMessage data message's totalCalories field's current value.
DisplayMeasure poolLengthUnit() const
Returns the SessionMessage data message's poolLengthUnit field's current value.
void setAvgLeftPco(const qint8 avgLeftPco)
Sets the avgLeftPco field to avgLeftPco.
void setNumLengths(const quint16 numLengths)
Sets the numLengths field to numLengths.
quint16 avgStrokeDistance() const
Returns the SessionMessage data message's avgStrokeDistance field's current value.
quint16 numLaps() const
Returns the SessionMessage data message's numLaps field's current value.
void setMinHeartRate(const quint8 minHeartRate)
Sets the minHeartRate field to minHeartRate.
EventType eventType() const
Returns the SessionMessage data message's eventType field's current value.
quint16 avgStanceTimeBalance() const
Returns the SessionMessage data message's avgStanceTimeBalance field's current value.
quint8 totalFractionalDescent() const
Returns the SessionMessage data message's totalFractionalDescent field's current value.
void setMaxPosVerticalSpeed(const qint16 maxPosVerticalSpeed)
Sets the maxPosVerticalSpeed field to maxPosVerticalSpeed.
quint16 maxCoreTemperature() const
Returns the SessionMessage data message's maxCoreTemperature field's current value.
void setAvgCoreTemperature(const quint16 avgCoreTemperature)
Sets the avgCoreTemperature field to avgCoreTemperature.
qint16 avgPosGrade() const
Returns the SessionMessage data message's avgPosGrade field's current value.
void setLeftRightBalance(const LeftRightBalance100 leftRightBalance)
Sets the leftRightBalance field to leftRightBalance.
void setAvgTotalHemoglobinConc(const quint16 avgTotalHemoglobinConc)
Sets the avgTotalHemoglobinConc field to avgTotalHemoglobinConc.
quint8 avgCadencePosition() const
Returns the SessionMessage data message's avgCadencePosition field's current value.
quint16 avgLevMotorPower() const
Returns the SessionMessage data message's avgLevMotorPower field's current value.
void setMinCoreTemperature(const quint16 minCoreTemperature)
Sets the minCoreTemperature field to minCoreTemperature.
void setStrokeCount(const quint16 strokeCount)
Sets the strokeCount field to strokeCount.
void setTotalFractionalDescent(const quint8 totalFractionalDescent)
Sets the totalFractionalDescent field to totalFractionalDescent.
quint16 totalDescent() const
Returns the SessionMessage data message's totalDescent field's current value.
quint16 thresholdPower() const
Returns the SessionMessage data message's thresholdPower field's current value.
quint8 totalFractionalCycles() const
Returns the SessionMessage data message's totalFractionalCycles field's current value.
void setAvgPower(const quint16 avgPower)
Sets the avgPower field to avgPower.
void setTimeStanding(const quint32 timeStanding)
Sets the timeStanding field to timeStanding.
void setAvgCadencePosition(const quint8 avgCadencePosition)
Sets the avgCadencePosition field to avgCadencePosition.
qint8 maxTemperature() const
Returns the SessionMessage data message's maxTemperature field's current value.
void setMaxPosGrade(const qint16 maxPosGrade)
Sets the maxPosGrade field to maxPosGrade.
quint32 enhancedAvgSpeed() const
Returns the SessionMessage data message's enhancedAvgSpeed field's current value.
void setMaxAltitude(const quint16 maxAltitude)
Sets the maxAltitude field to maxAltitude.
void setSport(const Sport sport)
Sets the sport field to sport.
quint16 avgCoreTemperature() const
Returns the SessionMessage data message's avgCoreTemperature field's current value.
qint32 necLong() const
Returns the SessionMessage data message's necLong field's current value.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
void setAvgLeftPedalSmoothness(const quint8 avgLeftPedalSmoothness)
Sets the avgLeftPedalSmoothness field to avgLeftPedalSmoothness.
quint16 avgPower() const
Returns the SessionMessage data message's avgPower field's current value.
void setAvgPosVerticalSpeed(const qint16 avgPosVerticalSpeed)
Sets the avgPosVerticalSpeed field to avgPosVerticalSpeed.
qint8 avgRightPco() const
Returns the SessionMessage data message's avgRightPco field's current value.
void setTotalWork(const quint32 totalWork)
Sets the totalWork field to totalWork.
void setMinAltitude(const quint16 minAltitude)
Sets the minAltitude field to minAltitude.
void setTotalMovingTime(const quint32 totalMovingTime)
Sets the totalMovingTime field to totalMovingTime.
void setAvgStrokeCount(const quint32 avgStrokeCount)
Sets the avgStrokeCount field to avgStrokeCount.
quint16 normalizedPower() const
Returns the SessionMessage data message's normalizedPower field's current value.
void setTotalFractionalAscent(const quint8 totalFractionalAscent)
Sets the totalFractionalAscent field to totalFractionalAscent.
void setEnhancedMaxSpeed(const quint32 enhancedMaxSpeed)
Sets the enhancedMaxSpeed field to enhancedMaxSpeed.
qint32 swcLong() const
Returns the SessionMessage data message's swcLong field's current value.
void setSportIndex(const quint8 sportIndex)
Sets the sportIndex field to sportIndex.
void setTimeInPowerZone(const quint32 timeInPowerZone)
Sets the timeInPowerZone field to timeInPowerZone.
void setAvgPosGrade(const qint16 avgPosGrade)
Sets the avgPosGrade field to avgPosGrade.
quint16 bestLapIndex() const
Returns the SessionMessage data message's bestLapIndex field's current value.
qint16 maxPosVerticalSpeed() const
Returns the SessionMessage data message's maxPosVerticalSpeed field's current value.
DateTime timestamp() const
Returns the SessionMessage data message's timestamp field's current value.
void setAvgNegVerticalSpeed(const qint16 avgNegVerticalSpeed)
Sets the avgNegVerticalSpeed field to avgNegVerticalSpeed.
quint8 maxHeartRate() const
Returns the SessionMessage data message's maxHeartRate field's current value.
quint8 totalAnaerobicTrainingEffect() const
Returns the SessionMessage data message's totalAnaerobicTrainingEffect field's current value.
quint16 avgSaturatedHemoglobinPercent() const
Returns the SessionMessage data message's avgSaturatedHemoglobinPercent field's current value.
void setAvgRightPco(const qint8 avgRightPco)
Sets the avgRightPco field to avgRightPco.
quint8 sportIndex() const
Returns the SessionMessage data message's sportIndex field's current value.
void setTotalFatCalories(const quint16 totalFatCalories)
Sets the totalFatCalories field to totalFatCalories.
quint16 numLengths() const
Returns the SessionMessage data message's numLengths field's current value.
void setAvgStanceTime(const quint16 avgStanceTime)
Sets the avgStanceTime field to avgStanceTime.
quint16 maxPower() const
Returns the SessionMessage data message's maxPower field's current value.
void setTotalAscent(const quint16 totalAscent)
Sets the totalAscent field to totalAscent.
void setNormalizedPower(const quint16 normalizedPower)
Sets the normalizedPower field to normalizedPower.
void setAvgFractionalCadence(const quint8 avgFractionalCadence)
Sets the avgFractionalCadence field to avgFractionalCadence.
quint16 maxLevMotorPower() const
Returns the SessionMessage data message's maxLevMotorPower field's current value.
quint16 maxTotalHemoglobinConc() const
Returns the SessionMessage data message's maxTotalHemoglobinConc field's current value.
void setBestLapIndex(const quint16 bestLapIndex)
Sets the bestLapIndex field to bestLapIndex.
void setAvgTemperature(const qint8 avgTemperature)
Sets the avgTemperature field to avgTemperature.
quint32 enhancedAvgAltitude() const
Returns the SessionMessage data message's enhancedAvgAltitude field's current value.
void setTotalAnaerobicTrainingEffect(const quint8 totalAnaerobicTrainingEffect)
Sets the totalAnaerobicTrainingEffect field to totalAnaerobicTrainingEffect.
void setAvgVam(const quint16 avgVam)
Sets the avgVam field to avgVam.
void setOpponentScore(const quint16 opponentScore)
Sets the opponentScore field to opponentScore.
quint16 numActiveLengths() const
Returns the SessionMessage data message's numActiveLengths field's current value.
void setLevBatteryConsumption(const quint8 levBatteryConsumption)
Sets the levBatteryConsumption field to levBatteryConsumption.
void setTimeInHrZone(const quint32 timeInHrZone)
Sets the timeInHrZone field to timeInHrZone.
quint16 intensityFactor() const
Returns the SessionMessage data message's intensityFactor field's current value.
float totalGrit() const
Returns the SessionMessage data message's totalGrit field's current value.
qint8 avgTemperature() const
Returns the SessionMessage data message's avgTemperature field's current value.
void setAvgNegGrade(const qint16 avgNegGrade)
Sets the avgNegGrade field to avgNegGrade.
quint32 timeInSpeedZone() const
Returns the SessionMessage data message's timeInSpeedZone field's current value.
quint32 totalMovingTime() const
Returns the SessionMessage data message's totalMovingTime field's current value.
void setAvgLapTime(const quint32 avgLapTime)
Sets the avgLapTime field to avgLapTime.
quint8 minHeartRate() const
Returns the SessionMessage data message's minHeartRate field's current value.
qint32 swcLat() const
Returns the SessionMessage data message's swcLat field's current value.
void setMaxCadence(const quint8 maxCadence)
Sets the maxCadence field to maxCadence.
quint32 enhancedMinAltitude() const
Returns the SessionMessage data message's enhancedMinAltitude field's current value.
void setMaxSpeed(const quint16 maxSpeed)
Sets the maxSpeed field to maxSpeed.
void setTimeInCadenceZone(const quint32 timeInCadenceZone)
Sets the timeInCadenceZone field to timeInCadenceZone.
void setAvgVerticalRatio(const quint16 avgVerticalRatio)
Sets the avgVerticalRatio field to avgVerticalRatio.
void setSwcLong(const qint32 swcLong)
Sets the swcLong field to swcLong.
void setEvent(const Event event)
Sets the event field to event.
quint8 avgRightTorqueEffectiveness() const
Returns the SessionMessage data message's avgRightTorqueEffectiveness field's current value.
quint16 totalFatCalories() const
Returns the SessionMessage data message's totalFatCalories field's current value.
quint16 minTotalHemoglobinConc() const
Returns the SessionMessage data message's minTotalHemoglobinConc field's current value.
quint16 standCount() const
Returns the SessionMessage data message's standCount field's current value.
quint8 levBatteryConsumption() const
Returns the SessionMessage data message's levBatteryConsumption field's current value.
void setOpponentName(const QString opponentName)
Sets the opponentName field to opponentName.
quint16 zoneCount() const
Returns the SessionMessage data message's zoneCount field's current value.
quint8 maxFractionalCadence() const
Returns the SessionMessage data message's maxFractionalCadence field's current value.
quint16 totalAscent() const
Returns the SessionMessage data message's totalAscent field's current value.
float totalFlow() const
Returns the SessionMessage data message's totalFlow field's current value.
void setSwimStroke(const SwimStroke swimStroke)
Sets the swimStroke field to swimStroke.
SessionTrigger trigger() const
Returns the SessionMessage data message's trigger field's current value.
qint16 maxNegGrade() const
Returns the SessionMessage data message's maxNegGrade field's current value.
void setTimestamp(const DateTime timestamp)
Sets the timestamp field to timestamp.
void setAvgFlow(const float avgFlow)
Sets the avgFlow field to avgFlow.
void setNumActiveLengths(const quint16 numActiveLengths)
Sets the numActiveLengths field to numActiveLengths.
quint8 gpsAccuracy() const
Returns the SessionMessage data message's gpsAccuracy field's current value.
void setAvgStrokeDistance(const quint16 avgStrokeDistance)
Sets the avgStrokeDistance field to avgStrokeDistance.
quint16 maxSaturatedHemoglobinPercent() const
Returns the SessionMessage data message's maxSaturatedHemoglobinPercent field's current value.
quint32 avgLapTime() const
Returns the SessionMessage data message's avgLapTime field's current value.
qint16 avgNegVerticalSpeed() const
Returns the SessionMessage data message's avgNegVerticalSpeed field's current value.
quint16 avgTotalHemoglobinConc() const
Returns the SessionMessage data message's avgTotalHemoglobinConc field's current value.
qint32 startPositionLat() const
Returns the SessionMessage data message's startPositionLat field's current value.
void setPoolLength(const quint16 poolLength)
Sets the poolLength field to poolLength.
quint8 avgHeartRate() const
Returns the SessionMessage data message's avgHeartRate field's current value.
void setStartPositionLong(const qint32 startPositionLong)
Sets the startPositionLong field to startPositionLong.
quint8 maxCadencePosition() const
Returns the SessionMessage data message's maxCadencePosition field's current value.
void setNecLong(const qint32 necLong)
Sets the necLong field to necLong.
void setStartTime(const DateTime startTime)
Sets the startTime field to startTime.
void setZoneCount(const quint16 zoneCount)
Sets the zoneCount field to zoneCount.
Declares the SessionMessage class.
Declares the SessionMessagePrivate class.
SwimStroke
Garmin FIT SwimStroke type.
Definition: types.h:2262
EventType
Garmin FIT EventType type.
Definition: types.h:1182
Event
Garmin FIT Event type.
Definition: types.h:1133
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
LeftRightBalance100
Garmin FIT LeftRightBalance100 type.
Definition: types.h:2377
Sport
Garmin FIT Sport type.
Definition: types.h:685
SessionTrigger
Garmin FIT SessionTrigger type.
Definition: types.h:1013
DisplayMeasure
Garmin FIT DisplayMeasure type.
Definition: types.h:572
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
SubSport
Garmin FIT SubSport type.
Definition: types.h:881
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237