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

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

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

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...
 
- 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

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

See also
DataMessage

Definition at line 39 of file ohrsettingsmessage.h.

Constructor & Destructor Documentation

◆ OhrSettingsMessage() [1/2]

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.

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

◆ OhrSettingsMessage() [2/2]

OhrSettingsMessage::OhrSettingsMessage ( OhrSettingsMessagePrivate *const  d)
explicitprotected

Constructs a OhrSettingsMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file ohrsettingsmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ enabled()

Switch OhrSettingsMessage::enabled ( ) const

Returns the OhrSettingsMessage data message's enabled field's current value.

Returns
the enabled field value.

Definition at line 85 of file ohrsettingsmessage.cpp.

86 {
87  Q_D(const OhrSettingsMessage);
88  return d->enabled;
89 }
The OhrSettingsMessage class represents a FIT OhrSettingsMessage data message.

Referenced by setEnabled().

Here is the caller graph for this function:

◆ setEnabled()

void OhrSettingsMessage::setEnabled ( const Switch  enabled)

Sets the enabled field to enabled.

Parameters
enabledThe field value to set.

Definition at line 106 of file ohrsettingsmessage.cpp.

107 {
108  Q_D(OhrSettingsMessage);
109  d->enabled = enabled;
110 }
Switch enabled() const
Returns the OhrSettingsMessage data message's enabled field's current value.

References enabled().

Here is the call graph for this function:

◆ setTimestamp()

void OhrSettingsMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.

Definition at line 96 of file ohrsettingsmessage.cpp.

97 {
98  Q_D(OhrSettingsMessage);
99  d->timestamp = timestamp;
100 }
DateTime timestamp() const
Returns the OhrSettingsMessage data message's timestamp field's current value.

References timestamp().

Here is the call graph for this function:

◆ timestamp()

DateTime OhrSettingsMessage::timestamp ( ) const

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

Returns
the timestamp field value.

Definition at line 74 of file ohrsettingsmessage.cpp.

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

Referenced by setTimestamp().

Here is the caller graph for this function:

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