QtFit
0.1
Internal library development documentation
|
The CoursePointMessage class represents a FIT CoursePointMessage data message. More...
Public Member Functions | |
CoursePointMessage () | |
Constructs a CoursePointMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the CoursePointMessage data message's messageIndex field's current value. More... | |
DateTime | timestamp () const |
Returns the CoursePointMessage data message's timestamp field's current value. More... | |
qint32 | positionLat () const |
Returns the CoursePointMessage data message's positionLat field's current value. More... | |
qint32 | positionLong () const |
Returns the CoursePointMessage data message's positionLong field's current value. More... | |
quint32 | distance () const |
Returns the CoursePointMessage data message's distance field's current value. More... | |
CoursePoint | type () const |
Returns the CoursePointMessage data message's type field's current value. More... | |
QString | name () const |
Returns the CoursePointMessage data message's name field's current value. More... | |
bool | favorite () const |
Returns the CoursePointMessage data message's favorite field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setPositionLat (const qint32 positionLat) |
Sets the positionLat field to positionLat. More... | |
void | setPositionLong (const qint32 positionLong) |
Sets the positionLong field to positionLong. More... | |
void | setDistance (const quint32 distance) |
Sets the distance field to distance. More... | |
void | setType (const CoursePoint type) |
Sets the type field to type. More... | |
void | setName (const QString name) |
Sets the name field to name. More... | |
void | setFavorite (const bool favorite) |
Sets the favorite field to favorite. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
CoursePointMessage (CoursePointMessagePrivate *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 CoursePointMessage class represents a FIT CoursePointMessage data message.
Definition at line 39 of file coursepointmessage.h.
CoursePointMessage::CoursePointMessage | ( | ) |
Constructs a CoursePointMessage 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 coursepointmessage.cpp.
|
explicitprotected |
Constructs a CoursePointMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file coursepointmessage.cpp.
quint32 CoursePointMessage::distance | ( | ) | const |
Returns the CoursePointMessage data message's distance
field's current value.
distance
field value. Definition at line 118 of file coursepointmessage.cpp.
Referenced by setDistance().
bool CoursePointMessage::favorite | ( | ) | const |
Returns the CoursePointMessage data message's favorite
field's current value.
favorite
field value. Definition at line 151 of file coursepointmessage.cpp.
Referenced by setFavorite().
MessageIndex CoursePointMessage::messageIndex | ( | ) | const |
Returns the CoursePointMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file coursepointmessage.cpp.
Referenced by setMessageIndex().
QString CoursePointMessage::name | ( | ) | const |
Returns the CoursePointMessage data message's name
field's current value.
name
field value. Definition at line 140 of file coursepointmessage.cpp.
Referenced by setName().
qint32 CoursePointMessage::positionLat | ( | ) | const |
Returns the CoursePointMessage data message's positionLat
field's current value.
positionLat
field value. Definition at line 96 of file coursepointmessage.cpp.
Referenced by setPositionLat().
qint32 CoursePointMessage::positionLong | ( | ) | const |
Returns the CoursePointMessage data message's positionLong
field's current value.
positionLong
field value. Definition at line 107 of file coursepointmessage.cpp.
Referenced by setPositionLong().
void CoursePointMessage::setDistance | ( | const quint32 | distance | ) |
Sets the distance
field to distance.
distance | The field value to set. |
Definition at line 202 of file coursepointmessage.cpp.
References distance().
void CoursePointMessage::setFavorite | ( | const bool | favorite | ) |
Sets the favorite
field to favorite.
favorite | The field value to set. |
Definition at line 232 of file coursepointmessage.cpp.
References favorite().
void CoursePointMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 162 of file coursepointmessage.cpp.
References messageIndex().
void CoursePointMessage::setName | ( | const QString | name | ) |
Sets the name
field to name.
name | The field value to set. |
Definition at line 222 of file coursepointmessage.cpp.
References name().
void CoursePointMessage::setPositionLat | ( | const qint32 | positionLat | ) |
Sets the positionLat
field to positionLat.
positionLat | The field value to set. |
Definition at line 182 of file coursepointmessage.cpp.
References positionLat().
void CoursePointMessage::setPositionLong | ( | const qint32 | positionLong | ) |
Sets the positionLong
field to positionLong.
positionLong | The field value to set. |
Definition at line 192 of file coursepointmessage.cpp.
References positionLong().
void CoursePointMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 172 of file coursepointmessage.cpp.
References timestamp().
void CoursePointMessage::setType | ( | const CoursePoint | type | ) |
Sets the type
field to type.
type | The field value to set. |
Definition at line 212 of file coursepointmessage.cpp.
References type().
DateTime CoursePointMessage::timestamp | ( | ) | const |
Returns the CoursePointMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 85 of file coursepointmessage.cpp.
Referenced by setTimestamp().
CoursePoint CoursePointMessage::type | ( | ) | const |
Returns the CoursePointMessage data message's type
field's current value.
type
field value. Definition at line 129 of file coursepointmessage.cpp.
Referenced by setType().