QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
bikeprofilemessage_p.h
Go to the documentation of this file.
1 /*
2  Copyright 2021 Paul Colby
3 
4  This file is part of QtFit.
5 
6  QtFit is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  QtFit is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with QtFit. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \file
22  * \note This file is automatcially generated. Any changes here are likely to be overwritten.
23  */
24 
25 /*!
26  * \file
27  * Declares the BikeProfileMessagePrivate class.
28  */
29 #ifndef QTFIT_BIKEPROFILEMESSAGE_P_H
30 #define QTFIT_BIKEPROFILEMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class BikeProfileMessage;
37 
39 
40 public:
41  /*!
42  * The BikeProfileMessage FIT message's messageIndex field.
43  */
45 
46  /*!
47  * The BikeProfileMessage FIT message's name field.
48  */
49  QString name;
50 
51  /*!
52  * The BikeProfileMessage FIT message's sport field.
53  */
55 
56  /*!
57  * The BikeProfileMessage FIT message's subSport field.
58  */
60 
61  /*!
62  * The BikeProfileMessage FIT message's odometer field.
63  */
64  quint32 odometer;
65 
66  /*!
67  * The BikeProfileMessage FIT message's bikeSpdAntId field.
68  */
70 
71  /*!
72  * The BikeProfileMessage FIT message's bikeCadAntId field.
73  */
75 
76  /*!
77  * The BikeProfileMessage FIT message's bikeSpdcadAntId field.
78  */
80 
81  /*!
82  * The BikeProfileMessage FIT message's bikePowerAntId field.
83  */
85 
86  /*!
87  * The BikeProfileMessage FIT message's customWheelsize field.
88  */
89  quint16 customWheelsize;
90 
91  /*!
92  * The BikeProfileMessage FIT message's autoWheelsize field.
93  */
94  quint16 autoWheelsize;
95 
96  /*!
97  * The BikeProfileMessage FIT message's bikeWeight field.
98  */
99  quint16 bikeWeight;
100 
101  /*!
102  * The BikeProfileMessage FIT message's powerCalFactor field.
103  */
104  quint16 powerCalFactor;
105 
106  /*!
107  * The BikeProfileMessage FIT message's autoWheelCal field.
108  */
110 
111  /*!
112  * The BikeProfileMessage FIT message's autoPowerZero field.
113  */
115 
116  /*!
117  * The BikeProfileMessage FIT message's id field.
118  */
119  quint8 id;
120 
121  /*!
122  * The BikeProfileMessage FIT message's spdEnabled field.
123  */
125 
126  /*!
127  * The BikeProfileMessage FIT message's cadEnabled field.
128  */
130 
131  /*!
132  * The BikeProfileMessage FIT message's spdcadEnabled field.
133  */
135 
136  /*!
137  * The BikeProfileMessage FIT message's powerEnabled field.
138  */
140 
141  /*!
142  * The BikeProfileMessage FIT message's crankLength field.
143  */
144  quint8 crankLength;
145 
146  /*!
147  * The BikeProfileMessage FIT message's enabled field.
148  */
149  bool enabled;
150 
151  /*!
152  * The BikeProfileMessage FIT message's bikeSpdAntIdTransType field.
153  */
155 
156  /*!
157  * The BikeProfileMessage FIT message's bikeCadAntIdTransType field.
158  */
160 
161  /*!
162  * The BikeProfileMessage FIT message's bikeSpdcadAntIdTransType field.
163  */
165 
166  /*!
167  * The BikeProfileMessage FIT message's bikePowerAntIdTransType field.
168  */
170 
171  /*!
172  * The BikeProfileMessage FIT message's odometerRollover field.
173  *
174  * Rollover counter that can be used to extend the odometer
175  */
177 
178  /*!
179  * The BikeProfileMessage FIT message's frontGearNum field.
180  *
181  * Number of front gears
182  */
184 
185  /*!
186  * The BikeProfileMessage FIT message's frontGear field.
187  *
188  * Number of teeth on each gear 0 is innermost
189  */
191 
192  /*!
193  * The BikeProfileMessage FIT message's rearGearNum field.
194  *
195  * Number of rear gears
196  */
198 
199  /*!
200  * The BikeProfileMessage FIT message's rearGear field.
201  *
202  * Number of teeth on each gear 0 is innermost
203  */
205 
206  /*!
207  * The BikeProfileMessage FIT message's shimanoDi2Enabled field.
208  */
210 
211  BikeProfileMessagePrivate() = delete;
212  explicit BikeProfileMessagePrivate(BikeProfileMessage * const q);
213  virtual ~BikeProfileMessagePrivate();
214 
215 protected:
216  bool setField(const int fieldId, const QByteArray &data,
217  const FitBaseType baseType, const bool bigEndian) override;
218 
219 private:
220  Q_DECLARE_PUBLIC(BikeProfileMessage)
221  Q_DISABLE_COPY(BikeProfileMessagePrivate)
222 
223 };
224 
226 
227 #endif // QTFIT_BIKEPROFILEMESSAGE_P_H
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:78
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:77
Declares the AbstractDataMessagePrivate class.
quint16z bikeCadAntId
The BikeProfileMessage FIT message's bikeCadAntId field.
quint16 powerCalFactor
The BikeProfileMessage FIT message's powerCalFactor field.
quint8z bikeSpdAntIdTransType
The BikeProfileMessage FIT message's bikeSpdAntIdTransType field.
bool powerEnabled
The BikeProfileMessage FIT message's powerEnabled field.
quint16 bikeWeight
The BikeProfileMessage FIT message's bikeWeight field.
bool shimanoDi2Enabled
The BikeProfileMessage FIT message's shimanoDi2Enabled field.
quint8z bikePowerAntIdTransType
The BikeProfileMessage FIT message's bikePowerAntIdTransType field.
bool enabled
The BikeProfileMessage FIT message's enabled field.
quint8z bikeSpdcadAntIdTransType
The BikeProfileMessage FIT message's bikeSpdcadAntIdTransType field.
quint8z frontGearNum
The BikeProfileMessage FIT message's frontGearNum field.
bool autoWheelCal
The BikeProfileMessage FIT message's autoWheelCal field.
quint16 customWheelsize
The BikeProfileMessage FIT message's customWheelsize field.
quint8z frontGear
The BikeProfileMessage FIT message's frontGear field.
quint16z bikeSpdAntId
The BikeProfileMessage FIT message's bikeSpdAntId field.
quint16z bikeSpdcadAntId
The BikeProfileMessage FIT message's bikeSpdcadAntId field.
quint8 crankLength
The BikeProfileMessage FIT message's crankLength field.
quint8z bikeCadAntIdTransType
The BikeProfileMessage FIT message's bikeCadAntIdTransType field.
quint16z bikePowerAntId
The BikeProfileMessage FIT message's bikePowerAntId field.
bool autoPowerZero
The BikeProfileMessage FIT message's autoPowerZero field.
quint8z rearGear
The BikeProfileMessage FIT message's rearGear field.
Sport sport
The BikeProfileMessage FIT message's sport field.
quint32 odometer
The BikeProfileMessage FIT message's odometer field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint8z rearGearNum
The BikeProfileMessage FIT message's rearGearNum field.
bool spdEnabled
The BikeProfileMessage FIT message's spdEnabled field.
MessageIndex messageIndex
The BikeProfileMessage FIT message's messageIndex field.
QString name
The BikeProfileMessage FIT message's name field.
SubSport subSport
The BikeProfileMessage FIT message's subSport field.
bool spdcadEnabled
The BikeProfileMessage FIT message's spdcadEnabled field.
quint16 autoWheelsize
The BikeProfileMessage FIT message's autoWheelsize field.
quint8 odometerRollover
The BikeProfileMessage FIT message's odometerRollover field.
bool cadEnabled
The BikeProfileMessage FIT message's cadEnabled field.
quint8 id
The BikeProfileMessage FIT message's id field.
The BikeProfileMessage class represents a FIT BikeProfileMessage data message.
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
Sport
Garmin FIT Sport type.
Definition: types.h:685
quint16 quint16z
16-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:46
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
QTFIT_BEGIN_NAMESPACE typedef quint8 quint8z
8-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:45
SubSport
Garmin FIT SubSport type.
Definition: types.h:881