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

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

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

Public Member Functions

 EventMessage ()
 Constructs a EventMessage object. More...
 
DateTime timestamp () const
 Returns the EventMessage data message's timestamp field's current value. More...
 
Event event () const
 Returns the EventMessage data message's event field's current value. More...
 
EventType eventType () const
 Returns the EventMessage data message's eventType field's current value. More...
 
quint16 data16 () const
 Returns the EventMessage data message's data16 field's current value. More...
 
quint32 data () const
 Returns the EventMessage data message's data field's current value. More...
 
quint8 eventGroup () const
 Returns the EventMessage data message's eventGroup field's current value. More...
 
quint16 score () const
 Returns the EventMessage data message's score field's current value. More...
 
quint16 opponentScore () const
 Returns the EventMessage data message's opponentScore field's current value. More...
 
quint8z frontGearNum () const
 Returns the EventMessage data message's frontGearNum field's current value. More...
 
quint8z frontGear () const
 Returns the EventMessage data message's frontGear field's current value. More...
 
quint8z rearGearNum () const
 Returns the EventMessage data message's rearGearNum field's current value. More...
 
quint8z rearGear () const
 Returns the EventMessage data message's rearGear field's current value. More...
 
DeviceIndex deviceIndex () const
 Returns the EventMessage data message's deviceIndex field's current value. More...
 
RadarThreatLevelType radarThreatLevelMax () const
 Returns the EventMessage data message's radarThreatLevelMax field's current value. More...
 
quint8 radarThreatCount () const
 Returns the EventMessage data message's radarThreatCount field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. 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 setData16 (const quint16 data16)
 Sets the data16 field to data16. More...
 
void setData (const quint32 data)
 Sets the data field to data. More...
 
void setEventGroup (const quint8 eventGroup)
 Sets the eventGroup field to eventGroup. More...
 
void setScore (const quint16 score)
 Sets the score field to score. More...
 
void setOpponentScore (const quint16 opponentScore)
 Sets the opponentScore field to opponentScore. More...
 
void setFrontGearNum (const quint8z frontGearNum)
 Sets the frontGearNum field to frontGearNum. More...
 
void setFrontGear (const quint8z frontGear)
 Sets the frontGear field to frontGear. More...
 
void setRearGearNum (const quint8z rearGearNum)
 Sets the rearGearNum field to rearGearNum. More...
 
void setRearGear (const quint8z rearGear)
 Sets the rearGear field to rearGear. More...
 
void setDeviceIndex (const DeviceIndex deviceIndex)
 Sets the deviceIndex field to deviceIndex. More...
 
void setRadarThreatLevelMax (const RadarThreatLevelType radarThreatLevelMax)
 Sets the radarThreatLevelMax field to radarThreatLevelMax. More...
 
void setRadarThreatCount (const quint8 radarThreatCount)
 Sets the radarThreatCount field to radarThreatCount. 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 EventMessage class represents a FIT EventMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ EventMessage()

EventMessage::EventMessage ( )

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

◆ data()

quint32 EventMessage::data ( ) const

Returns the EventMessage data message's data field's current value.

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

◆ data16()

quint16 EventMessage::data16 ( ) const

Returns the EventMessage data message's data16 field's current value.

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

◆ deviceIndex()

DeviceIndex EventMessage::deviceIndex ( ) const

Returns the EventMessage data message's deviceIndex field's current value.

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

◆ event()

Event EventMessage::event ( ) const

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

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

◆ eventGroup()

quint8 EventMessage::eventGroup ( ) const

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

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

◆ eventType()

EventType EventMessage::eventType ( ) const

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

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

◆ frontGear()

quint8z EventMessage::frontGear ( ) const

Returns the EventMessage data message's frontGear field's current value.

Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of front teeth.

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

◆ frontGearNum()

quint8z EventMessage::frontGearNum ( ) const

Returns the EventMessage data message's frontGearNum field's current value.

Do not populate directly. Autogenerated by decoder for gear_change subfield components. Front gear number. 1 is innermost.

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

◆ opponentScore()

quint16 EventMessage::opponentScore ( ) const

Returns the EventMessage data message's opponentScore field's current value.

Do not populate directly. Autogenerated by decoder for sport_point subfield components

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

◆ radarThreatCount()

quint8 EventMessage::radarThreatCount ( ) const

Returns the EventMessage data message's radarThreatCount field's current value.

Do not populate directly. Autogenerated by decoder for threat_alert subfield components.

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

◆ radarThreatLevelMax()

RadarThreatLevelType EventMessage::radarThreatLevelMax ( ) const

Returns the EventMessage data message's radarThreatLevelMax field's current value.

Do not populate directly. Autogenerated by decoder for threat_alert subfield components.

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

◆ rearGear()

quint8z EventMessage::rearGear ( ) const

Returns the EventMessage data message's rearGear field's current value.

Do not populate directly. Autogenerated by decoder for gear_change subfield components. Number of rear teeth.

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

◆ rearGearNum()

quint8z EventMessage::rearGearNum ( ) const

Returns the EventMessage data message's rearGearNum field's current value.

Do not populate directly. Autogenerated by decoder for gear_change subfield components. Rear gear number. 1 is innermost.

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

◆ score()

quint16 EventMessage::score ( ) const

Returns the EventMessage data message's score field's current value.

Do not populate directly. Autogenerated by decoder for sport_point subfield components

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

◆ setData()

void EventMessage::setData ( const quint32  data)

Sets the data field to data.

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

◆ setData16()

void EventMessage::setData16 ( const quint16  data16)

Sets the data16 field to data16.

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

◆ setDeviceIndex()

void EventMessage::setDeviceIndex ( const DeviceIndex  deviceIndex)

Sets the deviceIndex field to deviceIndex.

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

◆ setEvent()

void EventMessage::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 EventMessage::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 EventMessage::setEventType ( const EventType  eventType)

Sets the eventType field to eventType.

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

◆ setFrontGear()

void EventMessage::setFrontGear ( const quint8z  frontGear)

Sets the frontGear field to frontGear.

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

◆ setFrontGearNum()

void EventMessage::setFrontGearNum ( const quint8z  frontGearNum)

Sets the frontGearNum field to frontGearNum.

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

◆ setOpponentScore()

void EventMessage::setOpponentScore ( const quint16  opponentScore)

Sets the opponentScore field to opponentScore.

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

◆ setRadarThreatCount()

void EventMessage::setRadarThreatCount ( const quint8  radarThreatCount)

Sets the radarThreatCount field to radarThreatCount.

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

◆ setRadarThreatLevelMax()

void EventMessage::setRadarThreatLevelMax ( const RadarThreatLevelType  radarThreatLevelMax)

Sets the radarThreatLevelMax field to radarThreatLevelMax.

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

◆ setRearGear()

void EventMessage::setRearGear ( const quint8z  rearGear)

Sets the rearGear field to rearGear.

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

◆ setRearGearNum()

void EventMessage::setRearGearNum ( const quint8z  rearGearNum)

Sets the rearGearNum field to rearGearNum.

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

◆ setScore()

void EventMessage::setScore ( const quint16  score)

Sets the score field to score.

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

◆ setTimestamp()

void EventMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ timestamp()

DateTime EventMessage::timestamp ( ) const

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

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

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