88 return d->hostingProvider;
156 , duration(0xFFFFFFFF)
172 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
176 if (!
verify(data, baseType, 1, FitBaseType::String,
"video.url"))
return false;
177 this->
url = QString::fromUtf8(data);
180 if (!
verify(data, baseType, 1, FitBaseType::String,
"video.hostingProvider"))
return false;
184 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"video.duration"))
return false;
185 this->
duration =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
188 qWarning() <<
"ignoring unknown video 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.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
QString hostingProvider
The VideoMessage FIT message's hostingProvider field.
virtual ~VideoMessagePrivate()
QString url
The VideoMessage FIT message's url field.
quint32 duration
The VideoMessage FIT message's duration field.
The VideoMessage class represents a FIT VideoMessage data message.
void setUrl(const QString url)
Sets the url field to url.
QString url() const
Returns the VideoMessage data message's url field's current value.
QString hostingProvider() const
Returns the VideoMessage data message's hostingProvider field's current value.
void setHostingProvider(const QString hostingProvider)
Sets the hostingProvider field to hostingProvider.
VideoMessage()
Constructs a VideoMessage object.
void setDuration(const quint32 duration)
Sets the duration field to duration.
quint32 duration() const
Returns the VideoMessage data message's duration field's current value.
FitBaseType
Garmin FIT FitBaseType type.
Declares the VideoMessage class.
Declares the VideoMessagePrivate class.