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

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

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

Public Member Functions

 TrainingFileMessage ()
 Constructs a TrainingFileMessage object. More...
 
DateTime timestamp () const
 Returns the TrainingFileMessage data message's timestamp field's current value. More...
 
File type () const
 Returns the TrainingFileMessage data message's type field's current value. More...
 
Manufacturer manufacturer () const
 Returns the TrainingFileMessage data message's manufacturer field's current value. More...
 
quint16 product () const
 Returns the TrainingFileMessage data message's product field's current value. More...
 
quint32z serialNumber () const
 Returns the TrainingFileMessage data message's serialNumber field's current value. More...
 
DateTime timeCreated () const
 Returns the TrainingFileMessage data message's timeCreated field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setType (const File type)
 Sets the type field to type. More...
 
void setManufacturer (const Manufacturer manufacturer)
 Sets the manufacturer field to manufacturer. More...
 
void setProduct (const quint16 product)
 Sets the product field to product. More...
 
void setSerialNumber (const quint32z serialNumber)
 Sets the serialNumber field to serialNumber. More...
 
void setTimeCreated (const DateTime timeCreated)
 Sets the timeCreated field to timeCreated. 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

 TrainingFileMessage (TrainingFileMessagePrivate *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 TrainingFileMessage class represents a FIT TrainingFileMessage data message.

See also
DataMessage

Definition at line 39 of file trainingfilemessage.h.

Constructor & Destructor Documentation

◆ TrainingFileMessage() [1/2]

TrainingFileMessage::TrainingFileMessage ( )

Constructs a TrainingFileMessage 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 trainingfilemessage.cpp.

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

◆ TrainingFileMessage() [2/2]

TrainingFileMessage::TrainingFileMessage ( TrainingFileMessagePrivate *const  d)
explicitprotected

Constructs a TrainingFileMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file trainingfilemessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ manufacturer()

Manufacturer TrainingFileMessage::manufacturer ( ) const

Returns the TrainingFileMessage data message's manufacturer field's current value.

Returns
the manufacturer field value.

Definition at line 96 of file trainingfilemessage.cpp.

97 {
98  Q_D(const TrainingFileMessage);
99  return d->manufacturer;
100 }
The TrainingFileMessage class represents a FIT TrainingFileMessage data message.

Referenced by setManufacturer().

Here is the caller graph for this function:

◆ product()

quint16 TrainingFileMessage::product ( ) const

Returns the TrainingFileMessage data message's product field's current value.

Returns
the product field value.

Definition at line 107 of file trainingfilemessage.cpp.

108 {
109  Q_D(const TrainingFileMessage);
110  return d->product;
111 }

Referenced by setProduct().

Here is the caller graph for this function:

◆ serialNumber()

quint32z TrainingFileMessage::serialNumber ( ) const

Returns the TrainingFileMessage data message's serialNumber field's current value.

Returns
the serialNumber field value.

Definition at line 118 of file trainingfilemessage.cpp.

119 {
120  Q_D(const TrainingFileMessage);
121  return d->serialNumber;
122 }

Referenced by setSerialNumber().

Here is the caller graph for this function:

◆ setManufacturer()

void TrainingFileMessage::setManufacturer ( const Manufacturer  manufacturer)

Sets the manufacturer field to manufacturer.

Parameters
manufacturerThe field value to set.

Definition at line 160 of file trainingfilemessage.cpp.

161 {
162  Q_D(TrainingFileMessage);
163  d->manufacturer = manufacturer;
164 }
Manufacturer manufacturer() const
Returns the TrainingFileMessage data message's manufacturer field's current value.

References manufacturer().

Here is the call graph for this function:

◆ setProduct()

void TrainingFileMessage::setProduct ( const quint16  product)

Sets the product field to product.

Parameters
productThe field value to set.

Definition at line 170 of file trainingfilemessage.cpp.

171 {
172  Q_D(TrainingFileMessage);
173  d->product = product;
174 }
quint16 product() const
Returns the TrainingFileMessage data message's product field's current value.

References product().

Here is the call graph for this function:

◆ setSerialNumber()

void TrainingFileMessage::setSerialNumber ( const quint32z  serialNumber)

Sets the serialNumber field to serialNumber.

Parameters
serialNumberThe field value to set.

Definition at line 180 of file trainingfilemessage.cpp.

181 {
182  Q_D(TrainingFileMessage);
183  d->serialNumber = serialNumber;
184 }
quint32z serialNumber() const
Returns the TrainingFileMessage data message's serialNumber field's current value.

References serialNumber().

Here is the call graph for this function:

◆ setTimeCreated()

void TrainingFileMessage::setTimeCreated ( const DateTime  timeCreated)

Sets the timeCreated field to timeCreated.

Parameters
timeCreatedThe field value to set.

Definition at line 190 of file trainingfilemessage.cpp.

191 {
192  Q_D(TrainingFileMessage);
193  d->timeCreated = timeCreated;
194 }
DateTime timeCreated() const
Returns the TrainingFileMessage data message's timeCreated field's current value.

References timeCreated().

Here is the call graph for this function:

◆ setTimestamp()

void TrainingFileMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.

Definition at line 140 of file trainingfilemessage.cpp.

141 {
142  Q_D(TrainingFileMessage);
143  d->timestamp = timestamp;
144 }
DateTime timestamp() const
Returns the TrainingFileMessage data message's timestamp field's current value.

References timestamp().

Here is the call graph for this function:

◆ setType()

void TrainingFileMessage::setType ( const File  type)

Sets the type field to type.

Parameters
typeThe field value to set.

Definition at line 150 of file trainingfilemessage.cpp.

151 {
152  Q_D(TrainingFileMessage);
153  d->type = type;
154 }
File type() const
Returns the TrainingFileMessage data message's type field's current value.

References type().

Here is the call graph for this function:

◆ timeCreated()

DateTime TrainingFileMessage::timeCreated ( ) const

Returns the TrainingFileMessage data message's timeCreated field's current value.

Returns
the timeCreated field value.

Definition at line 129 of file trainingfilemessage.cpp.

130 {
131  Q_D(const TrainingFileMessage);
132  return d->timeCreated;
133 }

Referenced by setTimeCreated().

Here is the caller graph for this function:

◆ timestamp()

DateTime TrainingFileMessage::timestamp ( ) const

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

Returns
the timestamp field value.

Definition at line 74 of file trainingfilemessage.cpp.

75 {
76  Q_D(const TrainingFileMessage);
77  return d->timestamp;
78 }

Referenced by setTimestamp().

Here is the caller graph for this function:

◆ type()

File TrainingFileMessage::type ( ) const

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

Returns
the type field value.

Definition at line 85 of file trainingfilemessage.cpp.

86 {
87  Q_D(const TrainingFileMessage);
88  return d->type;
89 }

Referenced by setType().

Here is the caller graph for this function:

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