QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
devicesettingsmessage_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 DeviceSettingsMessagePrivate class.
28  */
29 #ifndef QTFIT_DEVICESETTINGSMESSAGE_P_H
30 #define QTFIT_DEVICESETTINGSMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
37 
39 
40 public:
41  /*!
42  * The DeviceSettingsMessage FIT message's activeTimeZone field.
43  *
44  * Index into time zone arrays.
45  */
47 
48  /*!
49  * The DeviceSettingsMessage FIT message's utcOffset field.
50  *
51  * Offset from system time. Required to convert timestamp from system time to UTC.
52  */
53  quint32 utcOffset;
54 
55  /*!
56  * The DeviceSettingsMessage FIT message's timeOffset field.
57  *
58  * Offset from system time.
59  */
60  quint32 timeOffset;
61 
62  /*!
63  * The DeviceSettingsMessage FIT message's timeMode field.
64  *
65  * Display mode for the time
66  */
68 
69  /*!
70  * The DeviceSettingsMessage FIT message's timeZoneOffset field.
71  *
72  * timezone offset in 1/4 hour increments
73  */
75 
76  /*!
77  * The DeviceSettingsMessage FIT message's backlightMode field.
78  *
79  * Mode for backlight
80  */
82 
83  /*!
84  * The DeviceSettingsMessage FIT message's activityTrackerEnabled field.
85  *
86  * Enabled state of the activity tracker functionality
87  */
89 
90  /*!
91  * The DeviceSettingsMessage FIT message's clockTime field.
92  *
93  * UTC timestamp used to set the devices clock and date
94  */
96 
97  /*!
98  * The DeviceSettingsMessage FIT message's pagesEnabled field.
99  *
100  * Bitfield to configure enabled screens for each supported loop
101  */
102  quint16 pagesEnabled;
103 
104  /*!
105  * The DeviceSettingsMessage FIT message's moveAlertEnabled field.
106  *
107  * Enabled state of the move alert
108  */
110 
111  /*!
112  * The DeviceSettingsMessage FIT message's dateMode field.
113  *
114  * Display mode for the date
115  */
117 
118  /*!
119  * The DeviceSettingsMessage FIT message's displayOrientation field.
120  */
122 
123  /*!
124  * The DeviceSettingsMessage FIT message's mountingSide field.
125  */
127 
128  /*!
129  * The DeviceSettingsMessage FIT message's defaultPage field.
130  *
131  * Bitfield to indicate one page as default for each supported loop
132  */
133  quint16 defaultPage;
134 
135  /*!
136  * The DeviceSettingsMessage FIT message's autosyncMinSteps field.
137  *
138  * Minimum steps before an autosync can occur
139  */
141 
142  /*!
143  * The DeviceSettingsMessage FIT message's autosyncMinTime field.
144  *
145  * Minimum minutes before an autosync can occur
146  */
148 
149  /*!
150  * The DeviceSettingsMessage FIT message's lactateThresholdAutodetectEnabled field.
151  *
152  * Enable auto-detect setting for the lactate threshold feature.
153  */
155 
156  /*!
157  * The DeviceSettingsMessage FIT message's bleAutoUploadEnabled field.
158  *
159  * Automatically upload using BLE
160  */
162 
163  /*!
164  * The DeviceSettingsMessage FIT message's autoSyncFrequency field.
165  *
166  * Helps to conserve battery by changing modes
167  */
169 
170  /*!
171  * The DeviceSettingsMessage FIT message's autoActivityDetect field.
172  *
173  * Allows setting specific activities auto-activity detect enabled/disabled settings
174  */
176 
177  /*!
178  * The DeviceSettingsMessage FIT message's numberOfScreens field.
179  *
180  * Number of screens configured to display
181  */
183 
184  /*!
185  * The DeviceSettingsMessage FIT message's smartNotificationDisplayOrientation field.
186  *
187  * Smart Notification display orientation
188  */
190 
191  /*!
192  * The DeviceSettingsMessage FIT message's tapInterface field.
193  */
195 
196  /*!
197  * The DeviceSettingsMessage FIT message's tapSensitivity field.
198  *
199  * Used to hold the tap threshold setting
200  */
202 
203  DeviceSettingsMessagePrivate() = delete;
206 
207 protected:
208  bool setField(const int fieldId, const QByteArray &data,
209  const FitBaseType baseType, const bool bigEndian) override;
210 
211 private:
212  Q_DECLARE_PUBLIC(DeviceSettingsMessage)
213  Q_DISABLE_COPY(DeviceSettingsMessagePrivate)
214 
215 };
216 
218 
219 #endif // QTFIT_DEVICESETTINGSMESSAGE_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 clockTime
The DeviceSettingsMessage FIT message's clockTime field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
DisplayOrientation smartNotificationDisplayOrientation
The DeviceSettingsMessage FIT message's smartNotificationDisplayOrientation field.
quint32 utcOffset
The DeviceSettingsMessage FIT message's utcOffset field.
quint16 defaultPage
The DeviceSettingsMessage FIT message's defaultPage field.
bool activityTrackerEnabled
The DeviceSettingsMessage FIT message's activityTrackerEnabled field.
bool lactateThresholdAutodetectEnabled
The DeviceSettingsMessage FIT message's lactateThresholdAutodetectEnabled field.
qint8 timeZoneOffset
The DeviceSettingsMessage FIT message's timeZoneOffset field.
quint16 pagesEnabled
The DeviceSettingsMessage FIT message's pagesEnabled field.
DisplayOrientation displayOrientation
The DeviceSettingsMessage FIT message's displayOrientation field.
quint8 activeTimeZone
The DeviceSettingsMessage FIT message's activeTimeZone field.
quint16 autosyncMinSteps
The DeviceSettingsMessage FIT message's autosyncMinSteps field.
quint8 numberOfScreens
The DeviceSettingsMessage FIT message's numberOfScreens field.
AutoSyncFrequency autoSyncFrequency
The DeviceSettingsMessage FIT message's autoSyncFrequency field.
bool bleAutoUploadEnabled
The DeviceSettingsMessage FIT message's bleAutoUploadEnabled field.
Side mountingSide
The DeviceSettingsMessage FIT message's mountingSide field.
TapSensitivity tapSensitivity
The DeviceSettingsMessage FIT message's tapSensitivity field.
DateMode dateMode
The DeviceSettingsMessage FIT message's dateMode field.
quint32 timeOffset
The DeviceSettingsMessage FIT message's timeOffset field.
BacklightMode backlightMode
The DeviceSettingsMessage FIT message's backlightMode field.
Switch tapInterface
The DeviceSettingsMessage FIT message's tapInterface field.
quint16 autosyncMinTime
The DeviceSettingsMessage FIT message's autosyncMinTime field.
bool moveAlertEnabled
The DeviceSettingsMessage FIT message's moveAlertEnabled field.
TimeMode timeMode
The DeviceSettingsMessage FIT message's timeMode field.
AutoActivityDetect autoActivityDetect
The DeviceSettingsMessage FIT message's autoActivityDetect field.
The DeviceSettingsMessage class represents a FIT DeviceSettingsMessage data message.
AutoActivityDetect
Garmin FIT AutoActivityDetect type.
Definition: types.h:3349
TimeMode
Garmin FIT TimeMode type.
Definition: types.h:1069
DisplayOrientation
Garmin FIT DisplayOrientation type.
Definition: types.h:2818
AutoSyncFrequency
Garmin FIT AutoSyncFrequency type.
Definition: types.h:3061
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
DateMode
Garmin FIT DateMode type.
Definition: types.h:1106
Side
Garmin FIT Side type.
Definition: types.h:2349
TapSensitivity
Garmin FIT TapSensitivity type.
Definition: types.h:5292
Switch
Garmin FIT Switch type.
Definition: types.h:670
BacklightMode
Garmin FIT BacklightMode type.
Definition: types.h:1087
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237