QtFit
0.1
Native Qt library for Garmin FIT format
|
The DeviceInfoMessage class represents a FIT DeviceInfoMessage data message. More...
Public Member Functions | |
DeviceInfoMessage () | |
Constructs a DeviceInfoMessage object. More... | |
DateTime | timestamp () const |
Returns the DeviceInfoMessage data message's timestamp field's current value. More... | |
DeviceIndex | deviceIndex () const |
Returns the DeviceInfoMessage data message's deviceIndex field's current value. More... | |
quint8 | deviceType () const |
Returns the DeviceInfoMessage data message's deviceType field's current value. More... | |
Manufacturer | manufacturer () const |
Returns the DeviceInfoMessage data message's manufacturer field's current value. More... | |
quint32z | serialNumber () const |
Returns the DeviceInfoMessage data message's serialNumber field's current value. More... | |
quint16 | product () const |
Returns the DeviceInfoMessage data message's product field's current value. More... | |
quint16 | softwareVersion () const |
Returns the DeviceInfoMessage data message's softwareVersion field's current value. More... | |
quint8 | hardwareVersion () const |
Returns the DeviceInfoMessage data message's hardwareVersion field's current value. More... | |
quint32 | cumOperatingTime () const |
Returns the DeviceInfoMessage data message's cumOperatingTime field's current value. More... | |
quint16 | batteryVoltage () const |
Returns the DeviceInfoMessage data message's batteryVoltage field's current value. More... | |
BatteryStatus | batteryStatus () const |
Returns the DeviceInfoMessage data message's batteryStatus field's current value. More... | |
BodyLocation | sensorPosition () const |
Returns the DeviceInfoMessage data message's sensorPosition field's current value. More... | |
QString | descriptor () const |
Returns the DeviceInfoMessage data message's descriptor field's current value. More... | |
quint8z | antTransmissionType () const |
Returns the DeviceInfoMessage data message's antTransmissionType field's current value. More... | |
quint16z | antDeviceNumber () const |
Returns the DeviceInfoMessage data message's antDeviceNumber field's current value. More... | |
AntNetwork | antNetwork () const |
Returns the DeviceInfoMessage data message's antNetwork field's current value. More... | |
SourceType | sourceType () const |
Returns the DeviceInfoMessage data message's sourceType field's current value. More... | |
QString | productName () const |
Returns the DeviceInfoMessage data message's productName field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setDeviceIndex (const DeviceIndex deviceIndex) |
Sets the deviceIndex field to deviceIndex. More... | |
void | setDeviceType (const quint8 deviceType) |
Sets the deviceType field to deviceType. More... | |
void | setManufacturer (const Manufacturer manufacturer) |
Sets the manufacturer field to manufacturer. More... | |
void | setSerialNumber (const quint32z serialNumber) |
Sets the serialNumber field to serialNumber. More... | |
void | setProduct (const quint16 product) |
Sets the product field to product. More... | |
void | setSoftwareVersion (const quint16 softwareVersion) |
Sets the softwareVersion field to softwareVersion. More... | |
void | setHardwareVersion (const quint8 hardwareVersion) |
Sets the hardwareVersion field to hardwareVersion. More... | |
void | setCumOperatingTime (const quint32 cumOperatingTime) |
Sets the cumOperatingTime field to cumOperatingTime. More... | |
void | setBatteryVoltage (const quint16 batteryVoltage) |
Sets the batteryVoltage field to batteryVoltage. More... | |
void | setBatteryStatus (const BatteryStatus batteryStatus) |
Sets the batteryStatus field to batteryStatus. More... | |
void | setSensorPosition (const BodyLocation sensorPosition) |
Sets the sensorPosition field to sensorPosition. More... | |
void | setDescriptor (const QString descriptor) |
Sets the descriptor field to descriptor. More... | |
void | setAntTransmissionType (const quint8z antTransmissionType) |
Sets the antTransmissionType field to antTransmissionType. More... | |
void | setAntDeviceNumber (const quint16z antDeviceNumber) |
Sets the antDeviceNumber field to antDeviceNumber. More... | |
void | setAntNetwork (const AntNetwork antNetwork) |
Sets the antNetwork field to antNetwork. More... | |
void | setSourceType (const SourceType sourceType) |
Sets the sourceType field to sourceType. More... | |
void | setProductName (const QString productName) |
Sets the productName field to productName. 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 DeviceInfoMessage class represents a FIT DeviceInfoMessage data message.
DeviceInfoMessage::DeviceInfoMessage | ( | ) |
Constructs a DeviceInfoMessage 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.
quint16z DeviceInfoMessage::antDeviceNumber | ( | ) | const |
Returns the DeviceInfoMessage data message's antDeviceNumber
field's current value.
antDeviceNumber
field value. AntNetwork DeviceInfoMessage::antNetwork | ( | ) | const |
Returns the DeviceInfoMessage data message's antNetwork
field's current value.
antNetwork
field value. quint8z DeviceInfoMessage::antTransmissionType | ( | ) | const |
Returns the DeviceInfoMessage data message's antTransmissionType
field's current value.
antTransmissionType
field value. BatteryStatus DeviceInfoMessage::batteryStatus | ( | ) | const |
Returns the DeviceInfoMessage data message's batteryStatus
field's current value.
batteryStatus
field value. quint16 DeviceInfoMessage::batteryVoltage | ( | ) | const |
Returns the DeviceInfoMessage data message's batteryVoltage
field's current value.
batteryVoltage
field value. quint32 DeviceInfoMessage::cumOperatingTime | ( | ) | const |
Returns the DeviceInfoMessage data message's cumOperatingTime
field's current value.
Reset by new battery or charge.
cumOperatingTime
field value. QString DeviceInfoMessage::descriptor | ( | ) | const |
Returns the DeviceInfoMessage data message's descriptor
field's current value.
Used to describe the sensor or location
descriptor
field value. DeviceIndex DeviceInfoMessage::deviceIndex | ( | ) | const |
Returns the DeviceInfoMessage data message's deviceIndex
field's current value.
deviceIndex
field value. quint8 DeviceInfoMessage::deviceType | ( | ) | const |
Returns the DeviceInfoMessage data message's deviceType
field's current value.
deviceType
field value. quint8 DeviceInfoMessage::hardwareVersion | ( | ) | const |
Returns the DeviceInfoMessage data message's hardwareVersion
field's current value.
hardwareVersion
field value. Manufacturer DeviceInfoMessage::manufacturer | ( | ) | const |
Returns the DeviceInfoMessage data message's manufacturer
field's current value.
manufacturer
field value. quint16 DeviceInfoMessage::product | ( | ) | const |
Returns the DeviceInfoMessage data message's product
field's current value.
product
field value. QString DeviceInfoMessage::productName | ( | ) | const |
Returns the DeviceInfoMessage data message's productName
field's current value.
Optional free form string to indicate the devices name or model
productName
field value. BodyLocation DeviceInfoMessage::sensorPosition | ( | ) | const |
Returns the DeviceInfoMessage data message's sensorPosition
field's current value.
Indicates the location of the sensor
sensorPosition
field value. quint32z DeviceInfoMessage::serialNumber | ( | ) | const |
Returns the DeviceInfoMessage data message's serialNumber
field's current value.
serialNumber
field value. void DeviceInfoMessage::setAntDeviceNumber | ( | const quint16z | antDeviceNumber | ) |
Sets the antDeviceNumber
field to antDeviceNumber.
antDeviceNumber | The field value to set. |
void DeviceInfoMessage::setAntNetwork | ( | const AntNetwork | antNetwork | ) |
Sets the antNetwork
field to antNetwork.
antNetwork | The field value to set. |
void DeviceInfoMessage::setAntTransmissionType | ( | const quint8z | antTransmissionType | ) |
Sets the antTransmissionType
field to antTransmissionType.
antTransmissionType | The field value to set. |
void DeviceInfoMessage::setBatteryStatus | ( | const BatteryStatus | batteryStatus | ) |
Sets the batteryStatus
field to batteryStatus.
batteryStatus | The field value to set. |
void DeviceInfoMessage::setBatteryVoltage | ( | const quint16 | batteryVoltage | ) |
Sets the batteryVoltage
field to batteryVoltage.
batteryVoltage | The field value to set. |
void DeviceInfoMessage::setCumOperatingTime | ( | const quint32 | cumOperatingTime | ) |
Sets the cumOperatingTime
field to cumOperatingTime.
cumOperatingTime | The field value to set. |
void DeviceInfoMessage::setDescriptor | ( | const QString | descriptor | ) |
Sets the descriptor
field to descriptor.
descriptor | The field value to set. |
void DeviceInfoMessage::setDeviceIndex | ( | const DeviceIndex | deviceIndex | ) |
Sets the deviceIndex
field to deviceIndex.
deviceIndex | The field value to set. |
void DeviceInfoMessage::setDeviceType | ( | const quint8 | deviceType | ) |
Sets the deviceType
field to deviceType.
deviceType | The field value to set. |
void DeviceInfoMessage::setHardwareVersion | ( | const quint8 | hardwareVersion | ) |
Sets the hardwareVersion
field to hardwareVersion.
hardwareVersion | The field value to set. |
void DeviceInfoMessage::setManufacturer | ( | const Manufacturer | manufacturer | ) |
Sets the manufacturer
field to manufacturer.
manufacturer | The field value to set. |
void DeviceInfoMessage::setProduct | ( | const quint16 | product | ) |
Sets the product
field to product.
product | The field value to set. |
void DeviceInfoMessage::setProductName | ( | const QString | productName | ) |
Sets the productName
field to productName.
productName | The field value to set. |
void DeviceInfoMessage::setSensorPosition | ( | const BodyLocation | sensorPosition | ) |
Sets the sensorPosition
field to sensorPosition.
sensorPosition | The field value to set. |
void DeviceInfoMessage::setSerialNumber | ( | const quint32z | serialNumber | ) |
Sets the serialNumber
field to serialNumber.
serialNumber | The field value to set. |
void DeviceInfoMessage::setSoftwareVersion | ( | const quint16 | softwareVersion | ) |
Sets the softwareVersion
field to softwareVersion.
softwareVersion | The field value to set. |
void DeviceInfoMessage::setSourceType | ( | const SourceType | sourceType | ) |
Sets the sourceType
field to sourceType.
sourceType | The field value to set. |
void DeviceInfoMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
quint16 DeviceInfoMessage::softwareVersion | ( | ) | const |
Returns the DeviceInfoMessage data message's softwareVersion
field's current value.
softwareVersion
field value. SourceType DeviceInfoMessage::sourceType | ( | ) | const |
Returns the DeviceInfoMessage data message's sourceType
field's current value.
sourceType
field value. DateTime DeviceInfoMessage::timestamp | ( | ) | const |
Returns the DeviceInfoMessage data message's timestamp
field's current value.
timestamp
field value.