QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
CoursePointMessage Class Reference

The CoursePointMessage class represents a FIT CoursePointMessage data message. More...

Inheritance diagram for CoursePointMessage:
[legend]
Collaboration diagram for CoursePointMessage:
[legend]

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 

Detailed Description

The CoursePointMessage class represents a FIT CoursePointMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ CoursePointMessage()

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.

Member Function Documentation

◆ distance()

quint32 CoursePointMessage::distance ( ) const

Returns the CoursePointMessage data message's distance field's current value.

Returns
the distance field value.
Here is the caller graph for this function:

◆ favorite()

bool CoursePointMessage::favorite ( ) const

Returns the CoursePointMessage data message's favorite field's current value.

Returns
the favorite field value.
Here is the caller graph for this function:

◆ messageIndex()

MessageIndex CoursePointMessage::messageIndex ( ) const

Returns the CoursePointMessage data message's messageIndex field's current value.

Returns
the messageIndex field value.
Here is the caller graph for this function:

◆ name()

QString CoursePointMessage::name ( ) const

Returns the CoursePointMessage data message's name field's current value.

Returns
the name field value.
Here is the caller graph for this function:

◆ positionLat()

qint32 CoursePointMessage::positionLat ( ) const

Returns the CoursePointMessage data message's positionLat field's current value.

Returns
the positionLat field value.
Here is the caller graph for this function:

◆ positionLong()

qint32 CoursePointMessage::positionLong ( ) const

Returns the CoursePointMessage data message's positionLong field's current value.

Returns
the positionLong field value.
Here is the caller graph for this function:

◆ setDistance()

void CoursePointMessage::setDistance ( const quint32  distance)

Sets the distance field to distance.

Parameters
distanceThe field value to set.
Here is the call graph for this function:

◆ setFavorite()

void CoursePointMessage::setFavorite ( const bool  favorite)

Sets the favorite field to favorite.

Parameters
favoriteThe field value to set.
Here is the call graph for this function:

◆ setMessageIndex()

void CoursePointMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

Parameters
messageIndexThe field value to set.
Here is the call graph for this function:

◆ setName()

void CoursePointMessage::setName ( const QString  name)

Sets the name field to name.

Parameters
nameThe field value to set.
Here is the call graph for this function:

◆ setPositionLat()

void CoursePointMessage::setPositionLat ( const qint32  positionLat)

Sets the positionLat field to positionLat.

Parameters
positionLatThe field value to set.
Here is the call graph for this function:

◆ setPositionLong()

void CoursePointMessage::setPositionLong ( const qint32  positionLong)

Sets the positionLong field to positionLong.

Parameters
positionLongThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void CoursePointMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ setType()

void CoursePointMessage::setType ( const CoursePoint  type)

Sets the type field to type.

Parameters
typeThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime CoursePointMessage::timestamp ( ) const

Returns the CoursePointMessage data message's timestamp field's current value.

Returns
the timestamp field value.
Here is the caller graph for this function:

◆ type()

CoursePoint CoursePointMessage::type ( ) const

Returns the CoursePointMessage data message's type field's current value.

Returns
the type field value.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: