QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GoalMessage Class Reference

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

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

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Protected Member Functions

 GoalMessage (GoalMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

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...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The GoalMessage class represents a FIT GoalMessage data message.

See also
DataMessage

Definition at line 39 of file goalmessage.h.

Constructor & Destructor Documentation

◆ GoalMessage() [1/2]

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.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ GoalMessage() [2/2]

GoalMessage::GoalMessage ( GoalMessagePrivate *const  d)
explicitprotected

Constructs a GoalMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file goalmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ enabled()

bool GoalMessage::enabled ( ) const

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

Returns
the enabled field value.

Definition at line 195 of file goalmessage.cpp.

196 {
197  Q_D(const GoalMessage);
198  return d->enabled;
199 }
The GoalMessage class represents a FIT GoalMessage data message.
Definition: goalmessage.h:39

Referenced by setEnabled().

Here is the caller graph for this function:

◆ endDate()

DateTime GoalMessage::endDate ( ) const

Returns the GoalMessage data message's endDate field's current value.

Returns
the endDate field value.

Definition at line 118 of file goalmessage.cpp.

119 {
120  Q_D(const GoalMessage);
121  return d->endDate;
122 }

Referenced by setEndDate().

Here is the caller graph for this function:

◆ messageIndex()

MessageIndex GoalMessage::messageIndex ( ) const

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

Returns
the messageIndex field value.

Definition at line 74 of file goalmessage.cpp.

75 {
76  Q_D(const GoalMessage);
77  return d->messageIndex;
78 }

Referenced by setMessageIndex().

Here is the caller graph for this function:

◆ recurrence()

GoalRecurrence GoalMessage::recurrence ( ) const

Returns the GoalMessage data message's recurrence field's current value.

Returns
the recurrence field value.

Definition at line 173 of file goalmessage.cpp.

174 {
175  Q_D(const GoalMessage);
176  return d->recurrence;
177 }

Referenced by setRecurrence().

Here is the caller graph for this function:

◆ recurrenceValue()

quint16 GoalMessage::recurrenceValue ( ) const

Returns the GoalMessage data message's recurrenceValue field's current value.

Returns
the recurrenceValue field value.

Definition at line 184 of file goalmessage.cpp.

185 {
186  Q_D(const GoalMessage);
187  return d->recurrenceValue;
188 }

Referenced by setRecurrenceValue().

Here is the caller graph for this function:

◆ repeat()

bool GoalMessage::repeat ( ) const

Returns the GoalMessage data message's repeat field's current value.

Returns
the repeat field value.

Definition at line 151 of file goalmessage.cpp.

152 {
153  Q_D(const GoalMessage);
154  return d->repeat;
155 }

Referenced by setRepeat().

Here is the caller graph for this function:

◆ setEnabled()

void GoalMessage::setEnabled ( const bool  enabled)

Sets the enabled field to enabled.

Parameters
enabledThe field value to set.

Definition at line 327 of file goalmessage.cpp.

328 {
329  Q_D(GoalMessage);
330  d->enabled = enabled;
331 }
bool enabled() const
Returns the GoalMessage data message's enabled field's current value.

References enabled().

Here is the call graph for this function:

◆ setEndDate()

void GoalMessage::setEndDate ( const DateTime  endDate)

Sets the endDate field to endDate.

Parameters
endDateThe field value to set.

Definition at line 257 of file goalmessage.cpp.

258 {
259  Q_D(GoalMessage);
260  d->endDate = endDate;
261 }
DateTime endDate() const
Returns the GoalMessage data message's endDate field's current value.

References endDate().

Here is the call graph for this function:

◆ setMessageIndex()

void GoalMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

Parameters
messageIndexThe field value to set.

Definition at line 217 of file goalmessage.cpp.

218 {
219  Q_D(GoalMessage);
220  d->messageIndex = messageIndex;
221 }
MessageIndex messageIndex() const
Returns the GoalMessage data message's messageIndex field's current value.
Definition: goalmessage.cpp:74

References messageIndex().

Here is the call graph for this function:

◆ setRecurrence()

void GoalMessage::setRecurrence ( const GoalRecurrence  recurrence)

Sets the recurrence field to recurrence.

Parameters
recurrenceThe field value to set.

Definition at line 307 of file goalmessage.cpp.

308 {
309  Q_D(GoalMessage);
310  d->recurrence = recurrence;
311 }
GoalRecurrence recurrence() const
Returns the GoalMessage data message's recurrence field's current value.

References recurrence().

Here is the call graph for this function:

◆ setRecurrenceValue()

void GoalMessage::setRecurrenceValue ( const quint16  recurrenceValue)

Sets the recurrenceValue field to recurrenceValue.

Parameters
recurrenceValueThe field value to set.

Definition at line 317 of file goalmessage.cpp.

318 {
319  Q_D(GoalMessage);
320  d->recurrenceValue = recurrenceValue;
321 }
quint16 recurrenceValue() const
Returns the GoalMessage data message's recurrenceValue field's current value.

References recurrenceValue().

Here is the call graph for this function:

◆ setRepeat()

void GoalMessage::setRepeat ( const bool  repeat)

Sets the repeat field to repeat.

Parameters
repeatThe field value to set.

Definition at line 287 of file goalmessage.cpp.

288 {
289  Q_D(GoalMessage);
290  d->repeat = repeat;
291 }
bool repeat() const
Returns the GoalMessage data message's repeat field's current value.

References repeat().

Here is the call graph for this function:

◆ setSource()

void GoalMessage::setSource ( const GoalSource  source)

Sets the source field to source.

Parameters
sourceThe field value to set.

Definition at line 337 of file goalmessage.cpp.

338 {
339  Q_D(GoalMessage);
340  d->source = source;
341 }
GoalSource source() const
Returns the GoalMessage data message's source field's current value.

References source().

Here is the call graph for this function:

◆ setSport()

void GoalMessage::setSport ( const Sport  sport)

Sets the sport field to sport.

Parameters
sportThe field value to set.

Definition at line 227 of file goalmessage.cpp.

228 {
229  Q_D(GoalMessage);
230  d->sport = sport;
231 }
Sport sport() const
Returns the GoalMessage data message's sport field's current value.
Definition: goalmessage.cpp:85

References sport().

Here is the call graph for this function:

◆ setStartDate()

void GoalMessage::setStartDate ( const DateTime  startDate)

Sets the startDate field to startDate.

Parameters
startDateThe field value to set.

Definition at line 247 of file goalmessage.cpp.

248 {
249  Q_D(GoalMessage);
250  d->startDate = startDate;
251 }
DateTime startDate() const
Returns the GoalMessage data message's startDate field's current value.

References startDate().

Here is the call graph for this function:

◆ setSubSport()

void GoalMessage::setSubSport ( const SubSport  subSport)

Sets the subSport field to subSport.

Parameters
subSportThe field value to set.

Definition at line 237 of file goalmessage.cpp.

238 {
239  Q_D(GoalMessage);
240  d->subSport = subSport;
241 }
SubSport subSport() const
Returns the GoalMessage data message's subSport field's current value.
Definition: goalmessage.cpp:96

References subSport().

Here is the call graph for this function:

◆ setTargetValue()

void GoalMessage::setTargetValue ( const quint32  targetValue)

Sets the targetValue field to targetValue.

Parameters
targetValueThe field value to set.

Definition at line 297 of file goalmessage.cpp.

298 {
299  Q_D(GoalMessage);
300  d->targetValue = targetValue;
301 }
quint32 targetValue() const
Returns the GoalMessage data message's targetValue field's current value.

References targetValue().

Here is the call graph for this function:

◆ setType()

void GoalMessage::setType ( const Goal  type)

Sets the type field to type.

Parameters
typeThe field value to set.

Definition at line 267 of file goalmessage.cpp.

268 {
269  Q_D(GoalMessage);
270  d->type = type;
271 }
Goal type() const
Returns the GoalMessage data message's type field's current value.

References type().

Here is the call graph for this function:

◆ setValue()

void GoalMessage::setValue ( const quint32  value)

Sets the value field to value.

Parameters
valueThe field value to set.

Definition at line 277 of file goalmessage.cpp.

278 {
279  Q_D(GoalMessage);
280  d->value = value;
281 }
quint32 value() const
Returns the GoalMessage data message's value field's current value.

References value().

Here is the call graph for this function:

◆ source()

GoalSource GoalMessage::source ( ) const

Returns the GoalMessage data message's source field's current value.

Returns
the source field value.

Definition at line 206 of file goalmessage.cpp.

207 {
208  Q_D(const GoalMessage);
209  return d->source;
210 }

Referenced by setSource().

Here is the caller graph for this function:

◆ sport()

Sport GoalMessage::sport ( ) const

Returns the GoalMessage data message's sport field's current value.

Returns
the sport field value.

Definition at line 85 of file goalmessage.cpp.

86 {
87  Q_D(const GoalMessage);
88  return d->sport;
89 }

Referenced by setSport().

Here is the caller graph for this function:

◆ startDate()

DateTime GoalMessage::startDate ( ) const

Returns the GoalMessage data message's startDate field's current value.

Returns
the startDate field value.

Definition at line 107 of file goalmessage.cpp.

108 {
109  Q_D(const GoalMessage);
110  return d->startDate;
111 }

Referenced by setStartDate().

Here is the caller graph for this function:

◆ subSport()

SubSport GoalMessage::subSport ( ) const

Returns the GoalMessage data message's subSport field's current value.

Returns
the subSport field value.

Definition at line 96 of file goalmessage.cpp.

97 {
98  Q_D(const GoalMessage);
99  return d->subSport;
100 }

Referenced by setSubSport().

Here is the caller graph for this function:

◆ targetValue()

quint32 GoalMessage::targetValue ( ) const

Returns the GoalMessage data message's targetValue field's current value.

Returns
the targetValue field value.

Definition at line 162 of file goalmessage.cpp.

163 {
164  Q_D(const GoalMessage);
165  return d->targetValue;
166 }

Referenced by setTargetValue().

Here is the caller graph for this function:

◆ type()

Goal GoalMessage::type ( ) const

Returns the GoalMessage data message's type field's current value.

Returns
the type field value.

Definition at line 129 of file goalmessage.cpp.

130 {
131  Q_D(const GoalMessage);
132  return d->type;
133 }

Referenced by setType().

Here is the caller graph for this function:

◆ value()

quint32 GoalMessage::value ( ) const

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

Returns
the value field value.

Definition at line 140 of file goalmessage.cpp.

141 {
142  Q_D(const GoalMessage);
143  return d->value;
144 }

Referenced by setValue().

Here is the caller graph for this function:

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