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

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

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

Public Member Functions

 WatchfaceSettingsMessage ()
 Constructs a WatchfaceSettingsMessage object. More...
 
MessageIndex messageIndex () const
 Returns the WatchfaceSettingsMessage data message's messageIndex field's current value. More...
 
WatchfaceMode mode () const
 Returns the WatchfaceSettingsMessage data message's mode field's current value. More...
 
quint8 layout () const
 Returns the WatchfaceSettingsMessage data message's layout field's current value. More...
 
void setMessageIndex (const MessageIndex messageIndex)
 Sets the messageIndex field to messageIndex. More...
 
void setMode (const WatchfaceMode mode)
 Sets the mode field to mode. More...
 
void setLayout (const quint8 layout)
 Sets the layout field to layout. 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

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

See also
DataMessage

Definition at line 39 of file watchfacesettingsmessage.h.

Constructor & Destructor Documentation

◆ WatchfaceSettingsMessage() [1/2]

WatchfaceSettingsMessage::WatchfaceSettingsMessage ( )

Constructs a WatchfaceSettingsMessage 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 watchfacesettingsmessage.cpp.

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

◆ WatchfaceSettingsMessage() [2/2]

WatchfaceSettingsMessage::WatchfaceSettingsMessage ( WatchfaceSettingsMessagePrivate *const  d)
explicitprotected

Constructs a WatchfaceSettingsMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file watchfacesettingsmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ layout()

quint8 WatchfaceSettingsMessage::layout ( ) const

Returns the WatchfaceSettingsMessage data message's layout field's current value.

Returns
the layout field value.

Definition at line 96 of file watchfacesettingsmessage.cpp.

97 {
98  Q_D(const WatchfaceSettingsMessage);
99  return d->layout;
100 }
The WatchfaceSettingsMessage class represents a FIT WatchfaceSettingsMessage data message.

Referenced by setLayout().

Here is the caller graph for this function:

◆ messageIndex()

MessageIndex WatchfaceSettingsMessage::messageIndex ( ) const

Returns the WatchfaceSettingsMessage data message's messageIndex field's current value.

Returns
the messageIndex field value.

Definition at line 74 of file watchfacesettingsmessage.cpp.

75 {
76  Q_D(const WatchfaceSettingsMessage);
77  return d->messageIndex;
78 }

Referenced by setMessageIndex().

Here is the caller graph for this function:

◆ mode()

WatchfaceMode WatchfaceSettingsMessage::mode ( ) const

Returns the WatchfaceSettingsMessage data message's mode field's current value.

Returns
the mode field value.

Definition at line 85 of file watchfacesettingsmessage.cpp.

86 {
87  Q_D(const WatchfaceSettingsMessage);
88  return d->mode;
89 }

Referenced by setMode().

Here is the caller graph for this function:

◆ setLayout()

void WatchfaceSettingsMessage::setLayout ( const quint8  layout)

Sets the layout field to layout.

Parameters
layoutThe field value to set.

Definition at line 127 of file watchfacesettingsmessage.cpp.

128 {
130  d->layout = layout;
131 }
quint8 layout() const
Returns the WatchfaceSettingsMessage data message's layout field's current value.

References layout().

Here is the call graph for this function:

◆ setMessageIndex()

void WatchfaceSettingsMessage::setMessageIndex ( const MessageIndex  messageIndex)

Sets the messageIndex field to messageIndex.

Parameters
messageIndexThe field value to set.

Definition at line 107 of file watchfacesettingsmessage.cpp.

108 {
110  d->messageIndex = messageIndex;
111 }
MessageIndex messageIndex() const
Returns the WatchfaceSettingsMessage data message's messageIndex field's current value.

References messageIndex().

Here is the call graph for this function:

◆ setMode()

void WatchfaceSettingsMessage::setMode ( const WatchfaceMode  mode)

Sets the mode field to mode.

Parameters
modeThe field value to set.

Definition at line 117 of file watchfacesettingsmessage.cpp.

118 {
120  d->mode = mode;
121 }
WatchfaceMode mode() const
Returns the WatchfaceSettingsMessage data message's mode field's current value.

References mode().

Here is the call graph for this function:

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