79 return d->messageIndex;
92 return d->messageCount;
159 , messageCount(0xFFFF)
175 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
179 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"video_title.messageIndex"))
return false;
180 this->
messageIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
183 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"video_title.messageCount"))
return false;
184 this->
messageCount =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
187 if (!
verify(data, baseType, 1, FitBaseType::String,
"video_title.text"))
return false;
188 this->
text = QString::fromUtf8(data);
191 qWarning() <<
"ignoring unknown video_title message field number" << fieldId << bigEndian;
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
QString text
The VideoTitleMessage FIT message's text field.
virtual ~VideoTitleMessagePrivate()
MessageIndex messageIndex
The VideoTitleMessage FIT message's messageIndex field.
quint16 messageCount
The VideoTitleMessage FIT message's messageCount field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
The VideoTitleMessage class represents a FIT VideoTitleMessage data message.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
void setMessageCount(const quint16 messageCount)
Sets the messageCount field to messageCount.
quint16 messageCount() const
Returns the VideoTitleMessage data message's messageCount field's current value.
QString text() const
Returns the VideoTitleMessage data message's text field's current value.
VideoTitleMessage()
Constructs a VideoTitleMessage object.
MessageIndex messageIndex() const
Returns the VideoTitleMessage data message's messageIndex field's current value.
void setText(const QString text)
Sets the text field to text.
FitBaseType
Garmin FIT FitBaseType type.
MessageIndex
Garmin FIT MessageIndex type.
Declares the VideoTitleMessage class.
Declares the VideoTitleMessagePrivate class.