QtFit
0.1
Internal library development documentation
|
The SportMessage class represents a FIT SportMessage data message. More...
Public Member Functions | |
SportMessage () | |
Constructs a SportMessage object. More... | |
Sport | sport () const |
Returns the SportMessage data message's sport field's current value. More... | |
SubSport | subSport () const |
Returns the SportMessage data message's subSport field's current value. More... | |
QString | name () const |
Returns the SportMessage data message's name field's current value. More... | |
void | setSport (const Sport sport) |
Sets the sport field to sport. More... | |
void | setSubSport (const SubSport subSport) |
Sets the subSport field to subSport. More... | |
void | setName (const QString name) |
Sets the name field to name. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
SportMessage (SportMessagePrivate *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 SportMessage class represents a FIT SportMessage data message.
Definition at line 39 of file sportmessage.h.
SportMessage::SportMessage | ( | ) |
Constructs a SportMessage 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 sportmessage.cpp.
|
explicitprotected |
Constructs a SportMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file sportmessage.cpp.
QString SportMessage::name | ( | ) | const |
Returns the SportMessage data message's name
field's current value.
name
field value. Definition at line 96 of file sportmessage.cpp.
Referenced by setName().
void SportMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
Definition at line 127 of file sportmessage.cpp.
References name().
void SportMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
Definition at line 107 of file sportmessage.cpp.
References sport().
void SportMessage::setSubSport | ( | const SubSport | subSport | ) |
Sets the subSport
field to subSport.
subSport | The field value to set. |
Definition at line 117 of file sportmessage.cpp.
References subSport().
Sport SportMessage::sport | ( | ) | const |
Returns the SportMessage data message's sport
field's current value.
sport
field value. Definition at line 74 of file sportmessage.cpp.
Referenced by setSport().
SubSport SportMessage::subSport | ( | ) | const |
Returns the SportMessage data message's subSport
field's current value.
subSport
field value. Definition at line 85 of file sportmessage.cpp.
Referenced by setSubSport().