QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
bikeprofilemessage.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 BikeProfileMessage class.
28  */
29 
30 #ifndef QTFIT_BIKEPROFILEMESSAGE_H
31 #define QTFIT_BIKEPROFILEMESSAGE_H
32 
33 #include "abstractdatamessage.h"
34 
36 
38 
40 
41 public:
44 
45  MessageIndex messageIndex() const;
46  QString name() const;
47  Sport sport() const;
48  SubSport subSport() const;
49  quint32 odometer() const;
50  quint16z bikeSpdAntId() const;
51  quint16z bikeCadAntId() const;
52  quint16z bikeSpdcadAntId() const;
53  quint16z bikePowerAntId() const;
54  quint16 customWheelsize() const;
55  quint16 autoWheelsize() const;
56  quint16 bikeWeight() const;
57  quint16 powerCalFactor() const;
58  bool autoWheelCal() const;
59  bool autoPowerZero() const;
60  quint8 id() const;
61  bool spdEnabled() const;
62  bool cadEnabled() const;
63  bool spdcadEnabled() const;
64  bool powerEnabled() const;
65  quint8 crankLength() const;
66  bool enabled() const;
67  quint8z bikeSpdAntIdTransType() const;
68  quint8z bikeCadAntIdTransType() const;
69  quint8z bikeSpdcadAntIdTransType() const;
70  quint8z bikePowerAntIdTransType() const;
71  quint8 odometerRollover() const;
72  quint8z frontGearNum() const;
73  quint8z frontGear() const;
74  quint8z rearGearNum() const;
75  quint8z rearGear() const;
76  bool shimanoDi2Enabled() const;
77 
78  void setMessageIndex(const MessageIndex messageIndex);
79  void setName(const QString name);
80  void setSport(const Sport sport);
81  void setSubSport(const SubSport subSport);
82  void setOdometer(const quint32 odometer);
83  void setBikeSpdAntId(const quint16z bikeSpdAntId);
84  void setBikeCadAntId(const quint16z bikeCadAntId);
85  void setBikeSpdcadAntId(const quint16z bikeSpdcadAntId);
86  void setBikePowerAntId(const quint16z bikePowerAntId);
87  void setCustomWheelsize(const quint16 customWheelsize);
88  void setAutoWheelsize(const quint16 autoWheelsize);
89  void setBikeWeight(const quint16 bikeWeight);
90  void setPowerCalFactor(const quint16 powerCalFactor);
91  void setAutoWheelCal(const bool autoWheelCal);
92  void setAutoPowerZero(const bool autoPowerZero);
93  void setId(const quint8 id);
94  void setSpdEnabled(const bool spdEnabled);
95  void setCadEnabled(const bool cadEnabled);
96  void setSpdcadEnabled(const bool spdcadEnabled);
97  void setPowerEnabled(const bool powerEnabled);
98  void setCrankLength(const quint8 crankLength);
99  void setEnabled(const bool enabled);
100  void setBikeSpdAntIdTransType(const quint8z bikeSpdAntIdTransType);
101  void setBikeCadAntIdTransType(const quint8z bikeCadAntIdTransType);
102  void setBikeSpdcadAntIdTransType(const quint8z bikeSpdcadAntIdTransType);
103  void setBikePowerAntIdTransType(const quint8z bikePowerAntIdTransType);
104  void setOdometerRollover(const quint8 odometerRollover);
105  void setFrontGearNum(const quint8z frontGearNum);
106  void setFrontGear(const quint8z frontGear);
107  void setRearGearNum(const quint8z rearGearNum);
108  void setRearGear(const quint8z rearGear);
109  void setShimanoDi2Enabled(const bool shimanoDi2Enabled);
110 
111 protected:
112  /// \cond internal
113  explicit BikeProfileMessage(BikeProfileMessagePrivate * const d);
114  /// \endcond
115 
116 private:
117  Q_DECLARE_PRIVATE(BikeProfileMessage)
118  //Q_DISABLE_COPY(BikeProfileMessage)
119 
120 };
121 
123 
124 #endif // QTFIT_BIKEPROFILEMESSAGE_H
#define QTFIT_EXPORT
QtFit library export/import macro.
Definition: QtFit_global.h:42
#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 AbstractDataMessage class.
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
The BikeProfileMessage class represents a FIT BikeProfileMessage data message.
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