QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
segmentidmessage_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 SegmentIdMessagePrivate class.
28  */
29 #ifndef QTFIT_SEGMENTIDMESSAGE_P_H
30 #define QTFIT_SEGMENTIDMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class SegmentIdMessage;
37 
39 
40 public:
41  /*!
42  * The SegmentIdMessage FIT message's name field.
43  *
44  * Friendly name assigned to segment
45  */
46  QString name;
47 
48  /*!
49  * The SegmentIdMessage FIT message's uuid field.
50  *
51  * UUID of the segment
52  */
53  QString uuid;
54 
55  /*!
56  * The SegmentIdMessage FIT message's sport field.
57  *
58  * Sport associated with the segment
59  */
61 
62  /*!
63  * The SegmentIdMessage FIT message's enabled field.
64  *
65  * Segment enabled for evaluation
66  */
67  bool enabled;
68 
69  /*!
70  * The SegmentIdMessage FIT message's userProfilePrimaryKey field.
71  *
72  * Primary key of the user that created the segment
73  */
75 
76  /*!
77  * The SegmentIdMessage FIT message's deviceId field.
78  *
79  * ID of the device that created the segment
80  */
81  quint32 deviceId;
82 
83  /*!
84  * The SegmentIdMessage FIT message's defaultRaceLeader field.
85  *
86  * Index for the Leader Board entry selected as the default race participant
87  */
89 
90  /*!
91  * The SegmentIdMessage FIT message's deleteStatus field.
92  *
93  * Indicates if any segments should be deleted
94  */
96 
97  /*!
98  * The SegmentIdMessage FIT message's selectionType field.
99  *
100  * Indicates how the segment was selected to be sent to the device
101  */
103 
104  SegmentIdMessagePrivate() = delete;
105  explicit SegmentIdMessagePrivate(SegmentIdMessage * const q);
106  virtual ~SegmentIdMessagePrivate();
107 
108 protected:
109  bool setField(const int fieldId, const QByteArray &data,
110  const FitBaseType baseType, const bool bigEndian) override;
111 
112 private:
113  Q_DECLARE_PUBLIC(SegmentIdMessage)
114  Q_DISABLE_COPY(SegmentIdMessagePrivate)
115 
116 };
117 
119 
120 #endif // QTFIT_SEGMENTIDMESSAGE_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.
SegmentSelectionType selectionType
The SegmentIdMessage FIT message's selectionType field.
quint32 userProfilePrimaryKey
The SegmentIdMessage FIT message's userProfilePrimaryKey field.
quint8 defaultRaceLeader
The SegmentIdMessage FIT message's defaultRaceLeader field.
QString uuid
The SegmentIdMessage FIT message's uuid field.
quint32 deviceId
The SegmentIdMessage FIT message's deviceId field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
Sport sport
The SegmentIdMessage FIT message's sport field.
QString name
The SegmentIdMessage FIT message's name field.
bool enabled
The SegmentIdMessage FIT message's enabled field.
SegmentDeleteStatus deleteStatus
The SegmentIdMessage FIT message's deleteStatus field.
The SegmentIdMessage class represents a FIT SegmentIdMessage data message.
SegmentDeleteStatus
Garmin FIT SegmentDeleteStatus type.
Definition: types.h:2760
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
Sport
Garmin FIT Sport type.
Definition: types.h:685
SegmentSelectionType
Garmin FIT SegmentSelectionType type.
Definition: types.h:2775