QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
GoalMessage (GoalMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
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... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The GoalMessage class represents a FIT GoalMessage data message.
Definition at line 39 of file goalmessage.h.
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.
Definition at line 52 of file goalmessage.cpp.
|
explicitprotected |
Constructs a GoalMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file goalmessage.cpp.
bool GoalMessage::enabled | ( | ) | const |
Returns the GoalMessage data message's enabled
field's current value.
enabled
field value. Definition at line 195 of file goalmessage.cpp.
Referenced by setEnabled().
DateTime GoalMessage::endDate | ( | ) | const |
Returns the GoalMessage data message's endDate
field's current value.
endDate
field value. Definition at line 118 of file goalmessage.cpp.
Referenced by setEndDate().
MessageIndex GoalMessage::messageIndex | ( | ) | const |
Returns the GoalMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file goalmessage.cpp.
Referenced by setMessageIndex().
GoalRecurrence GoalMessage::recurrence | ( | ) | const |
Returns the GoalMessage data message's recurrence
field's current value.
recurrence
field value. Definition at line 173 of file goalmessage.cpp.
Referenced by setRecurrence().
quint16 GoalMessage::recurrenceValue | ( | ) | const |
Returns the GoalMessage data message's recurrenceValue
field's current value.
recurrenceValue
field value. Definition at line 184 of file goalmessage.cpp.
Referenced by setRecurrenceValue().
bool GoalMessage::repeat | ( | ) | const |
Returns the GoalMessage data message's repeat
field's current value.
repeat
field value. Definition at line 151 of file goalmessage.cpp.
Referenced by setRepeat().
void GoalMessage::setEnabled | ( | const bool | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
Definition at line 327 of file goalmessage.cpp.
References enabled().
void GoalMessage::setEndDate | ( | const DateTime | endDate | ) |
Sets the endDate
field to endDate.
endDate | The field value to set. |
Definition at line 257 of file goalmessage.cpp.
References endDate().
void GoalMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 217 of file goalmessage.cpp.
References messageIndex().
void GoalMessage::setRecurrence | ( | const GoalRecurrence | recurrence | ) |
Sets the recurrence
field to recurrence.
recurrence | The field value to set. |
Definition at line 307 of file goalmessage.cpp.
References recurrence().
void GoalMessage::setRecurrenceValue | ( | const quint16 | recurrenceValue | ) |
Sets the recurrenceValue
field to recurrenceValue.
recurrenceValue | The field value to set. |
Definition at line 317 of file goalmessage.cpp.
References recurrenceValue().
void GoalMessage::setRepeat | ( | const bool | repeat | ) |
Sets the repeat
field to repeat.
repeat | The field value to set. |
Definition at line 287 of file goalmessage.cpp.
References repeat().
void GoalMessage::setSource | ( | const GoalSource | source | ) |
Sets the source
field to source.
source | The field value to set. |
Definition at line 337 of file goalmessage.cpp.
References source().
void GoalMessage::setSport | ( | const Sport | sport | ) |
Sets the sport
field to sport.
sport | The field value to set. |
Definition at line 227 of file goalmessage.cpp.
References sport().
void GoalMessage::setStartDate | ( | const DateTime | startDate | ) |
Sets the startDate
field to startDate.
startDate | The field value to set. |
Definition at line 247 of file goalmessage.cpp.
References startDate().
void GoalMessage::setSubSport | ( | const SubSport | subSport | ) |
Sets the subSport
field to subSport.
subSport | The field value to set. |
Definition at line 237 of file goalmessage.cpp.
References subSport().
void GoalMessage::setTargetValue | ( | const quint32 | targetValue | ) |
Sets the targetValue
field to targetValue.
targetValue | The field value to set. |
Definition at line 297 of file goalmessage.cpp.
References targetValue().
void GoalMessage::setType | ( | const Goal | type | ) |
Sets the type
field to type.
type | The field value to set. |
Definition at line 267 of file goalmessage.cpp.
References type().
void GoalMessage::setValue | ( | const quint32 | value | ) |
Sets the value
field to value.
value | The field value to set. |
Definition at line 277 of file goalmessage.cpp.
References value().
GoalSource GoalMessage::source | ( | ) | const |
Returns the GoalMessage data message's source
field's current value.
source
field value. Definition at line 206 of file goalmessage.cpp.
Referenced by setSource().
Sport GoalMessage::sport | ( | ) | const |
Returns the GoalMessage data message's sport
field's current value.
sport
field value. Definition at line 85 of file goalmessage.cpp.
Referenced by setSport().
DateTime GoalMessage::startDate | ( | ) | const |
Returns the GoalMessage data message's startDate
field's current value.
startDate
field value. Definition at line 107 of file goalmessage.cpp.
Referenced by setStartDate().
SubSport GoalMessage::subSport | ( | ) | const |
Returns the GoalMessage data message's subSport
field's current value.
subSport
field value. Definition at line 96 of file goalmessage.cpp.
Referenced by setSubSport().
quint32 GoalMessage::targetValue | ( | ) | const |
Returns the GoalMessage data message's targetValue
field's current value.
targetValue
field value. Definition at line 162 of file goalmessage.cpp.
Referenced by setTargetValue().
Goal GoalMessage::type | ( | ) | const |
Returns the GoalMessage data message's type
field's current value.
type
field value. Definition at line 129 of file goalmessage.cpp.
Referenced by setType().
quint32 GoalMessage::value | ( | ) | const |
Returns the GoalMessage data message's value
field's current value.
value
field value. Definition at line 140 of file goalmessage.cpp.
Referenced by setValue().