QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ConnectivityMessage Class Reference

The ConnectivityMessage class represents a FIT ConnectivityMessage data message. More...

Inheritance diagram for ConnectivityMessage:
[legend]
Collaboration diagram for ConnectivityMessage:
[legend]

Public Member Functions

 ConnectivityMessage ()
 Constructs a ConnectivityMessage object. More...
 
bool bluetoothEnabled () const
 Returns the ConnectivityMessage data message's bluetoothEnabled field's current value. More...
 
bool bluetoothLeEnabled () const
 Returns the ConnectivityMessage data message's bluetoothLeEnabled field's current value. More...
 
bool antEnabled () const
 Returns the ConnectivityMessage data message's antEnabled field's current value. More...
 
QString name () const
 Returns the ConnectivityMessage data message's name field's current value. More...
 
bool liveTrackingEnabled () const
 Returns the ConnectivityMessage data message's liveTrackingEnabled field's current value. More...
 
bool weatherConditionsEnabled () const
 Returns the ConnectivityMessage data message's weatherConditionsEnabled field's current value. More...
 
bool weatherAlertsEnabled () const
 Returns the ConnectivityMessage data message's weatherAlertsEnabled field's current value. More...
 
bool autoActivityUploadEnabled () const
 Returns the ConnectivityMessage data message's autoActivityUploadEnabled field's current value. More...
 
bool courseDownloadEnabled () const
 Returns the ConnectivityMessage data message's courseDownloadEnabled field's current value. More...
 
bool workoutDownloadEnabled () const
 Returns the ConnectivityMessage data message's workoutDownloadEnabled field's current value. More...
 
bool gpsEphemerisDownloadEnabled () const
 Returns the ConnectivityMessage data message's gpsEphemerisDownloadEnabled field's current value. More...
 
bool incidentDetectionEnabled () const
 Returns the ConnectivityMessage data message's incidentDetectionEnabled field's current value. More...
 
bool grouptrackEnabled () const
 Returns the ConnectivityMessage data message's grouptrackEnabled field's current value. More...
 
void setBluetoothEnabled (const bool bluetoothEnabled)
 Sets the bluetoothEnabled field to bluetoothEnabled. More...
 
void setBluetoothLeEnabled (const bool bluetoothLeEnabled)
 Sets the bluetoothLeEnabled field to bluetoothLeEnabled. More...
 
void setAntEnabled (const bool antEnabled)
 Sets the antEnabled field to antEnabled. More...
 
void setName (const QString name)
 Sets the name field to name. More...
 
void setLiveTrackingEnabled (const bool liveTrackingEnabled)
 Sets the liveTrackingEnabled field to liveTrackingEnabled. More...
 
void setWeatherConditionsEnabled (const bool weatherConditionsEnabled)
 Sets the weatherConditionsEnabled field to weatherConditionsEnabled. More...
 
void setWeatherAlertsEnabled (const bool weatherAlertsEnabled)
 Sets the weatherAlertsEnabled field to weatherAlertsEnabled. More...
 
void setAutoActivityUploadEnabled (const bool autoActivityUploadEnabled)
 Sets the autoActivityUploadEnabled field to autoActivityUploadEnabled. More...
 
void setCourseDownloadEnabled (const bool courseDownloadEnabled)
 Sets the courseDownloadEnabled field to courseDownloadEnabled. More...
 
void setWorkoutDownloadEnabled (const bool workoutDownloadEnabled)
 Sets the workoutDownloadEnabled field to workoutDownloadEnabled. More...
 
void setGpsEphemerisDownloadEnabled (const bool gpsEphemerisDownloadEnabled)
 Sets the gpsEphemerisDownloadEnabled field to gpsEphemerisDownloadEnabled. More...
 
void setIncidentDetectionEnabled (const bool incidentDetectionEnabled)
 Sets the incidentDetectionEnabled field to incidentDetectionEnabled. More...
 
void setGrouptrackEnabled (const bool grouptrackEnabled)
 Sets the grouptrackEnabled field to grouptrackEnabled. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Protected Member Functions

 ConnectivityMessage (ConnectivityMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The ConnectivityMessage class represents a FIT ConnectivityMessage data message.

See also
DataMessage

Definition at line 39 of file connectivitymessage.h.

Constructor & Destructor Documentation

◆ ConnectivityMessage() [1/2]

ConnectivityMessage::ConnectivityMessage ( )

Constructs a ConnectivityMessage object.

Typically, instances of this class will be returned by FitStreamReader::readNext, but this constructor may be used, along with the relevant setter methods, to create a valid message.

Definition at line 52 of file connectivitymessage.cpp.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ ConnectivityMessage() [2/2]

ConnectivityMessage::ConnectivityMessage ( ConnectivityMessagePrivate *const  d)
explicitprotected

Constructs a ConnectivityMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file connectivitymessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ antEnabled()

bool ConnectivityMessage::antEnabled ( ) const

Returns the ConnectivityMessage data message's antEnabled field's current value.

Use ANT for connectivity features

Returns
the antEnabled field value.

Definition at line 102 of file connectivitymessage.cpp.

103 {
104  Q_D(const ConnectivityMessage);
105  return d->antEnabled;
106 }
The ConnectivityMessage class represents a FIT ConnectivityMessage data message.

Referenced by setAntEnabled().

Here is the caller graph for this function:

◆ autoActivityUploadEnabled()

bool ConnectivityMessage::autoActivityUploadEnabled ( ) const

Returns the ConnectivityMessage data message's autoActivityUploadEnabled field's current value.

Returns
the autoActivityUploadEnabled field value.

Definition at line 157 of file connectivitymessage.cpp.

158 {
159  Q_D(const ConnectivityMessage);
160  return d->autoActivityUploadEnabled;
161 }

Referenced by setAutoActivityUploadEnabled().

Here is the caller graph for this function:

◆ bluetoothEnabled()

bool ConnectivityMessage::bluetoothEnabled ( ) const

Returns the ConnectivityMessage data message's bluetoothEnabled field's current value.

Use Bluetooth for connectivity features

Returns
the bluetoothEnabled field value.

Definition at line 76 of file connectivitymessage.cpp.

77 {
78  Q_D(const ConnectivityMessage);
79  return d->bluetoothEnabled;
80 }

Referenced by setBluetoothEnabled().

Here is the caller graph for this function:

◆ bluetoothLeEnabled()

bool ConnectivityMessage::bluetoothLeEnabled ( ) const

Returns the ConnectivityMessage data message's bluetoothLeEnabled field's current value.

Use Bluetooth Low Energy for connectivity features

Returns
the bluetoothLeEnabled field value.

Definition at line 89 of file connectivitymessage.cpp.

90 {
91  Q_D(const ConnectivityMessage);
92  return d->bluetoothLeEnabled;
93 }

Referenced by setBluetoothLeEnabled().

Here is the caller graph for this function:

◆ courseDownloadEnabled()

bool ConnectivityMessage::courseDownloadEnabled ( ) const

Returns the ConnectivityMessage data message's courseDownloadEnabled field's current value.

Returns
the courseDownloadEnabled field value.

Definition at line 168 of file connectivitymessage.cpp.

169 {
170  Q_D(const ConnectivityMessage);
171  return d->courseDownloadEnabled;
172 }

Referenced by setCourseDownloadEnabled().

Here is the caller graph for this function:

◆ gpsEphemerisDownloadEnabled()

bool ConnectivityMessage::gpsEphemerisDownloadEnabled ( ) const

Returns the ConnectivityMessage data message's gpsEphemerisDownloadEnabled field's current value.

Returns
the gpsEphemerisDownloadEnabled field value.

Definition at line 190 of file connectivitymessage.cpp.

191 {
192  Q_D(const ConnectivityMessage);
193  return d->gpsEphemerisDownloadEnabled;
194 }

Referenced by setGpsEphemerisDownloadEnabled().

Here is the caller graph for this function:

◆ grouptrackEnabled()

bool ConnectivityMessage::grouptrackEnabled ( ) const

Returns the ConnectivityMessage data message's grouptrackEnabled field's current value.

Returns
the grouptrackEnabled field value.

Definition at line 212 of file connectivitymessage.cpp.

213 {
214  Q_D(const ConnectivityMessage);
215  return d->grouptrackEnabled;
216 }

Referenced by setGrouptrackEnabled().

Here is the caller graph for this function:

◆ incidentDetectionEnabled()

bool ConnectivityMessage::incidentDetectionEnabled ( ) const

Returns the ConnectivityMessage data message's incidentDetectionEnabled field's current value.

Returns
the incidentDetectionEnabled field value.

Definition at line 201 of file connectivitymessage.cpp.

202 {
203  Q_D(const ConnectivityMessage);
204  return d->incidentDetectionEnabled;
205 }

Referenced by setIncidentDetectionEnabled().

Here is the caller graph for this function:

◆ liveTrackingEnabled()

bool ConnectivityMessage::liveTrackingEnabled ( ) const

Returns the ConnectivityMessage data message's liveTrackingEnabled field's current value.

Returns
the liveTrackingEnabled field value.

Definition at line 124 of file connectivitymessage.cpp.

125 {
126  Q_D(const ConnectivityMessage);
127  return d->liveTrackingEnabled;
128 }

Referenced by setLiveTrackingEnabled().

Here is the caller graph for this function:

◆ name()

QString ConnectivityMessage::name ( ) const

Returns the ConnectivityMessage data message's name field's current value.

Returns
the name field value.

Definition at line 113 of file connectivitymessage.cpp.

114 {
115  Q_D(const ConnectivityMessage);
116  return d->name;
117 }

Referenced by setName().

Here is the caller graph for this function:

◆ setAntEnabled()

void ConnectivityMessage::setAntEnabled ( const bool  antEnabled)

Sets the antEnabled field to antEnabled.

Parameters
antEnabledThe field value to set.

Definition at line 243 of file connectivitymessage.cpp.

244 {
245  Q_D(ConnectivityMessage);
246  d->antEnabled = antEnabled;
247 }
bool antEnabled() const
Returns the ConnectivityMessage data message's antEnabled field's current value.

References antEnabled().

Here is the call graph for this function:

◆ setAutoActivityUploadEnabled()

void ConnectivityMessage::setAutoActivityUploadEnabled ( const bool  autoActivityUploadEnabled)

Sets the autoActivityUploadEnabled field to autoActivityUploadEnabled.

Parameters
autoActivityUploadEnabledThe field value to set.

Definition at line 293 of file connectivitymessage.cpp.

294 {
295  Q_D(ConnectivityMessage);
296  d->autoActivityUploadEnabled = autoActivityUploadEnabled;
297 }
bool autoActivityUploadEnabled() const
Returns the ConnectivityMessage data message's autoActivityUploadEnabled field's current value.

References autoActivityUploadEnabled().

Here is the call graph for this function:

◆ setBluetoothEnabled()

void ConnectivityMessage::setBluetoothEnabled ( const bool  bluetoothEnabled)

Sets the bluetoothEnabled field to bluetoothEnabled.

Parameters
bluetoothEnabledThe field value to set.

Definition at line 223 of file connectivitymessage.cpp.

224 {
225  Q_D(ConnectivityMessage);
226  d->bluetoothEnabled = bluetoothEnabled;
227 }
bool bluetoothEnabled() const
Returns the ConnectivityMessage data message's bluetoothEnabled field's current value.

References bluetoothEnabled().

Here is the call graph for this function:

◆ setBluetoothLeEnabled()

void ConnectivityMessage::setBluetoothLeEnabled ( const bool  bluetoothLeEnabled)

Sets the bluetoothLeEnabled field to bluetoothLeEnabled.

Parameters
bluetoothLeEnabledThe field value to set.

Definition at line 233 of file connectivitymessage.cpp.

234 {
235  Q_D(ConnectivityMessage);
236  d->bluetoothLeEnabled = bluetoothLeEnabled;
237 }
bool bluetoothLeEnabled() const
Returns the ConnectivityMessage data message's bluetoothLeEnabled field's current value.

References bluetoothLeEnabled().

Here is the call graph for this function:

◆ setCourseDownloadEnabled()

void ConnectivityMessage::setCourseDownloadEnabled ( const bool  courseDownloadEnabled)

Sets the courseDownloadEnabled field to courseDownloadEnabled.

Parameters
courseDownloadEnabledThe field value to set.

Definition at line 303 of file connectivitymessage.cpp.

304 {
305  Q_D(ConnectivityMessage);
306  d->courseDownloadEnabled = courseDownloadEnabled;
307 }
bool courseDownloadEnabled() const
Returns the ConnectivityMessage data message's courseDownloadEnabled field's current value.

References courseDownloadEnabled().

Here is the call graph for this function:

◆ setGpsEphemerisDownloadEnabled()

void ConnectivityMessage::setGpsEphemerisDownloadEnabled ( const bool  gpsEphemerisDownloadEnabled)

Sets the gpsEphemerisDownloadEnabled field to gpsEphemerisDownloadEnabled.

Parameters
gpsEphemerisDownloadEnabledThe field value to set.

Definition at line 323 of file connectivitymessage.cpp.

324 {
325  Q_D(ConnectivityMessage);
326  d->gpsEphemerisDownloadEnabled = gpsEphemerisDownloadEnabled;
327 }
bool gpsEphemerisDownloadEnabled() const
Returns the ConnectivityMessage data message's gpsEphemerisDownloadEnabled field's current value.

References gpsEphemerisDownloadEnabled().

Here is the call graph for this function:

◆ setGrouptrackEnabled()

void ConnectivityMessage::setGrouptrackEnabled ( const bool  grouptrackEnabled)

Sets the grouptrackEnabled field to grouptrackEnabled.

Parameters
grouptrackEnabledThe field value to set.

Definition at line 343 of file connectivitymessage.cpp.

344 {
345  Q_D(ConnectivityMessage);
346  d->grouptrackEnabled = grouptrackEnabled;
347 }
bool grouptrackEnabled() const
Returns the ConnectivityMessage data message's grouptrackEnabled field's current value.

References grouptrackEnabled().

Here is the call graph for this function:

◆ setIncidentDetectionEnabled()

void ConnectivityMessage::setIncidentDetectionEnabled ( const bool  incidentDetectionEnabled)

Sets the incidentDetectionEnabled field to incidentDetectionEnabled.

Parameters
incidentDetectionEnabledThe field value to set.

Definition at line 333 of file connectivitymessage.cpp.

334 {
335  Q_D(ConnectivityMessage);
336  d->incidentDetectionEnabled = incidentDetectionEnabled;
337 }
bool incidentDetectionEnabled() const
Returns the ConnectivityMessage data message's incidentDetectionEnabled field's current value.

References incidentDetectionEnabled().

Here is the call graph for this function:

◆ setLiveTrackingEnabled()

void ConnectivityMessage::setLiveTrackingEnabled ( const bool  liveTrackingEnabled)

Sets the liveTrackingEnabled field to liveTrackingEnabled.

Parameters
liveTrackingEnabledThe field value to set.

Definition at line 263 of file connectivitymessage.cpp.

264 {
265  Q_D(ConnectivityMessage);
266  d->liveTrackingEnabled = liveTrackingEnabled;
267 }
bool liveTrackingEnabled() const
Returns the ConnectivityMessage data message's liveTrackingEnabled field's current value.

References liveTrackingEnabled().

Here is the call graph for this function:

◆ setName()

void ConnectivityMessage::setName ( const QString  name)

Sets the name field to name.

Parameters
nameThe field value to set.

Definition at line 253 of file connectivitymessage.cpp.

254 {
255  Q_D(ConnectivityMessage);
256  d->name = name;
257 }
QString name() const
Returns the ConnectivityMessage data message's name field's current value.

References name().

Here is the call graph for this function:

◆ setWeatherAlertsEnabled()

void ConnectivityMessage::setWeatherAlertsEnabled ( const bool  weatherAlertsEnabled)

Sets the weatherAlertsEnabled field to weatherAlertsEnabled.

Parameters
weatherAlertsEnabledThe field value to set.

Definition at line 283 of file connectivitymessage.cpp.

284 {
285  Q_D(ConnectivityMessage);
286  d->weatherAlertsEnabled = weatherAlertsEnabled;
287 }
bool weatherAlertsEnabled() const
Returns the ConnectivityMessage data message's weatherAlertsEnabled field's current value.

References weatherAlertsEnabled().

Here is the call graph for this function:

◆ setWeatherConditionsEnabled()

void ConnectivityMessage::setWeatherConditionsEnabled ( const bool  weatherConditionsEnabled)

Sets the weatherConditionsEnabled field to weatherConditionsEnabled.

Parameters
weatherConditionsEnabledThe field value to set.

Definition at line 273 of file connectivitymessage.cpp.

274 {
275  Q_D(ConnectivityMessage);
276  d->weatherConditionsEnabled = weatherConditionsEnabled;
277 }
bool weatherConditionsEnabled() const
Returns the ConnectivityMessage data message's weatherConditionsEnabled field's current value.

References weatherConditionsEnabled().

Here is the call graph for this function:

◆ setWorkoutDownloadEnabled()

void ConnectivityMessage::setWorkoutDownloadEnabled ( const bool  workoutDownloadEnabled)

Sets the workoutDownloadEnabled field to workoutDownloadEnabled.

Parameters
workoutDownloadEnabledThe field value to set.

Definition at line 313 of file connectivitymessage.cpp.

314 {
315  Q_D(ConnectivityMessage);
316  d->workoutDownloadEnabled = workoutDownloadEnabled;
317 }
bool workoutDownloadEnabled() const
Returns the ConnectivityMessage data message's workoutDownloadEnabled field's current value.

References workoutDownloadEnabled().

Here is the call graph for this function:

◆ weatherAlertsEnabled()

bool ConnectivityMessage::weatherAlertsEnabled ( ) const

Returns the ConnectivityMessage data message's weatherAlertsEnabled field's current value.

Returns
the weatherAlertsEnabled field value.

Definition at line 146 of file connectivitymessage.cpp.

147 {
148  Q_D(const ConnectivityMessage);
149  return d->weatherAlertsEnabled;
150 }

Referenced by setWeatherAlertsEnabled().

Here is the caller graph for this function:

◆ weatherConditionsEnabled()

bool ConnectivityMessage::weatherConditionsEnabled ( ) const

Returns the ConnectivityMessage data message's weatherConditionsEnabled field's current value.

Returns
the weatherConditionsEnabled field value.

Definition at line 135 of file connectivitymessage.cpp.

136 {
137  Q_D(const ConnectivityMessage);
138  return d->weatherConditionsEnabled;
139 }

Referenced by setWeatherConditionsEnabled().

Here is the caller graph for this function:

◆ workoutDownloadEnabled()

bool ConnectivityMessage::workoutDownloadEnabled ( ) const

Returns the ConnectivityMessage data message's workoutDownloadEnabled field's current value.

Returns
the workoutDownloadEnabled field value.

Definition at line 179 of file connectivitymessage.cpp.

180 {
181  Q_D(const ConnectivityMessage);
182  return d->workoutDownloadEnabled;
183 }

Referenced by setWorkoutDownloadEnabled().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: