QtFit
0.1
Native Qt library for Garmin FIT format
|
The SegmentIdMessage class represents a FIT SegmentIdMessage data message. More...
Public Member Functions | |
SegmentIdMessage () | |
Constructs a SegmentIdMessage object. More... | |
QString | name () const |
Returns the SegmentIdMessage data message's name field's current value. More... | |
QString | uuid () const |
Returns the SegmentIdMessage data message's uuid field's current value. More... | |
Sport | sport () const |
Returns the SegmentIdMessage data message's sport field's current value. More... | |
bool | enabled () const |
Returns the SegmentIdMessage data message's enabled field's current value. More... | |
quint32 | userProfilePrimaryKey () const |
Returns the SegmentIdMessage data message's userProfilePrimaryKey field's current value. More... | |
quint32 | deviceId () const |
Returns the SegmentIdMessage data message's deviceId field's current value. More... | |
quint8 | defaultRaceLeader () const |
Returns the SegmentIdMessage data message's defaultRaceLeader field's current value. More... | |
SegmentDeleteStatus | deleteStatus () const |
Returns the SegmentIdMessage data message's deleteStatus field's current value. More... | |
SegmentSelectionType | selectionType () const |
Returns the SegmentIdMessage data message's selectionType field's current value. More... | |
void | setName (const QString name) |
Sets the name field to name. More... | |
void | setUuid (const QString uuid) |
Sets the uuid field to uuid. More... | |
void | setSport (const Sport sport) |
Sets the sport field to sport. More... | |
void | setEnabled (const bool enabled) |
Sets the enabled field to enabled. More... | |
void | setUserProfilePrimaryKey (const quint32 userProfilePrimaryKey) |
Sets the userProfilePrimaryKey field to userProfilePrimaryKey. More... | |
void | setDeviceId (const quint32 deviceId) |
Sets the deviceId field to deviceId. More... | |
void | setDefaultRaceLeader (const quint8 defaultRaceLeader) |
Sets the defaultRaceLeader field to defaultRaceLeader. More... | |
void | setDeleteStatus (const SegmentDeleteStatus deleteStatus) |
Sets the deleteStatus field to deleteStatus. More... | |
void | setSelectionType (const SegmentSelectionType selectionType) |
Sets the selectionType field to selectionType. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
The SegmentIdMessage class represents a FIT SegmentIdMessage data message.
SegmentIdMessage::SegmentIdMessage | ( | ) |
Constructs a SegmentIdMessage 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.
quint8 SegmentIdMessage::defaultRaceLeader | ( | ) | const |
Returns the SegmentIdMessage data message's defaultRaceLeader
field's current value.
Index for the Leader Board entry selected as the default race participant
defaultRaceLeader
field value. SegmentDeleteStatus SegmentIdMessage::deleteStatus | ( | ) | const |
Returns the SegmentIdMessage data message's deleteStatus
field's current value.
Indicates if any segments should be deleted
deleteStatus
field value. quint32 SegmentIdMessage::deviceId | ( | ) | const |
Returns the SegmentIdMessage data message's deviceId
field's current value.
ID of the device that created the segment
deviceId
field value. bool SegmentIdMessage::enabled | ( | ) | const |
Returns the SegmentIdMessage data message's enabled
field's current value.
Segment enabled for evaluation
enabled
field value. QString SegmentIdMessage::name | ( | ) | const |
Returns the SegmentIdMessage data message's name
field's current value.
Friendly name assigned to segment
name
field value. SegmentSelectionType SegmentIdMessage::selectionType | ( | ) | const |
Returns the SegmentIdMessage data message's selectionType
field's current value.
Indicates how the segment was selected to be sent to the device
selectionType
field value. void SegmentIdMessage::setDefaultRaceLeader | ( | const quint8 | defaultRaceLeader | ) |
Sets the defaultRaceLeader
field to defaultRaceLeader.
defaultRaceLeader | The field value to set. |
void SegmentIdMessage::setDeleteStatus | ( | const SegmentDeleteStatus | deleteStatus | ) |
Sets the deleteStatus
field to deleteStatus.
deleteStatus | The field value to set. |
void SegmentIdMessage::setDeviceId | ( | const quint32 | deviceId | ) |
Sets the deviceId
field to deviceId.
deviceId | The field value to set. |
void SegmentIdMessage::setEnabled | ( | const bool | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
void SegmentIdMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
void SegmentIdMessage::setSelectionType | ( | const SegmentSelectionType | selectionType | ) |
Sets the selectionType
field to selectionType.
selectionType | The field value to set. |
void SegmentIdMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
void SegmentIdMessage::setUserProfilePrimaryKey | ( | const quint32 | userProfilePrimaryKey | ) |
Sets the userProfilePrimaryKey
field to userProfilePrimaryKey.
userProfilePrimaryKey | The field value to set. |
void SegmentIdMessage::setUuid | ( | const QString | uuid | ) |
Sets the uuid
field to uuid.
uuid | The field value to set. |
Sport SegmentIdMessage::sport | ( | ) | const |
Returns the SegmentIdMessage data message's sport
field's current value.
Sport associated with the segment
sport
field value. quint32 SegmentIdMessage::userProfilePrimaryKey | ( | ) | const |
Returns the SegmentIdMessage data message's userProfilePrimaryKey
field's current value.
Primary key of the user that created the segment
userProfilePrimaryKey
field value. QString SegmentIdMessage::uuid | ( | ) | const |
Returns the SegmentIdMessage data message's uuid
field's current value.
UUID of the segment
uuid
field value.