QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
DeviceInfoMessage (DeviceInfoMessagePrivate *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 DeviceInfoMessage class represents a FIT DeviceInfoMessage data message.
Definition at line 39 of file deviceinfomessage.h.
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.
Definition at line 52 of file deviceinfomessage.cpp.
|
explicitprotected |
Constructs a DeviceInfoMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file deviceinfomessage.cpp.
quint16z DeviceInfoMessage::antDeviceNumber | ( | ) | const |
Returns the DeviceInfoMessage data message's antDeviceNumber
field's current value.
antDeviceNumber
field value. Definition at line 234 of file deviceinfomessage.cpp.
Referenced by setAntDeviceNumber().
AntNetwork DeviceInfoMessage::antNetwork | ( | ) | const |
Returns the DeviceInfoMessage data message's antNetwork
field's current value.
antNetwork
field value. Definition at line 245 of file deviceinfomessage.cpp.
Referenced by setAntNetwork().
quint8z DeviceInfoMessage::antTransmissionType | ( | ) | const |
Returns the DeviceInfoMessage data message's antTransmissionType
field's current value.
antTransmissionType
field value. Definition at line 223 of file deviceinfomessage.cpp.
Referenced by setAntTransmissionType().
BatteryStatus DeviceInfoMessage::batteryStatus | ( | ) | const |
Returns the DeviceInfoMessage data message's batteryStatus
field's current value.
batteryStatus
field value. Definition at line 186 of file deviceinfomessage.cpp.
Referenced by setBatteryStatus().
quint16 DeviceInfoMessage::batteryVoltage | ( | ) | const |
Returns the DeviceInfoMessage data message's batteryVoltage
field's current value.
batteryVoltage
field value. Definition at line 175 of file deviceinfomessage.cpp.
Referenced by setBatteryVoltage().
quint32 DeviceInfoMessage::cumOperatingTime | ( | ) | const |
Returns the DeviceInfoMessage data message's cumOperatingTime
field's current value.
Reset by new battery or charge.
cumOperatingTime
field value. Definition at line 164 of file deviceinfomessage.cpp.
Referenced by setCumOperatingTime().
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. Definition at line 212 of file deviceinfomessage.cpp.
Referenced by setDescriptor().
DeviceIndex DeviceInfoMessage::deviceIndex | ( | ) | const |
Returns the DeviceInfoMessage data message's deviceIndex
field's current value.
deviceIndex
field value. Definition at line 85 of file deviceinfomessage.cpp.
Referenced by setDeviceIndex().
quint8 DeviceInfoMessage::deviceType | ( | ) | const |
Returns the DeviceInfoMessage data message's deviceType
field's current value.
deviceType
field value. Definition at line 96 of file deviceinfomessage.cpp.
Referenced by setDeviceType().
quint8 DeviceInfoMessage::hardwareVersion | ( | ) | const |
Returns the DeviceInfoMessage data message's hardwareVersion
field's current value.
hardwareVersion
field value. Definition at line 151 of file deviceinfomessage.cpp.
Referenced by setHardwareVersion().
Manufacturer DeviceInfoMessage::manufacturer | ( | ) | const |
Returns the DeviceInfoMessage data message's manufacturer
field's current value.
manufacturer
field value. Definition at line 107 of file deviceinfomessage.cpp.
Referenced by setManufacturer().
quint16 DeviceInfoMessage::product | ( | ) | const |
Returns the DeviceInfoMessage data message's product
field's current value.
product
field value. Definition at line 129 of file deviceinfomessage.cpp.
Referenced by setProduct().
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. Definition at line 269 of file deviceinfomessage.cpp.
Referenced by setProductName().
BodyLocation DeviceInfoMessage::sensorPosition | ( | ) | const |
Returns the DeviceInfoMessage data message's sensorPosition
field's current value.
Indicates the location of the sensor
sensorPosition
field value. Definition at line 199 of file deviceinfomessage.cpp.
Referenced by setSensorPosition().
quint32z DeviceInfoMessage::serialNumber | ( | ) | const |
Returns the DeviceInfoMessage data message's serialNumber
field's current value.
serialNumber
field value. Definition at line 118 of file deviceinfomessage.cpp.
Referenced by setSerialNumber().
void DeviceInfoMessage::setAntDeviceNumber | ( | const quint16z | antDeviceNumber | ) |
Sets the antDeviceNumber
field to antDeviceNumber.
antDeviceNumber | The field value to set. |
Definition at line 420 of file deviceinfomessage.cpp.
References antDeviceNumber().
void DeviceInfoMessage::setAntNetwork | ( | const AntNetwork | antNetwork | ) |
Sets the antNetwork
field to antNetwork.
antNetwork | The field value to set. |
Definition at line 430 of file deviceinfomessage.cpp.
References antNetwork().
void DeviceInfoMessage::setAntTransmissionType | ( | const quint8z | antTransmissionType | ) |
Sets the antTransmissionType
field to antTransmissionType.
antTransmissionType | The field value to set. |
Definition at line 410 of file deviceinfomessage.cpp.
References antTransmissionType().
void DeviceInfoMessage::setBatteryStatus | ( | const BatteryStatus | batteryStatus | ) |
Sets the batteryStatus
field to batteryStatus.
batteryStatus | The field value to set. |
Definition at line 380 of file deviceinfomessage.cpp.
References batteryStatus().
void DeviceInfoMessage::setBatteryVoltage | ( | const quint16 | batteryVoltage | ) |
Sets the batteryVoltage
field to batteryVoltage.
batteryVoltage | The field value to set. |
Definition at line 370 of file deviceinfomessage.cpp.
References batteryVoltage().
void DeviceInfoMessage::setCumOperatingTime | ( | const quint32 | cumOperatingTime | ) |
Sets the cumOperatingTime
field to cumOperatingTime.
cumOperatingTime | The field value to set. |
Definition at line 360 of file deviceinfomessage.cpp.
References cumOperatingTime().
void DeviceInfoMessage::setDescriptor | ( | const QString | descriptor | ) |
Sets the descriptor
field to descriptor.
descriptor | The field value to set. |
Definition at line 400 of file deviceinfomessage.cpp.
References descriptor().
void DeviceInfoMessage::setDeviceIndex | ( | const DeviceIndex | deviceIndex | ) |
Sets the deviceIndex
field to deviceIndex.
deviceIndex | The field value to set. |
Definition at line 290 of file deviceinfomessage.cpp.
References deviceIndex().
void DeviceInfoMessage::setDeviceType | ( | const quint8 | deviceType | ) |
Sets the deviceType
field to deviceType.
deviceType | The field value to set. |
Definition at line 300 of file deviceinfomessage.cpp.
References deviceType().
void DeviceInfoMessage::setHardwareVersion | ( | const quint8 | hardwareVersion | ) |
Sets the hardwareVersion
field to hardwareVersion.
hardwareVersion | The field value to set. |
Definition at line 350 of file deviceinfomessage.cpp.
References hardwareVersion().
void DeviceInfoMessage::setManufacturer | ( | const Manufacturer | manufacturer | ) |
Sets the manufacturer
field to manufacturer.
manufacturer | The field value to set. |
Definition at line 310 of file deviceinfomessage.cpp.
References manufacturer().
void DeviceInfoMessage::setProduct | ( | const quint16 | product | ) |
Sets the product
field to product.
product | The field value to set. |
Definition at line 330 of file deviceinfomessage.cpp.
References product().
void DeviceInfoMessage::setProductName | ( | const QString | productName | ) |
Sets the productName
field to productName.
productName | The field value to set. |
Definition at line 450 of file deviceinfomessage.cpp.
References productName().
void DeviceInfoMessage::setSensorPosition | ( | const BodyLocation | sensorPosition | ) |
Sets the sensorPosition
field to sensorPosition.
sensorPosition | The field value to set. |
Definition at line 390 of file deviceinfomessage.cpp.
References sensorPosition().
void DeviceInfoMessage::setSerialNumber | ( | const quint32z | serialNumber | ) |
Sets the serialNumber
field to serialNumber.
serialNumber | The field value to set. |
Definition at line 320 of file deviceinfomessage.cpp.
References serialNumber().
void DeviceInfoMessage::setSoftwareVersion | ( | const quint16 | softwareVersion | ) |
Sets the softwareVersion
field to softwareVersion.
softwareVersion | The field value to set. |
Definition at line 340 of file deviceinfomessage.cpp.
References softwareVersion().
void DeviceInfoMessage::setSourceType | ( | const SourceType | sourceType | ) |
Sets the sourceType
field to sourceType.
sourceType | The field value to set. |
Definition at line 440 of file deviceinfomessage.cpp.
References sourceType().
void DeviceInfoMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 280 of file deviceinfomessage.cpp.
References timestamp().
quint16 DeviceInfoMessage::softwareVersion | ( | ) | const |
Returns the DeviceInfoMessage data message's softwareVersion
field's current value.
softwareVersion
field value. Definition at line 140 of file deviceinfomessage.cpp.
Referenced by setSoftwareVersion().
SourceType DeviceInfoMessage::sourceType | ( | ) | const |
Returns the DeviceInfoMessage data message's sourceType
field's current value.
sourceType
field value. Definition at line 256 of file deviceinfomessage.cpp.
Referenced by setSourceType().
DateTime DeviceInfoMessage::timestamp | ( | ) | const |
Returns the DeviceInfoMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file deviceinfomessage.cpp.
Referenced by setTimestamp().