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

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

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

Public Member Functions

 ActivityMessage ()
 Constructs a ActivityMessage object. More...
 
DateTime timestamp () const
 Returns the ActivityMessage data message's timestamp field's current value. More...
 
quint32 totalTimerTime () const
 Returns the ActivityMessage data message's totalTimerTime field's current value. More...
 
quint16 numSessions () const
 Returns the ActivityMessage data message's numSessions field's current value. More...
 
Activity type () const
 Returns the ActivityMessage data message's type field's current value. More...
 
Event event () const
 Returns the ActivityMessage data message's event field's current value. More...
 
EventType eventType () const
 Returns the ActivityMessage data message's eventType field's current value. More...
 
LocalDateTime localTimestamp () const
 Returns the ActivityMessage data message's localTimestamp field's current value. More...
 
quint8 eventGroup () const
 Returns the ActivityMessage data message's eventGroup field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setTotalTimerTime (const quint32 totalTimerTime)
 Sets the totalTimerTime field to totalTimerTime. More...
 
void setNumSessions (const quint16 numSessions)
 Sets the numSessions field to numSessions. More...
 
void setType (const Activity type)
 Sets the type field to type. More...
 
void setEvent (const Event event)
 Sets the event field to event. More...
 
void setEventType (const EventType eventType)
 Sets the eventType field to eventType. More...
 
void setLocalTimestamp (const LocalDateTime localTimestamp)
 Sets the localTimestamp field to localTimestamp. More...
 
void setEventGroup (const quint8 eventGroup)
 Sets the eventGroup field to eventGroup. 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 ActivityMessage class represents a FIT ActivityMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ ActivityMessage()

ActivityMessage::ActivityMessage ( )

Constructs a ActivityMessage 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

◆ event()

Event ActivityMessage::event ( ) const

Returns the ActivityMessage data message's event field's current value.

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

◆ eventGroup()

quint8 ActivityMessage::eventGroup ( ) const

Returns the ActivityMessage data message's eventGroup field's current value.

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

◆ eventType()

EventType ActivityMessage::eventType ( ) const

Returns the ActivityMessage data message's eventType field's current value.

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

◆ localTimestamp()

LocalDateTime ActivityMessage::localTimestamp ( ) const

Returns the ActivityMessage data message's localTimestamp field's current value.

timestamp epoch expressed in local time, used to convert activity timestamps to local time

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

◆ numSessions()

quint16 ActivityMessage::numSessions ( ) const

Returns the ActivityMessage data message's numSessions field's current value.

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

◆ setEvent()

void ActivityMessage::setEvent ( const Event  event)

Sets the event field to event.

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

◆ setEventGroup()

void ActivityMessage::setEventGroup ( const quint8  eventGroup)

Sets the eventGroup field to eventGroup.

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

◆ setEventType()

void ActivityMessage::setEventType ( const EventType  eventType)

Sets the eventType field to eventType.

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

◆ setLocalTimestamp()

void ActivityMessage::setLocalTimestamp ( const LocalDateTime  localTimestamp)

Sets the localTimestamp field to localTimestamp.

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

◆ setNumSessions()

void ActivityMessage::setNumSessions ( const quint16  numSessions)

Sets the numSessions field to numSessions.

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

◆ setTimestamp()

void ActivityMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ setTotalTimerTime()

void ActivityMessage::setTotalTimerTime ( const quint32  totalTimerTime)

Sets the totalTimerTime field to totalTimerTime.

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

◆ setType()

void ActivityMessage::setType ( const Activity  type)

Sets the type field to type.

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

◆ timestamp()

DateTime ActivityMessage::timestamp ( ) const

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

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

◆ totalTimerTime()

quint32 ActivityMessage::totalTimerTime ( ) const

Returns the ActivityMessage data message's totalTimerTime field's current value.

Exclude pauses

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

◆ type()

Activity ActivityMessage::type ( ) const

Returns the ActivityMessage 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: