79 return d->bluetoothEnabled;
92 return d->bluetoothLeEnabled;
105 return d->antEnabled;
127 return d->liveTrackingEnabled;
138 return d->weatherConditionsEnabled;
149 return d->weatherAlertsEnabled;
160 return d->autoActivityUploadEnabled;
171 return d->courseDownloadEnabled;
182 return d->workoutDownloadEnabled;
193 return d->gpsEphemerisDownloadEnabled;
204 return d->incidentDetectionEnabled;
215 return d->grouptrackEnabled;
370 , bluetoothEnabled(static_cast<bool>(-1))
371 , bluetoothLeEnabled(static_cast<bool>(-1))
372 , antEnabled(static_cast<bool>(-1))
373 , liveTrackingEnabled(static_cast<bool>(-1))
374 , weatherConditionsEnabled(static_cast<bool>(-1))
375 , weatherAlertsEnabled(static_cast<bool>(-1))
376 , autoActivityUploadEnabled(static_cast<bool>(-1))
377 , courseDownloadEnabled(static_cast<bool>(-1))
378 , workoutDownloadEnabled(static_cast<bool>(-1))
379 , gpsEphemerisDownloadEnabled(static_cast<bool>(-1))
380 , incidentDetectionEnabled(static_cast<bool>(-1))
381 , grouptrackEnabled(static_cast<bool>(-1))
397 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
401 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.bluetoothEnabled"))
return false;
405 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.bluetoothLeEnabled"))
return false;
409 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.antEnabled"))
return false;
410 this->
antEnabled =
static_cast<bool>(data.at(0));
413 if (!
verify(data, baseType, 1, FitBaseType::String,
"connectivity.name"))
return false;
414 this->
name = QString::fromUtf8(data);
417 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.liveTrackingEnabled"))
return false;
421 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.weatherConditionsEnabled"))
return false;
425 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.weatherAlertsEnabled"))
return false;
429 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.autoActivityUploadEnabled"))
return false;
433 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.courseDownloadEnabled"))
return false;
437 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.workoutDownloadEnabled"))
return false;
441 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.gpsEphemerisDownloadEnabled"))
return false;
445 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.incidentDetectionEnabled"))
return false;
449 if (!
verify(data, baseType, 0, FitBaseType::Byte,
"connectivity.grouptrackEnabled"))
return false;
453 qWarning() <<
"ignoring unknown connectivity 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 antEnabled
The ConnectivityMessage FIT message's antEnabled field.
bool grouptrackEnabled
The ConnectivityMessage FIT message's grouptrackEnabled field.
bool workoutDownloadEnabled
The ConnectivityMessage FIT message's workoutDownloadEnabled field.
bool bluetoothLeEnabled
The ConnectivityMessage FIT message's bluetoothLeEnabled field.
bool weatherConditionsEnabled
The ConnectivityMessage FIT message's weatherConditionsEnabled field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
bool gpsEphemerisDownloadEnabled
The ConnectivityMessage FIT message's gpsEphemerisDownloadEnabled field.
bool weatherAlertsEnabled
The ConnectivityMessage FIT message's weatherAlertsEnabled field.
virtual ~ConnectivityMessagePrivate()
bool bluetoothEnabled
The ConnectivityMessage FIT message's bluetoothEnabled field.
bool autoActivityUploadEnabled
The ConnectivityMessage FIT message's autoActivityUploadEnabled field.
bool liveTrackingEnabled
The ConnectivityMessage FIT message's liveTrackingEnabled field.
bool incidentDetectionEnabled
The ConnectivityMessage FIT message's incidentDetectionEnabled field.
bool courseDownloadEnabled
The ConnectivityMessage FIT message's courseDownloadEnabled field.
QString name
The ConnectivityMessage FIT message's name field.
The ConnectivityMessage class represents a FIT ConnectivityMessage data message.
void setGrouptrackEnabled(const bool grouptrackEnabled)
Sets the grouptrackEnabled field to grouptrackEnabled.
void setWeatherConditionsEnabled(const bool weatherConditionsEnabled)
Sets the weatherConditionsEnabled field to weatherConditionsEnabled.
void setCourseDownloadEnabled(const bool courseDownloadEnabled)
Sets the courseDownloadEnabled field to courseDownloadEnabled.
bool grouptrackEnabled() const
Returns the ConnectivityMessage data message's grouptrackEnabled field's current value.
void setBluetoothEnabled(const bool bluetoothEnabled)
Sets the bluetoothEnabled field to bluetoothEnabled.
bool autoActivityUploadEnabled() const
Returns the ConnectivityMessage data message's autoActivityUploadEnabled field's current value.
void setWorkoutDownloadEnabled(const bool workoutDownloadEnabled)
Sets the workoutDownloadEnabled field to workoutDownloadEnabled.
void setAutoActivityUploadEnabled(const bool autoActivityUploadEnabled)
Sets the autoActivityUploadEnabled field to autoActivityUploadEnabled.
void setGpsEphemerisDownloadEnabled(const bool gpsEphemerisDownloadEnabled)
Sets the gpsEphemerisDownloadEnabled field to gpsEphemerisDownloadEnabled.
bool bluetoothEnabled() const
Returns the ConnectivityMessage data message's bluetoothEnabled field's current value.
bool workoutDownloadEnabled() const
Returns the ConnectivityMessage data message's workoutDownloadEnabled field's current value.
void setLiveTrackingEnabled(const bool liveTrackingEnabled)
Sets the liveTrackingEnabled field to liveTrackingEnabled.
bool gpsEphemerisDownloadEnabled() const
Returns the ConnectivityMessage data message's gpsEphemerisDownloadEnabled field's current value.
void setWeatherAlertsEnabled(const bool weatherAlertsEnabled)
Sets the weatherAlertsEnabled field to weatherAlertsEnabled.
QString name() const
Returns the ConnectivityMessage data message's name field's current value.
bool antEnabled() const
Returns the ConnectivityMessage data message's antEnabled field's current value.
bool weatherAlertsEnabled() const
Returns the ConnectivityMessage data message's weatherAlertsEnabled field's current value.
void setAntEnabled(const bool antEnabled)
Sets the antEnabled field to antEnabled.
bool courseDownloadEnabled() const
Returns the ConnectivityMessage data message's courseDownloadEnabled field's current value.
void setBluetoothLeEnabled(const bool bluetoothLeEnabled)
Sets the bluetoothLeEnabled field to bluetoothLeEnabled.
bool weatherConditionsEnabled() const
Returns the ConnectivityMessage data message's weatherConditionsEnabled field's current value.
void setName(const QString name)
Sets the name field to name.
bool bluetoothLeEnabled() const
Returns the ConnectivityMessage data message's bluetoothLeEnabled field's current value.
ConnectivityMessage()
Constructs a ConnectivityMessage object.
bool incidentDetectionEnabled() const
Returns the ConnectivityMessage data message's incidentDetectionEnabled field's current value.
void setIncidentDetectionEnabled(const bool incidentDetectionEnabled)
Sets the incidentDetectionEnabled field to incidentDetectionEnabled.
bool liveTrackingEnabled() const
Returns the ConnectivityMessage data message's liveTrackingEnabled field's current value.
Declares the ConnectivityMessage class.
Declares the ConnectivityMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.