QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
activitymessage_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 ActivityMessagePrivate class.
28  */
29 #ifndef QTFIT_ACTIVITYMESSAGE_P_H
30 #define QTFIT_ACTIVITYMESSAGE_P_H
31 
32 #include "abstractdatamessage_p.h"
33 
35 
36 class ActivityMessage;
37 
39 
40 public:
41  /*!
42  * The ActivityMessage FIT message's timestamp field.
43  */
45 
46  /*!
47  * The ActivityMessage FIT message's totalTimerTime field.
48  *
49  * Exclude pauses
50  */
51  quint32 totalTimerTime;
52 
53  /*!
54  * The ActivityMessage FIT message's numSessions field.
55  */
56  quint16 numSessions;
57 
58  /*!
59  * The ActivityMessage FIT message's type field.
60  */
62 
63  /*!
64  * The ActivityMessage FIT message's event field.
65  */
67 
68  /*!
69  * The ActivityMessage FIT message's eventType field.
70  */
72 
73  /*!
74  * The ActivityMessage FIT message's localTimestamp field.
75  *
76  * timestamp epoch expressed in local time, used to convert activity timestamps to local time
77  */
79 
80  /*!
81  * The ActivityMessage FIT message's eventGroup field.
82  */
83  quint8 eventGroup;
84 
85  ActivityMessagePrivate() = delete;
86  explicit ActivityMessagePrivate(ActivityMessage * const q);
87  virtual ~ActivityMessagePrivate();
88 
89 protected:
90  bool setField(const int fieldId, const QByteArray &data,
91  const FitBaseType baseType, const bool bigEndian) override;
92 
93 private:
94  Q_DECLARE_PUBLIC(ActivityMessage)
95  Q_DISABLE_COPY(ActivityMessagePrivate)
96 
97 };
98 
100 
101 #endif // QTFIT_ACTIVITYMESSAGE_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.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
Activity type
The ActivityMessage FIT message's type field.
Event event
The ActivityMessage FIT message's event field.
quint8 eventGroup
The ActivityMessage FIT message's eventGroup field.
DateTime timestamp
The ActivityMessage FIT message's timestamp field.
quint32 totalTimerTime
The ActivityMessage FIT message's totalTimerTime field.
quint16 numSessions
The ActivityMessage FIT message's numSessions field.
EventType eventType
The ActivityMessage FIT message's eventType field.
LocalDateTime localTimestamp
The ActivityMessage FIT message's localTimestamp field.
The ActivityMessage class represents a FIT ActivityMessage data message.
LocalDateTime
Seconds since 00:00 Dec 31 1989 in local time zone.
Definition: types.h:250
EventType
Garmin FIT EventType type.
Definition: types.h:1182
Event
Garmin FIT Event type.
Definition: types.h:1133
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
Activity
Garmin FIT Activity type.
Definition: types.h:980
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237