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

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

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

Public Member Functions

 DiveAlarmMessage ()
 Constructs a DiveAlarmMessage object. More...
 
MessageIndex messageIndex () const
 Returns the DiveAlarmMessage data message's messageIndex field's current value. More...
 
quint32 depth () const
 Returns the DiveAlarmMessage data message's depth field's current value. More...
 
qint32 time () const
 Returns the DiveAlarmMessage data message's time field's current value. More...
 
bool enabled () const
 Returns the DiveAlarmMessage data message's enabled field's current value. More...
 
DiveAlarmType alarmType () const
 Returns the DiveAlarmMessage data message's alarmType field's current value. More...
 
Tone sound () const
 Returns the DiveAlarmMessage data message's sound field's current value. More...
 
SubSport diveTypes () const
 Returns the DiveAlarmMessage data message's diveTypes field's current value. More...
 
void setMessageIndex (const MessageIndex messageIndex)
 Sets the messageIndex field to messageIndex. More...
 
void setDepth (const quint32 depth)
 Sets the depth field to depth. More...
 
void setTime (const qint32 time)
 Sets the time field to time. More...
 
void setEnabled (const bool enabled)
 Sets the enabled field to enabled. More...
 
void setAlarmType (const DiveAlarmType alarmType)
 Sets the alarmType field to alarmType. More...
 
void setSound (const Tone sound)
 Sets the sound field to sound. More...
 
void setDiveTypes (const SubSport diveTypes)
 Sets the diveTypes field to diveTypes. 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 DiveAlarmMessage class represents a FIT DiveAlarmMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ DiveAlarmMessage()

DiveAlarmMessage::DiveAlarmMessage ( )

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

◆ alarmType()

DiveAlarmType DiveAlarmMessage::alarmType ( ) const

Returns the DiveAlarmMessage data message's alarmType field's current value.

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

◆ depth()

quint32 DiveAlarmMessage::depth ( ) const

Returns the DiveAlarmMessage data message's depth field's current value.

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

◆ diveTypes()

SubSport DiveAlarmMessage::diveTypes ( ) const

Returns the DiveAlarmMessage data message's diveTypes field's current value.

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

◆ enabled()

bool DiveAlarmMessage::enabled ( ) const

Returns the DiveAlarmMessage data message's enabled field's current value.

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

◆ messageIndex()

MessageIndex DiveAlarmMessage::messageIndex ( ) const

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

Index of the alarm

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

◆ setAlarmType()

void DiveAlarmMessage::setAlarmType ( const DiveAlarmType  alarmType)

Sets the alarmType field to alarmType.

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

◆ setDepth()

void DiveAlarmMessage::setDepth ( const quint32  depth)

Sets the depth field to depth.

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

◆ setDiveTypes()

void DiveAlarmMessage::setDiveTypes ( const SubSport  diveTypes)

Sets the diveTypes field to diveTypes.

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

◆ setEnabled()

void DiveAlarmMessage::setEnabled ( const bool  enabled)

Sets the enabled field to enabled.

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

◆ setMessageIndex()

void DiveAlarmMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

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

◆ setSound()

void DiveAlarmMessage::setSound ( const Tone  sound)

Sets the sound field to sound.

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

◆ setTime()

void DiveAlarmMessage::setTime ( const qint32  time)

Sets the time field to time.

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

◆ sound()

Tone DiveAlarmMessage::sound ( ) const

Returns the DiveAlarmMessage data message's sound field's current value.

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

◆ time()

qint32 DiveAlarmMessage::time ( ) const

Returns the DiveAlarmMessage data message's time field's current value.

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

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