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