QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
deviceinfomessage_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 DeviceInfoMessagePrivate class.
28  */
29 #ifndef QTFIT_DEVICEINFOMESSAGE_P_H
30 #define QTFIT_DEVICEINFOMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class DeviceInfoMessage;
37 
39 
40 public:
41  /*!
42  * The DeviceInfoMessage FIT message's timestamp field.
43  */
45 
46  /*!
47  * The DeviceInfoMessage FIT message's deviceIndex field.
48  */
50 
51  /*!
52  * The DeviceInfoMessage FIT message's deviceType field.
53  */
54  quint8 deviceType;
55 
56  /*!
57  * The DeviceInfoMessage FIT message's manufacturer field.
58  */
60 
61  /*!
62  * The DeviceInfoMessage FIT message's serialNumber field.
63  */
65 
66  /*!
67  * The DeviceInfoMessage FIT message's product field.
68  */
69  quint16 product;
70 
71  /*!
72  * The DeviceInfoMessage FIT message's softwareVersion field.
73  */
74  quint16 softwareVersion;
75 
76  /*!
77  * The DeviceInfoMessage FIT message's hardwareVersion field.
78  */
80 
81  /*!
82  * The DeviceInfoMessage FIT message's cumOperatingTime field.
83  *
84  * Reset by new battery or charge.
85  */
87 
88  /*!
89  * The DeviceInfoMessage FIT message's batteryVoltage field.
90  */
91  quint16 batteryVoltage;
92 
93  /*!
94  * The DeviceInfoMessage FIT message's batteryStatus field.
95  */
97 
98  /*!
99  * The DeviceInfoMessage FIT message's sensorPosition field.
100  *
101  * Indicates the location of the sensor
102  */
104 
105  /*!
106  * The DeviceInfoMessage FIT message's descriptor field.
107  *
108  * Used to describe the sensor or location
109  */
110  QString descriptor;
111 
112  /*!
113  * The DeviceInfoMessage FIT message's antTransmissionType field.
114  */
116 
117  /*!
118  * The DeviceInfoMessage FIT message's antDeviceNumber field.
119  */
121 
122  /*!
123  * The DeviceInfoMessage FIT message's antNetwork field.
124  */
126 
127  /*!
128  * The DeviceInfoMessage FIT message's sourceType field.
129  */
131 
132  /*!
133  * The DeviceInfoMessage FIT message's productName field.
134  *
135  * Optional free form string to indicate the devices name or model
136  */
137  QString productName;
138 
139  DeviceInfoMessagePrivate() = delete;
140  explicit DeviceInfoMessagePrivate(DeviceInfoMessage * const q);
141  virtual ~DeviceInfoMessagePrivate();
142 
143 protected:
144  bool setField(const int fieldId, const QByteArray &data,
145  const FitBaseType baseType, const bool bigEndian) override;
146 
147 private:
148  Q_DECLARE_PUBLIC(DeviceInfoMessage)
149  Q_DISABLE_COPY(DeviceInfoMessagePrivate)
150 
151 };
152 
154 
155 #endif // QTFIT_DEVICEINFOMESSAGE_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.
quint8 hardwareVersion
The DeviceInfoMessage FIT message's hardwareVersion field.
BatteryStatus batteryStatus
The DeviceInfoMessage FIT message's batteryStatus field.
AntNetwork antNetwork
The DeviceInfoMessage FIT message's antNetwork field.
DeviceIndex deviceIndex
The DeviceInfoMessage FIT message's deviceIndex field.
quint16z antDeviceNumber
The DeviceInfoMessage FIT message's antDeviceNumber field.
SourceType sourceType
The DeviceInfoMessage FIT message's sourceType field.
QString descriptor
The DeviceInfoMessage FIT message's descriptor field.
quint16 product
The DeviceInfoMessage FIT message's product field.
quint8z antTransmissionType
The DeviceInfoMessage FIT message's antTransmissionType field.
DateTime timestamp
The DeviceInfoMessage FIT message's timestamp field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
quint16 softwareVersion
The DeviceInfoMessage FIT message's softwareVersion field.
quint32 cumOperatingTime
The DeviceInfoMessage FIT message's cumOperatingTime field.
quint8 deviceType
The DeviceInfoMessage FIT message's deviceType field.
Manufacturer manufacturer
The DeviceInfoMessage FIT message's manufacturer field.
BodyLocation sensorPosition
The DeviceInfoMessage FIT message's sensorPosition field.
quint32z serialNumber
The DeviceInfoMessage FIT message's serialNumber field.
QString productName
The DeviceInfoMessage FIT message's productName field.
quint16 batteryVoltage
The DeviceInfoMessage FIT message's batteryVoltage field.
The DeviceInfoMessage class represents a FIT DeviceInfoMessage data message.
SourceType
Garmin FIT SourceType type.
Definition: types.h:2789
DeviceIndex
Garmin FIT DeviceIndex type.
Definition: types.h:278
BodyLocation
Garmin FIT BodyLocation type.
Definition: types.h:2671
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
AntNetwork
Garmin FIT AntNetwork type.
Definition: types.h:2090
quint16 quint16z
16-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:46
Manufacturer
Garmin FIT Manufacturer type.
Definition: types.h:1484
QTFIT_BEGIN_NAMESPACE typedef quint8 quint8z
8-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:45
BatteryStatus
Garmin FIT BatteryStatus type.
Definition: types.h:2132
quint32 quint32z
32-bit unsigned integer, with 0-is-invalid semantics.
Definition: types.h:47
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237