QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
DeviceSettingsMessage Class Reference

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

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

Public Member Functions

 DeviceSettingsMessage ()
 Constructs a DeviceSettingsMessage object. More...
 
quint8 activeTimeZone () const
 Returns the DeviceSettingsMessage data message's activeTimeZone field's current value. More...
 
quint32 utcOffset () const
 Returns the DeviceSettingsMessage data message's utcOffset field's current value. More...
 
quint32 timeOffset () const
 Returns the DeviceSettingsMessage data message's timeOffset field's current value. More...
 
TimeMode timeMode () const
 Returns the DeviceSettingsMessage data message's timeMode field's current value. More...
 
qint8 timeZoneOffset () const
 Returns the DeviceSettingsMessage data message's timeZoneOffset field's current value. More...
 
BacklightMode backlightMode () const
 Returns the DeviceSettingsMessage data message's backlightMode field's current value. More...
 
bool activityTrackerEnabled () const
 Returns the DeviceSettingsMessage data message's activityTrackerEnabled field's current value. More...
 
DateTime clockTime () const
 Returns the DeviceSettingsMessage data message's clockTime field's current value. More...
 
quint16 pagesEnabled () const
 Returns the DeviceSettingsMessage data message's pagesEnabled field's current value. More...
 
bool moveAlertEnabled () const
 Returns the DeviceSettingsMessage data message's moveAlertEnabled field's current value. More...
 
DateMode dateMode () const
 Returns the DeviceSettingsMessage data message's dateMode field's current value. More...
 
DisplayOrientation displayOrientation () const
 Returns the DeviceSettingsMessage data message's displayOrientation field's current value. More...
 
Side mountingSide () const
 Returns the DeviceSettingsMessage data message's mountingSide field's current value. More...
 
quint16 defaultPage () const
 Returns the DeviceSettingsMessage data message's defaultPage field's current value. More...
 
quint16 autosyncMinSteps () const
 Returns the DeviceSettingsMessage data message's autosyncMinSteps field's current value. More...
 
quint16 autosyncMinTime () const
 Returns the DeviceSettingsMessage data message's autosyncMinTime field's current value. More...
 
bool lactateThresholdAutodetectEnabled () const
 Returns the DeviceSettingsMessage data message's lactateThresholdAutodetectEnabled field's current value. More...
 
bool bleAutoUploadEnabled () const
 Returns the DeviceSettingsMessage data message's bleAutoUploadEnabled field's current value. More...
 
AutoSyncFrequency autoSyncFrequency () const
 Returns the DeviceSettingsMessage data message's autoSyncFrequency field's current value. More...
 
AutoActivityDetect autoActivityDetect () const
 Returns the DeviceSettingsMessage data message's autoActivityDetect field's current value. More...
 
quint8 numberOfScreens () const
 Returns the DeviceSettingsMessage data message's numberOfScreens field's current value. More...
 
DisplayOrientation smartNotificationDisplayOrientation () const
 Returns the DeviceSettingsMessage data message's smartNotificationDisplayOrientation field's current value. More...
 
Switch tapInterface () const
 Returns the DeviceSettingsMessage data message's tapInterface field's current value. More...
 
TapSensitivity tapSensitivity () const
 Returns the DeviceSettingsMessage data message's tapSensitivity field's current value. More...
 
void setActiveTimeZone (const quint8 activeTimeZone)
 Sets the activeTimeZone field to activeTimeZone. More...
 
void setUtcOffset (const quint32 utcOffset)
 Sets the utcOffset field to utcOffset. More...
 
void setTimeOffset (const quint32 timeOffset)
 Sets the timeOffset field to timeOffset. More...
 
void setTimeMode (const TimeMode timeMode)
 Sets the timeMode field to timeMode. More...
 
void setTimeZoneOffset (const qint8 timeZoneOffset)
 Sets the timeZoneOffset field to timeZoneOffset. More...
 
void setBacklightMode (const BacklightMode backlightMode)
 Sets the backlightMode field to backlightMode. More...
 
void setActivityTrackerEnabled (const bool activityTrackerEnabled)
 Sets the activityTrackerEnabled field to activityTrackerEnabled. More...
 
void setClockTime (const DateTime clockTime)
 Sets the clockTime field to clockTime. More...
 
void setPagesEnabled (const quint16 pagesEnabled)
 Sets the pagesEnabled field to pagesEnabled. More...
 
void setMoveAlertEnabled (const bool moveAlertEnabled)
 Sets the moveAlertEnabled field to moveAlertEnabled. More...
 
void setDateMode (const DateMode dateMode)
 Sets the dateMode field to dateMode. More...
 
void setDisplayOrientation (const DisplayOrientation displayOrientation)
 Sets the displayOrientation field to displayOrientation. More...
 
void setMountingSide (const Side mountingSide)
 Sets the mountingSide field to mountingSide. More...
 
void setDefaultPage (const quint16 defaultPage)
 Sets the defaultPage field to defaultPage. More...
 
void setAutosyncMinSteps (const quint16 autosyncMinSteps)
 Sets the autosyncMinSteps field to autosyncMinSteps. More...
 
void setAutosyncMinTime (const quint16 autosyncMinTime)
 Sets the autosyncMinTime field to autosyncMinTime. More...
 
void setLactateThresholdAutodetectEnabled (const bool lactateThresholdAutodetectEnabled)
 Sets the lactateThresholdAutodetectEnabled field to lactateThresholdAutodetectEnabled. More...
 
void setBleAutoUploadEnabled (const bool bleAutoUploadEnabled)
 Sets the bleAutoUploadEnabled field to bleAutoUploadEnabled. More...
 
void setAutoSyncFrequency (const AutoSyncFrequency autoSyncFrequency)
 Sets the autoSyncFrequency field to autoSyncFrequency. More...
 
void setAutoActivityDetect (const AutoActivityDetect autoActivityDetect)
 Sets the autoActivityDetect field to autoActivityDetect. More...
 
void setNumberOfScreens (const quint8 numberOfScreens)
 Sets the numberOfScreens field to numberOfScreens. More...
 
void setSmartNotificationDisplayOrientation (const DisplayOrientation smartNotificationDisplayOrientation)
 Sets the smartNotificationDisplayOrientation field to smartNotificationDisplayOrientation. More...
 
void setTapInterface (const Switch tapInterface)
 Sets the tapInterface field to tapInterface. More...
 
void setTapSensitivity (const TapSensitivity tapSensitivity)
 Sets the tapSensitivity field to tapSensitivity. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

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...
 

Detailed Description

The DeviceSettingsMessage class represents a FIT DeviceSettingsMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ DeviceSettingsMessage()

DeviceSettingsMessage::DeviceSettingsMessage ( )

Constructs a DeviceSettingsMessage 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.

Member Function Documentation

◆ activeTimeZone()

quint8 DeviceSettingsMessage::activeTimeZone ( ) const

Returns the DeviceSettingsMessage data message's activeTimeZone field's current value.

Index into time zone arrays.

Returns
the activeTimeZone field value.
Here is the caller graph for this function:

◆ activityTrackerEnabled()

bool DeviceSettingsMessage::activityTrackerEnabled ( ) const

Returns the DeviceSettingsMessage data message's activityTrackerEnabled field's current value.

Enabled state of the activity tracker functionality

Returns
the activityTrackerEnabled field value.
Here is the caller graph for this function:

◆ autoActivityDetect()

AutoActivityDetect DeviceSettingsMessage::autoActivityDetect ( ) const

Returns the DeviceSettingsMessage data message's autoActivityDetect field's current value.

Allows setting specific activities auto-activity detect enabled/disabled settings

Returns
the autoActivityDetect field value.
Here is the caller graph for this function:

◆ autoSyncFrequency()

AutoSyncFrequency DeviceSettingsMessage::autoSyncFrequency ( ) const

Returns the DeviceSettingsMessage data message's autoSyncFrequency field's current value.

Helps to conserve battery by changing modes

Returns
the autoSyncFrequency field value.
Here is the caller graph for this function:

◆ autosyncMinSteps()

quint16 DeviceSettingsMessage::autosyncMinSteps ( ) const

Returns the DeviceSettingsMessage data message's autosyncMinSteps field's current value.

Minimum steps before an autosync can occur

Returns
the autosyncMinSteps field value.
Here is the caller graph for this function:

◆ autosyncMinTime()

quint16 DeviceSettingsMessage::autosyncMinTime ( ) const

Returns the DeviceSettingsMessage data message's autosyncMinTime field's current value.

Minimum minutes before an autosync can occur

Returns
the autosyncMinTime field value.
Here is the caller graph for this function:

◆ backlightMode()

BacklightMode DeviceSettingsMessage::backlightMode ( ) const

Returns the DeviceSettingsMessage data message's backlightMode field's current value.

Mode for backlight

Returns
the backlightMode field value.
Here is the caller graph for this function:

◆ bleAutoUploadEnabled()

bool DeviceSettingsMessage::bleAutoUploadEnabled ( ) const

Returns the DeviceSettingsMessage data message's bleAutoUploadEnabled field's current value.

Automatically upload using BLE

Returns
the bleAutoUploadEnabled field value.
Here is the caller graph for this function:

◆ clockTime()

DateTime DeviceSettingsMessage::clockTime ( ) const

Returns the DeviceSettingsMessage data message's clockTime field's current value.

UTC timestamp used to set the devices clock and date

Returns
the clockTime field value.
Here is the caller graph for this function:

◆ dateMode()

DateMode DeviceSettingsMessage::dateMode ( ) const

Returns the DeviceSettingsMessage data message's dateMode field's current value.

Display mode for the date

Returns
the dateMode field value.
Here is the caller graph for this function:

◆ defaultPage()

quint16 DeviceSettingsMessage::defaultPage ( ) const

Returns the DeviceSettingsMessage data message's defaultPage field's current value.

Bitfield to indicate one page as default for each supported loop

Returns
the defaultPage field value.
Here is the caller graph for this function:

◆ displayOrientation()

DisplayOrientation DeviceSettingsMessage::displayOrientation ( ) const

Returns the DeviceSettingsMessage data message's displayOrientation field's current value.

Returns
the displayOrientation field value.
Here is the caller graph for this function:

◆ lactateThresholdAutodetectEnabled()

bool DeviceSettingsMessage::lactateThresholdAutodetectEnabled ( ) const

Returns the DeviceSettingsMessage data message's lactateThresholdAutodetectEnabled field's current value.

Enable auto-detect setting for the lactate threshold feature.

Returns
the lactateThresholdAutodetectEnabled field value.
Here is the caller graph for this function:

◆ mountingSide()

Side DeviceSettingsMessage::mountingSide ( ) const

Returns the DeviceSettingsMessage data message's mountingSide field's current value.

Returns
the mountingSide field value.
Here is the caller graph for this function:

◆ moveAlertEnabled()

bool DeviceSettingsMessage::moveAlertEnabled ( ) const

Returns the DeviceSettingsMessage data message's moveAlertEnabled field's current value.

Enabled state of the move alert

Returns
the moveAlertEnabled field value.
Here is the caller graph for this function:

◆ numberOfScreens()

quint8 DeviceSettingsMessage::numberOfScreens ( ) const

Returns the DeviceSettingsMessage data message's numberOfScreens field's current value.

Number of screens configured to display

Returns
the numberOfScreens field value.
Here is the caller graph for this function:

◆ pagesEnabled()

quint16 DeviceSettingsMessage::pagesEnabled ( ) const

Returns the DeviceSettingsMessage data message's pagesEnabled field's current value.

Bitfield to configure enabled screens for each supported loop

Returns
the pagesEnabled field value.
Here is the caller graph for this function:

◆ setActiveTimeZone()

void DeviceSettingsMessage::setActiveTimeZone ( const quint8  activeTimeZone)

Sets the activeTimeZone field to activeTimeZone.

Parameters
activeTimeZoneThe field value to set.
Here is the call graph for this function:

◆ setActivityTrackerEnabled()

void DeviceSettingsMessage::setActivityTrackerEnabled ( const bool  activityTrackerEnabled)

Sets the activityTrackerEnabled field to activityTrackerEnabled.

Parameters
activityTrackerEnabledThe field value to set.
Here is the call graph for this function:

◆ setAutoActivityDetect()

void DeviceSettingsMessage::setAutoActivityDetect ( const AutoActivityDetect  autoActivityDetect)

Sets the autoActivityDetect field to autoActivityDetect.

Parameters
autoActivityDetectThe field value to set.
Here is the call graph for this function:

◆ setAutoSyncFrequency()

void DeviceSettingsMessage::setAutoSyncFrequency ( const AutoSyncFrequency  autoSyncFrequency)

Sets the autoSyncFrequency field to autoSyncFrequency.

Parameters
autoSyncFrequencyThe field value to set.
Here is the call graph for this function:

◆ setAutosyncMinSteps()

void DeviceSettingsMessage::setAutosyncMinSteps ( const quint16  autosyncMinSteps)

Sets the autosyncMinSteps field to autosyncMinSteps.

Parameters
autosyncMinStepsThe field value to set.
Here is the call graph for this function:

◆ setAutosyncMinTime()

void DeviceSettingsMessage::setAutosyncMinTime ( const quint16  autosyncMinTime)

Sets the autosyncMinTime field to autosyncMinTime.

Parameters
autosyncMinTimeThe field value to set.
Here is the call graph for this function:

◆ setBacklightMode()

void DeviceSettingsMessage::setBacklightMode ( const BacklightMode  backlightMode)

Sets the backlightMode field to backlightMode.

Parameters
backlightModeThe field value to set.
Here is the call graph for this function:

◆ setBleAutoUploadEnabled()

void DeviceSettingsMessage::setBleAutoUploadEnabled ( const bool  bleAutoUploadEnabled)

Sets the bleAutoUploadEnabled field to bleAutoUploadEnabled.

Parameters
bleAutoUploadEnabledThe field value to set.
Here is the call graph for this function:

◆ setClockTime()

void DeviceSettingsMessage::setClockTime ( const DateTime  clockTime)

Sets the clockTime field to clockTime.

Parameters
clockTimeThe field value to set.
Here is the call graph for this function:

◆ setDateMode()

void DeviceSettingsMessage::setDateMode ( const DateMode  dateMode)

Sets the dateMode field to dateMode.

Parameters
dateModeThe field value to set.
Here is the call graph for this function:

◆ setDefaultPage()

void DeviceSettingsMessage::setDefaultPage ( const quint16  defaultPage)

Sets the defaultPage field to defaultPage.

Parameters
defaultPageThe field value to set.
Here is the call graph for this function:

◆ setDisplayOrientation()

void DeviceSettingsMessage::setDisplayOrientation ( const DisplayOrientation  displayOrientation)

Sets the displayOrientation field to displayOrientation.

Parameters
displayOrientationThe field value to set.
Here is the call graph for this function:

◆ setLactateThresholdAutodetectEnabled()

void DeviceSettingsMessage::setLactateThresholdAutodetectEnabled ( const bool  lactateThresholdAutodetectEnabled)

Sets the lactateThresholdAutodetectEnabled field to lactateThresholdAutodetectEnabled.

Parameters
lactateThresholdAutodetectEnabledThe field value to set.
Here is the call graph for this function:

◆ setMountingSide()

void DeviceSettingsMessage::setMountingSide ( const Side  mountingSide)

Sets the mountingSide field to mountingSide.

Parameters
mountingSideThe field value to set.
Here is the call graph for this function:

◆ setMoveAlertEnabled()

void DeviceSettingsMessage::setMoveAlertEnabled ( const bool  moveAlertEnabled)

Sets the moveAlertEnabled field to moveAlertEnabled.

Parameters
moveAlertEnabledThe field value to set.
Here is the call graph for this function:

◆ setNumberOfScreens()

void DeviceSettingsMessage::setNumberOfScreens ( const quint8  numberOfScreens)

Sets the numberOfScreens field to numberOfScreens.

Parameters
numberOfScreensThe field value to set.
Here is the call graph for this function:

◆ setPagesEnabled()

void DeviceSettingsMessage::setPagesEnabled ( const quint16  pagesEnabled)

Sets the pagesEnabled field to pagesEnabled.

Parameters
pagesEnabledThe field value to set.
Here is the call graph for this function:

◆ setSmartNotificationDisplayOrientation()

void DeviceSettingsMessage::setSmartNotificationDisplayOrientation ( const DisplayOrientation  smartNotificationDisplayOrientation)

Sets the smartNotificationDisplayOrientation field to smartNotificationDisplayOrientation.

Parameters
smartNotificationDisplayOrientationThe field value to set.
Here is the call graph for this function:

◆ setTapInterface()

void DeviceSettingsMessage::setTapInterface ( const Switch  tapInterface)

Sets the tapInterface field to tapInterface.

Parameters
tapInterfaceThe field value to set.
Here is the call graph for this function:

◆ setTapSensitivity()

void DeviceSettingsMessage::setTapSensitivity ( const TapSensitivity  tapSensitivity)

Sets the tapSensitivity field to tapSensitivity.

Parameters
tapSensitivityThe field value to set.
Here is the call graph for this function:

◆ setTimeMode()

void DeviceSettingsMessage::setTimeMode ( const TimeMode  timeMode)

Sets the timeMode field to timeMode.

Parameters
timeModeThe field value to set.
Here is the call graph for this function:

◆ setTimeOffset()

void DeviceSettingsMessage::setTimeOffset ( const quint32  timeOffset)

Sets the timeOffset field to timeOffset.

Parameters
timeOffsetThe field value to set.
Here is the call graph for this function:

◆ setTimeZoneOffset()

void DeviceSettingsMessage::setTimeZoneOffset ( const qint8  timeZoneOffset)

Sets the timeZoneOffset field to timeZoneOffset.

Parameters
timeZoneOffsetThe field value to set.
Here is the call graph for this function:

◆ setUtcOffset()

void DeviceSettingsMessage::setUtcOffset ( const quint32  utcOffset)

Sets the utcOffset field to utcOffset.

Parameters
utcOffsetThe field value to set.
Here is the call graph for this function:

◆ smartNotificationDisplayOrientation()

DisplayOrientation DeviceSettingsMessage::smartNotificationDisplayOrientation ( ) const

Returns the DeviceSettingsMessage data message's smartNotificationDisplayOrientation field's current value.

Smart Notification display orientation

Returns
the smartNotificationDisplayOrientation field value.
Here is the caller graph for this function:

◆ tapInterface()

Switch DeviceSettingsMessage::tapInterface ( ) const

Returns the DeviceSettingsMessage data message's tapInterface field's current value.

Returns
the tapInterface field value.
Here is the caller graph for this function:

◆ tapSensitivity()

TapSensitivity DeviceSettingsMessage::tapSensitivity ( ) const

Returns the DeviceSettingsMessage data message's tapSensitivity field's current value.

Used to hold the tap threshold setting

Returns
the tapSensitivity field value.
Here is the caller graph for this function:

◆ timeMode()

TimeMode DeviceSettingsMessage::timeMode ( ) const

Returns the DeviceSettingsMessage data message's timeMode field's current value.

Display mode for the time

Returns
the timeMode field value.
Here is the caller graph for this function:

◆ timeOffset()

quint32 DeviceSettingsMessage::timeOffset ( ) const

Returns the DeviceSettingsMessage data message's timeOffset field's current value.

Offset from system time.

Returns
the timeOffset field value.
Here is the caller graph for this function:

◆ timeZoneOffset()

qint8 DeviceSettingsMessage::timeZoneOffset ( ) const

Returns the DeviceSettingsMessage data message's timeZoneOffset field's current value.

timezone offset in 1/4 hour increments

Returns
the timeZoneOffset field value.
Here is the caller graph for this function:

◆ utcOffset()

quint32 DeviceSettingsMessage::utcOffset ( ) const

Returns the DeviceSettingsMessage data message's utcOffset field's current value.

Offset from system time. Required to convert timestamp from system time to UTC.

Returns
the utcOffset field value.
Here is the caller graph for this function:

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