QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
goalmessage_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 GoalMessagePrivate class.
28  */
29 #ifndef QTFIT_GOALMESSAGE_P_H
30 #define QTFIT_GOALMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class GoalMessage;
37 
39 
40 public:
41  /*!
42  * The GoalMessage FIT message's messageIndex field.
43  */
45 
46  /*!
47  * The GoalMessage FIT message's sport field.
48  */
50 
51  /*!
52  * The GoalMessage FIT message's subSport field.
53  */
55 
56  /*!
57  * The GoalMessage FIT message's startDate field.
58  */
60 
61  /*!
62  * The GoalMessage FIT message's endDate field.
63  */
65 
66  /*!
67  * The GoalMessage FIT message's type field.
68  */
70 
71  /*!
72  * The GoalMessage FIT message's value field.
73  */
74  quint32 value;
75 
76  /*!
77  * The GoalMessage FIT message's repeat field.
78  */
79  bool repeat;
80 
81  /*!
82  * The GoalMessage FIT message's targetValue field.
83  */
84  quint32 targetValue;
85 
86  /*!
87  * The GoalMessage FIT message's recurrence field.
88  */
90 
91  /*!
92  * The GoalMessage FIT message's recurrenceValue field.
93  */
94  quint16 recurrenceValue;
95 
96  /*!
97  * The GoalMessage FIT message's enabled field.
98  */
99  bool enabled;
100 
101  /*!
102  * The GoalMessage FIT message's source field.
103  */
105 
106  GoalMessagePrivate() = delete;
107  explicit GoalMessagePrivate(GoalMessage * const q);
108  virtual ~GoalMessagePrivate();
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(GoalMessage)
116  Q_DISABLE_COPY(GoalMessagePrivate)
117 
118 };
119 
121 
122 #endif // QTFIT_GOALMESSAGE_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 targetValue
The GoalMessage FIT message's targetValue field.
Definition: goalmessage_p.h:84
SubSport subSport
The GoalMessage FIT message's subSport field.
Definition: goalmessage_p.h:54
DateTime startDate
The GoalMessage FIT message's startDate field.
Definition: goalmessage_p.h:59
MessageIndex messageIndex
The GoalMessage FIT message's messageIndex field.
Definition: goalmessage_p.h:44
quint32 value
The GoalMessage FIT message's value field.
Definition: goalmessage_p.h:74
GoalSource source
The GoalMessage FIT message's source field.
GoalRecurrence recurrence
The GoalMessage FIT message's recurrence field.
Definition: goalmessage_p.h:89
virtual ~GoalMessagePrivate()
Sport sport
The GoalMessage FIT message's sport field.
Definition: goalmessage_p.h:49
DateTime endDate
The GoalMessage FIT message's endDate field.
Definition: goalmessage_p.h:64
quint16 recurrenceValue
The GoalMessage FIT message's recurrenceValue field.
Definition: goalmessage_p.h:94
Goal type
The GoalMessage FIT message's type field.
Definition: goalmessage_p.h:69
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
bool enabled
The GoalMessage FIT message's enabled field.
Definition: goalmessage_p.h:99
bool repeat
The GoalMessage FIT message's repeat field.
Definition: goalmessage_p.h:79
The GoalMessage class represents a FIT GoalMessage data message.
Definition: goalmessage.h:39
Goal
Garmin FIT Goal type.
Definition: types.h:1380
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
GoalRecurrence
Garmin FIT GoalRecurrence type.
Definition: types.h:1399
Sport
Garmin FIT Sport type.
Definition: types.h:685
GoalSource
Garmin FIT GoalSource type.
Definition: types.h:1417
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
SubSport
Garmin FIT SubSport type.
Definition: types.h:881
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237