QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
segmentfilemessage_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 SegmentFileMessagePrivate class.
28  */
29 #ifndef QTFIT_SEGMENTFILEMESSAGE_P_H
30 #define QTFIT_SEGMENTFILEMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class SegmentFileMessage;
37 
39 
40 public:
41  /*!
42  * The SegmentFileMessage FIT message's messageIndex field.
43  */
45 
46  /*!
47  * The SegmentFileMessage FIT message's fileUuid field.
48  *
49  * UUID of the segment file
50  */
51  QString fileUuid;
52 
53  /*!
54  * The SegmentFileMessage FIT message's enabled field.
55  *
56  * Enabled state of the segment file
57  */
58  bool enabled;
59 
60  /*!
61  * The SegmentFileMessage FIT message's userProfilePrimaryKey field.
62  *
63  * Primary key of the user that created the segment file
64  */
66 
67  /*!
68  * The SegmentFileMessage FIT message's leaderType field.
69  *
70  * Leader type of each leader in the segment file
71  */
73 
74  /*!
75  * The SegmentFileMessage FIT message's leaderGroupPrimaryKey field.
76  *
77  * Group primary key of each leader in the segment file
78  */
80 
81  /*!
82  * The SegmentFileMessage FIT message's leaderActivityId field.
83  *
84  * Activity ID of each leader in the segment file
85  */
87 
88  /*!
89  * The SegmentFileMessage FIT message's leaderActivityIdString field.
90  *
91  * String version of the activity ID of each leader in the segment file. 21 characters long for
92  * each ID, express in decimal
93  */
95 
96  /*!
97  * The SegmentFileMessage FIT message's defaultRaceLeader field.
98  *
99  * Index for the Leader Board entry selected as the default race participant
100  */
102 
103  SegmentFileMessagePrivate() = delete;
104  explicit SegmentFileMessagePrivate(SegmentFileMessage * const q);
105  virtual ~SegmentFileMessagePrivate();
106 
107 protected:
108  bool setField(const int fieldId, const QByteArray &data,
109  const FitBaseType baseType, const bool bigEndian) override;
110 
111 private:
112  Q_DECLARE_PUBLIC(SegmentFileMessage)
113  Q_DISABLE_COPY(SegmentFileMessagePrivate)
114 
115 };
116 
118 
119 #endif // QTFIT_SEGMENTFILEMESSAGE_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.
QString fileUuid
The SegmentFileMessage FIT message's fileUuid field.
MessageIndex messageIndex
The SegmentFileMessage FIT message's messageIndex field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
SegmentLeaderboardType leaderType
The SegmentFileMessage FIT message's leaderType field.
quint32 userProfilePrimaryKey
The SegmentFileMessage FIT message's userProfilePrimaryKey field.
bool enabled
The SegmentFileMessage FIT message's enabled field.
quint32 leaderActivityId
The SegmentFileMessage FIT message's leaderActivityId field.
QString leaderActivityIdString
The SegmentFileMessage FIT message's leaderActivityIdString field.
quint32 leaderGroupPrimaryKey
The SegmentFileMessage FIT message's leaderGroupPrimaryKey field.
quint8 defaultRaceLeader
The SegmentFileMessage FIT message's defaultRaceLeader field.
The SegmentFileMessage class represents a FIT SegmentFileMessage data message.
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
SegmentLeaderboardType
Garmin FIT SegmentLeaderboardType type.
Definition: types.h:2737
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263