QtFit
0.1
Internal library development documentation
|
The OhrSettingsMessage class represents a FIT OhrSettingsMessage data message. More...
Public Member Functions | |
OhrSettingsMessage () | |
Constructs a OhrSettingsMessage object. More... | |
DateTime | timestamp () const |
Returns the OhrSettingsMessage data message's timestamp field's current value. More... | |
Switch | enabled () const |
Returns the OhrSettingsMessage data message's enabled field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setEnabled (const Switch enabled) |
Sets the enabled field to enabled. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
OhrSettingsMessage (OhrSettingsMessagePrivate *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 OhrSettingsMessage class represents a FIT OhrSettingsMessage data message.
Definition at line 39 of file ohrsettingsmessage.h.
OhrSettingsMessage::OhrSettingsMessage | ( | ) |
Constructs a OhrSettingsMessage 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 ohrsettingsmessage.cpp.
|
explicitprotected |
Constructs a OhrSettingsMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file ohrsettingsmessage.cpp.
Switch OhrSettingsMessage::enabled | ( | ) | const |
Returns the OhrSettingsMessage data message's enabled
field's current value.
enabled
field value. Definition at line 85 of file ohrsettingsmessage.cpp.
Referenced by setEnabled().
void OhrSettingsMessage::setEnabled | ( | const Switch | enabled | ) |
Sets the enabled
field to enabled.
enabled | The field value to set. |
Definition at line 106 of file ohrsettingsmessage.cpp.
References enabled().
void OhrSettingsMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 96 of file ohrsettingsmessage.cpp.
References timestamp().
DateTime OhrSettingsMessage::timestamp | ( | ) | const |
Returns the OhrSettingsMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file ohrsettingsmessage.cpp.
Referenced by setTimestamp().