QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
setmessage_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 SetMessagePrivate class.
28  */
29 #ifndef QTFIT_SETMESSAGE_P_H
30 #define QTFIT_SETMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class SetMessage;
37 
39 
40 public:
41  /*!
42  * The SetMessage FIT message's timestamp field.
43  *
44  * Timestamp of the set
45  */
47 
48  /*!
49  * The SetMessage FIT message's duration field.
50  */
51  quint32 duration;
52 
53  /*!
54  * The SetMessage FIT message's repetitions field.
55  *
56  * # of repitions of the movement
57  */
58  quint16 repetitions;
59 
60  /*!
61  * The SetMessage FIT message's weight field.
62  *
63  * Amount of weight applied for the set
64  */
65  quint16 weight;
66 
67  /*!
68  * The SetMessage FIT message's setType field.
69  */
71 
72  /*!
73  * The SetMessage FIT message's startTime field.
74  *
75  * Start time of the set
76  */
78 
79  /*!
80  * The SetMessage FIT message's category field.
81  */
83 
84  /*!
85  * The SetMessage FIT message's categorySubtype field.
86  *
87  * Based on the associated category, see [category]_exercise_names
88  */
89  quint16 categorySubtype;
90 
91  /*!
92  * The SetMessage FIT message's weightDisplayUnit field.
93  */
95 
96  /*!
97  * The SetMessage FIT message's messageIndex field.
98  */
100 
101  /*!
102  * The SetMessage FIT message's wktStepIndex field.
103  */
105 
106  SetMessagePrivate() = delete;
107  explicit SetMessagePrivate(SetMessage * const q);
108  virtual ~SetMessagePrivate();
109 
110 protected:
111  bool setField(const int fieldId, const QByteArray &data,
112  const FitBaseType baseType, const bool bigEndian) override;
113 
114 private:
115  Q_DECLARE_PUBLIC(SetMessage)
116  Q_DISABLE_COPY(SetMessagePrivate)
117 
118 };
119 
121 
122 #endif // QTFIT_SETMESSAGE_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.
quint32 duration
The SetMessage FIT message's duration field.
Definition: setmessage_p.h:51
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
Definition: setmessage.cpp:357
virtual ~SetMessagePrivate()
Definition: setmessage.cpp:352
SetType setType
The SetMessage FIT message's setType field.
Definition: setmessage_p.h:70
quint16 weight
The SetMessage FIT message's weight field.
Definition: setmessage_p.h:65
MessageIndex wktStepIndex
The SetMessage FIT message's wktStepIndex field.
Definition: setmessage_p.h:104
quint16 repetitions
The SetMessage FIT message's repetitions field.
Definition: setmessage_p.h:58
quint16 categorySubtype
The SetMessage FIT message's categorySubtype field.
Definition: setmessage_p.h:89
DateTime timestamp
The SetMessage FIT message's timestamp field.
Definition: setmessage_p.h:46
FitBaseUnit weightDisplayUnit
The SetMessage FIT message's weightDisplayUnit field.
Definition: setmessage_p.h:94
ExerciseCategory category
The SetMessage FIT message's category field.
Definition: setmessage_p.h:82
DateTime startTime
The SetMessage FIT message's startTime field.
Definition: setmessage_p.h:77
MessageIndex messageIndex
The SetMessage FIT message's messageIndex field.
Definition: setmessage_p.h:99
The SetMessage class represents a FIT SetMessage data message.
Definition: setmessage.h:39
SetType
Garmin FIT SetType type.
Definition: types.h:3496
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
ExerciseCategory
Garmin FIT ExerciseCategory type.
Definition: types.h:3510
FitBaseUnit
Garmin FIT FitBaseUnit type.
Definition: types.h:3481
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237