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

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

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

Public Member Functions

 FileIdMessage ()
 Constructs a FileIdMessage object. More...
 
File type () const
 Returns the FileIdMessage data message's type field's current value. More...
 
Manufacturer manufacturer () const
 Returns the FileIdMessage data message's manufacturer field's current value. More...
 
quint16 product () const
 Returns the FileIdMessage data message's product field's current value. More...
 
quint32z serialNumber () const
 Returns the FileIdMessage data message's serialNumber field's current value. More...
 
DateTime timeCreated () const
 Returns the FileIdMessage data message's timeCreated field's current value. More...
 
quint16 number () const
 Returns the FileIdMessage data message's number field's current value. More...
 
QString productName () const
 Returns the FileIdMessage data message's productName field's current value. 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...
 
void setNumber (const quint16 number)
 Sets the number field to number. More...
 
void setProductName (const QString productName)
 Sets the productName field to productName. 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 FileIdMessage class represents a FIT FileIdMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ FileIdMessage()

FileIdMessage::FileIdMessage ( )

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

◆ manufacturer()

Manufacturer FileIdMessage::manufacturer ( ) const

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

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

◆ number()

quint16 FileIdMessage::number ( ) const

Returns the FileIdMessage data message's number field's current value.

Only set for files that are not created/erased.

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

◆ product()

quint16 FileIdMessage::product ( ) const

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

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

◆ productName()

QString FileIdMessage::productName ( ) const

Returns the FileIdMessage data message's productName field's current value.

Optional free form string to indicate the devices name or model

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

◆ serialNumber()

quint32z FileIdMessage::serialNumber ( ) const

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

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

◆ setManufacturer()

void FileIdMessage::setManufacturer ( const Manufacturer  manufacturer)

Sets the manufacturer field to manufacturer.

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

◆ setNumber()

void FileIdMessage::setNumber ( const quint16  number)

Sets the number field to number.

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

◆ setProduct()

void FileIdMessage::setProduct ( const quint16  product)

Sets the product field to product.

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

◆ setProductName()

void FileIdMessage::setProductName ( const QString  productName)

Sets the productName field to productName.

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

◆ setSerialNumber()

void FileIdMessage::setSerialNumber ( const quint32z  serialNumber)

Sets the serialNumber field to serialNumber.

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

◆ setTimeCreated()

void FileIdMessage::setTimeCreated ( const DateTime  timeCreated)

Sets the timeCreated field to timeCreated.

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

◆ setType()

void FileIdMessage::setType ( const File  type)

Sets the type field to type.

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

◆ timeCreated()

DateTime FileIdMessage::timeCreated ( ) const

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

Only set for files that are can be created/erased.

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

◆ type()

File FileIdMessage::type ( ) const

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

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

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