QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
SegmentIdMessage (SegmentIdMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
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... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The SegmentIdMessage class represents a FIT SegmentIdMessage data message.
Definition at line 39 of file segmentidmessage.h.
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.
Definition at line 52 of file segmentidmessage.cpp.
|
explicitprotected |
Constructs a SegmentIdMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file segmentidmessage.cpp.
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. Definition at line 154 of file segmentidmessage.cpp.
Referenced by setDefaultRaceLeader().
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. Definition at line 167 of file segmentidmessage.cpp.
Referenced by setDeleteStatus().
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. Definition at line 141 of file segmentidmessage.cpp.
Referenced by setDeviceId().
bool SegmentIdMessage::enabled | ( | ) | const |
Returns the SegmentIdMessage data message's enabled
field's current value.
Segment enabled for evaluation
enabled
field value. Definition at line 115 of file segmentidmessage.cpp.
Referenced by setEnabled().
QString SegmentIdMessage::name | ( | ) | const |
Returns the SegmentIdMessage data message's name
field's current value.
Friendly name assigned to segment
name
field value. Definition at line 76 of file segmentidmessage.cpp.
Referenced by setName().
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. Definition at line 180 of file segmentidmessage.cpp.
Referenced by setSelectionType().
void SegmentIdMessage::setDefaultRaceLeader | ( | const quint8 | defaultRaceLeader | ) |
Sets the defaultRaceLeader
field to defaultRaceLeader.
defaultRaceLeader | The field value to set. |
Definition at line 251 of file segmentidmessage.cpp.
References defaultRaceLeader().
void SegmentIdMessage::setDeleteStatus | ( | const SegmentDeleteStatus | deleteStatus | ) |
Sets the deleteStatus
field to deleteStatus.
deleteStatus | The field value to set. |
Definition at line 261 of file segmentidmessage.cpp.
References deleteStatus().
void SegmentIdMessage::setDeviceId | ( | const quint32 | deviceId | ) |
Sets the deviceId
field to deviceId.
deviceId | The field value to set. |
Definition at line 241 of file segmentidmessage.cpp.
References deviceId().
void SegmentIdMessage::setEnabled | ( | const bool | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
Definition at line 221 of file segmentidmessage.cpp.
References enabled().
void SegmentIdMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
Definition at line 191 of file segmentidmessage.cpp.
References name().
void SegmentIdMessage::setSelectionType | ( | const SegmentSelectionType | selectionType | ) |
Sets the selectionType
field to selectionType.
selectionType | The field value to set. |
Definition at line 271 of file segmentidmessage.cpp.
References selectionType().
void SegmentIdMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
Definition at line 211 of file segmentidmessage.cpp.
References sport().
void SegmentIdMessage::setUserProfilePrimaryKey | ( | const quint32 | userProfilePrimaryKey | ) |
Sets the userProfilePrimaryKey
field to userProfilePrimaryKey.
userProfilePrimaryKey | The field value to set. |
Definition at line 231 of file segmentidmessage.cpp.
References userProfilePrimaryKey().
void SegmentIdMessage::setUuid | ( | const QString | uuid | ) |
Sets the uuid
field to uuid.
uuid | The field value to set. |
Definition at line 201 of file segmentidmessage.cpp.
References uuid().
Sport SegmentIdMessage::sport | ( | ) | const |
Returns the SegmentIdMessage data message's sport
field's current value.
Sport associated with the segment
sport
field value. Definition at line 102 of file segmentidmessage.cpp.
Referenced by setSport().
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. Definition at line 128 of file segmentidmessage.cpp.
Referenced by setUserProfilePrimaryKey().
QString SegmentIdMessage::uuid | ( | ) | const |
Returns the SegmentIdMessage data message's uuid
field's current value.
UUID of the segment
uuid
field value. Definition at line 89 of file segmentidmessage.cpp.
Referenced by setUuid().