QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
weatherconditionsmessage_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 WeatherConditionsMessagePrivate class.
28  */
29 #ifndef QTFIT_WEATHERCONDITIONSMESSAGE_P_H
30 #define QTFIT_WEATHERCONDITIONSMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
37 
39 
40 public:
41  /*!
42  * The WeatherConditionsMessage FIT message's timestamp field.
43  *
44  * time of update for current conditions, else forecast time
45  */
47 
48  /*!
49  * The WeatherConditionsMessage FIT message's weatherReport field.
50  *
51  * Current or forecast
52  */
54 
55  /*!
56  * The WeatherConditionsMessage FIT message's temperature field.
57  */
58  qint8 temperature;
59 
60  /*!
61  * The WeatherConditionsMessage FIT message's condition field.
62  *
63  * Corresponds to GSC Response weatherIcon field
64  */
66 
67  /*!
68  * The WeatherConditionsMessage FIT message's windDirection field.
69  */
70  quint16 windDirection;
71 
72  /*!
73  * The WeatherConditionsMessage FIT message's windSpeed field.
74  */
75  quint16 windSpeed;
76 
77  /*!
78  * The WeatherConditionsMessage FIT message's precipitationProbability field.
79  *
80  * range 0-100
81  */
83 
84  /*!
85  * The WeatherConditionsMessage FIT message's temperatureFeelsLike field.
86  *
87  * Heat Index if GCS heatIdx above or equal to 90F or wind chill if GCS windChill below or
88  * equal to 32F
89  */
91 
92  /*!
93  * The WeatherConditionsMessage FIT message's relativeHumidity field.
94  */
96 
97  /*!
98  * The WeatherConditionsMessage FIT message's location field.
99  *
100  * string corresponding to GCS response location string
101  */
102  QString location;
103 
104  /*!
105  * The WeatherConditionsMessage FIT message's observedAtTime field.
106  */
108 
109  /*!
110  * The WeatherConditionsMessage FIT message's observedLocationLat field.
111  */
113 
114  /*!
115  * The WeatherConditionsMessage FIT message's observedLocationLong field.
116  */
118 
119  /*!
120  * The WeatherConditionsMessage FIT message's dayOfWeek field.
121  */
123 
124  /*!
125  * The WeatherConditionsMessage FIT message's highTemperature field.
126  */
128 
129  /*!
130  * The WeatherConditionsMessage FIT message's lowTemperature field.
131  */
133 
137 
138 protected:
139  bool setField(const int fieldId, const QByteArray &data,
140  const FitBaseType baseType, const bool bigEndian) override;
141 
142 private:
143  Q_DECLARE_PUBLIC(WeatherConditionsMessage)
144  Q_DISABLE_COPY(WeatherConditionsMessagePrivate)
145 
146 };
147 
149 
150 #endif // QTFIT_WEATHERCONDITIONSMESSAGE_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.
DateTime observedAtTime
The WeatherConditionsMessage FIT message's observedAtTime field.
qint32 observedLocationLong
The WeatherConditionsMessage FIT message's observedLocationLong field.
DayOfWeek dayOfWeek
The WeatherConditionsMessage FIT message's dayOfWeek field.
qint8 temperatureFeelsLike
The WeatherConditionsMessage FIT message's temperatureFeelsLike field.
WeatherReport weatherReport
The WeatherConditionsMessage FIT message's weatherReport field.
quint8 precipitationProbability
The WeatherConditionsMessage FIT message's precipitationProbability field.
quint16 windDirection
The WeatherConditionsMessage FIT message's windDirection field.
QString location
The WeatherConditionsMessage FIT message's location field.
qint32 observedLocationLat
The WeatherConditionsMessage FIT message's observedLocationLat field.
WeatherStatus condition
The WeatherConditionsMessage FIT message's condition field.
qint8 temperature
The WeatherConditionsMessage FIT message's temperature field.
quint8 relativeHumidity
The WeatherConditionsMessage FIT message's relativeHumidity field.
quint16 windSpeed
The WeatherConditionsMessage FIT message's windSpeed field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
DateTime timestamp
The WeatherConditionsMessage FIT message's timestamp field.
qint8 lowTemperature
The WeatherConditionsMessage FIT message's lowTemperature field.
qint8 highTemperature
The WeatherConditionsMessage FIT message's highTemperature field.
The WeatherConditionsMessage class represents a FIT WeatherConditionsMessage data message.
WeatherStatus
Garmin FIT WeatherStatus type.
Definition: types.h:2484
WeatherReport
Garmin FIT WeatherReport type.
Definition: types.h:2468
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
DayOfWeek
Garmin FIT DayOfWeek type.
Definition: types.h:2405
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237