QtFit
0.1
Native Qt library for Garmin FIT format
|
The GoalMessage class represents a FIT GoalMessage data message. More...
Public Member Functions | |
GoalMessage () | |
Constructs a GoalMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the GoalMessage data message's messageIndex field's current value. More... | |
Sport | sport () const |
Returns the GoalMessage data message's sport field's current value. More... | |
SubSport | subSport () const |
Returns the GoalMessage data message's subSport field's current value. More... | |
DateTime | startDate () const |
Returns the GoalMessage data message's startDate field's current value. More... | |
DateTime | endDate () const |
Returns the GoalMessage data message's endDate field's current value. More... | |
Goal | type () const |
Returns the GoalMessage data message's type field's current value. More... | |
quint32 | value () const |
Returns the GoalMessage data message's value field's current value. More... | |
bool | repeat () const |
Returns the GoalMessage data message's repeat field's current value. More... | |
quint32 | targetValue () const |
Returns the GoalMessage data message's targetValue field's current value. More... | |
GoalRecurrence | recurrence () const |
Returns the GoalMessage data message's recurrence field's current value. More... | |
quint16 | recurrenceValue () const |
Returns the GoalMessage data message's recurrenceValue field's current value. More... | |
bool | enabled () const |
Returns the GoalMessage data message's enabled field's current value. More... | |
GoalSource | source () const |
Returns the GoalMessage data message's source field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setSport (const Sport sport) |
Sets the sport field to sport. More... | |
void | setSubSport (const SubSport subSport) |
Sets the subSport field to subSport. More... | |
void | setStartDate (const DateTime startDate) |
Sets the startDate field to startDate. More... | |
void | setEndDate (const DateTime endDate) |
Sets the endDate field to endDate. More... | |
void | setType (const Goal type) |
Sets the type field to type. More... | |
void | setValue (const quint32 value) |
Sets the value field to value. More... | |
void | setRepeat (const bool repeat) |
Sets the repeat field to repeat. More... | |
void | setTargetValue (const quint32 targetValue) |
Sets the targetValue field to targetValue. More... | |
void | setRecurrence (const GoalRecurrence recurrence) |
Sets the recurrence field to recurrence. More... | |
void | setRecurrenceValue (const quint16 recurrenceValue) |
Sets the recurrenceValue field to recurrenceValue. More... | |
void | setEnabled (const bool enabled) |
Sets the enabled field to enabled. More... | |
void | setSource (const GoalSource source) |
Sets the source field to source. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
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... | |
The GoalMessage class represents a FIT GoalMessage data message.
GoalMessage::GoalMessage | ( | ) |
Constructs a GoalMessage 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.
bool GoalMessage::enabled | ( | ) | const |
Returns the GoalMessage data message's enabled
field's current value.
enabled
field value. DateTime GoalMessage::endDate | ( | ) | const |
Returns the GoalMessage data message's endDate
field's current value.
endDate
field value. MessageIndex GoalMessage::messageIndex | ( | ) | const |
Returns the GoalMessage data message's messageIndex
field's current value.
messageIndex
field value. GoalRecurrence GoalMessage::recurrence | ( | ) | const |
Returns the GoalMessage data message's recurrence
field's current value.
recurrence
field value. quint16 GoalMessage::recurrenceValue | ( | ) | const |
Returns the GoalMessage data message's recurrenceValue
field's current value.
recurrenceValue
field value. bool GoalMessage::repeat | ( | ) | const |
Returns the GoalMessage data message's repeat
field's current value.
repeat
field value. void GoalMessage::setEnabled | ( | const bool | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
void GoalMessage::setEndDate | ( | const DateTime | endDate | ) |
Sets the endDate
field to endDate.
endDate | The field value to set. |
void GoalMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
void GoalMessage::setRecurrence | ( | const GoalRecurrence | recurrence | ) |
Sets the recurrence
field to recurrence.
recurrence | The field value to set. |
void GoalMessage::setRecurrenceValue | ( | const quint16 | recurrenceValue | ) |
Sets the recurrenceValue
field to recurrenceValue.
recurrenceValue | The field value to set. |
void GoalMessage::setRepeat | ( | const bool | repeat | ) |
Sets the repeat
field to repeat.
repeat | The field value to set. |
void GoalMessage::setSource | ( | const GoalSource | source | ) |
Sets the source
field to source.
source | The field value to set. |
void GoalMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
void GoalMessage::setStartDate | ( | const DateTime | startDate | ) |
Sets the startDate
field to startDate.
startDate | The field value to set. |
void GoalMessage::setSubSport | ( | const SubSport | subSport | ) |
Sets the subSport
field to subSport.
subSport | The field value to set. |
void GoalMessage::setTargetValue | ( | const quint32 | targetValue | ) |
Sets the targetValue
field to targetValue.
targetValue | The field value to set. |
void GoalMessage::setType | ( | const Goal | type | ) |
Sets the type
field to type.
type | The field value to set. |
void GoalMessage::setValue | ( | const quint32 | value | ) |
Sets the value
field to value.
value | The field value to set. |
GoalSource GoalMessage::source | ( | ) | const |
Returns the GoalMessage data message's source
field's current value.
source
field value. Sport GoalMessage::sport | ( | ) | const |
Returns the GoalMessage data message's sport
field's current value.
sport
field value. DateTime GoalMessage::startDate | ( | ) | const |
Returns the GoalMessage data message's startDate
field's current value.
startDate
field value. SubSport GoalMessage::subSport | ( | ) | const |
Returns the GoalMessage data message's subSport
field's current value.
subSport
field value. quint32 GoalMessage::targetValue | ( | ) | const |
Returns the GoalMessage data message's targetValue
field's current value.
targetValue
field value. Goal GoalMessage::type | ( | ) | const |
Returns the GoalMessage data message's type
field's current value.
type
field value. quint32 GoalMessage::value | ( | ) | const |
Returns the GoalMessage data message's value
field's current value.
value
field value.