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

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

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

Public Member Functions

 AntChannelIdMessage ()
 Constructs a AntChannelIdMessage object. More...
 
quint8 channelNumber () const
 Returns the AntChannelIdMessage data message's channelNumber field's current value. More...
 
quint8z deviceType () const
 Returns the AntChannelIdMessage data message's deviceType field's current value. More...
 
quint16z deviceNumber () const
 Returns the AntChannelIdMessage data message's deviceNumber field's current value. More...
 
quint8z transmissionType () const
 Returns the AntChannelIdMessage data message's transmissionType field's current value. More...
 
DeviceIndex deviceIndex () const
 Returns the AntChannelIdMessage data message's deviceIndex field's current value. More...
 
void setChannelNumber (const quint8 channelNumber)
 Sets the channelNumber field to channelNumber. More...
 
void setDeviceType (const quint8z deviceType)
 Sets the deviceType field to deviceType. More...
 
void setDeviceNumber (const quint16z deviceNumber)
 Sets the deviceNumber field to deviceNumber. More...
 
void setTransmissionType (const quint8z transmissionType)
 Sets the transmissionType field to transmissionType. More...
 
void setDeviceIndex (const DeviceIndex deviceIndex)
 Sets the deviceIndex field to deviceIndex. 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

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

See also
DataMessage

Definition at line 39 of file antchannelidmessage.h.

Constructor & Destructor Documentation

◆ AntChannelIdMessage() [1/2]

AntChannelIdMessage::AntChannelIdMessage ( )

Constructs a AntChannelIdMessage 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 antchannelidmessage.cpp.

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

◆ AntChannelIdMessage() [2/2]

AntChannelIdMessage::AntChannelIdMessage ( AntChannelIdMessagePrivate *const  d)
explicitprotected

Constructs a AntChannelIdMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file antchannelidmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ channelNumber()

quint8 AntChannelIdMessage::channelNumber ( ) const

Returns the AntChannelIdMessage data message's channelNumber field's current value.

Returns
the channelNumber field value.

Definition at line 74 of file antchannelidmessage.cpp.

75 {
76  Q_D(const AntChannelIdMessage);
77  return d->channelNumber;
78 }
The AntChannelIdMessage class represents a FIT AntChannelIdMessage data message.

Referenced by setChannelNumber().

Here is the caller graph for this function:

◆ deviceIndex()

DeviceIndex AntChannelIdMessage::deviceIndex ( ) const

Returns the AntChannelIdMessage data message's deviceIndex field's current value.

Returns
the deviceIndex field value.

Definition at line 118 of file antchannelidmessage.cpp.

119 {
120  Q_D(const AntChannelIdMessage);
121  return d->deviceIndex;
122 }

Referenced by setDeviceIndex().

Here is the caller graph for this function:

◆ deviceNumber()

quint16z AntChannelIdMessage::deviceNumber ( ) const

Returns the AntChannelIdMessage data message's deviceNumber field's current value.

Returns
the deviceNumber field value.

Definition at line 96 of file antchannelidmessage.cpp.

97 {
98  Q_D(const AntChannelIdMessage);
99  return d->deviceNumber;
100 }

Referenced by setDeviceNumber().

Here is the caller graph for this function:

◆ deviceType()

quint8z AntChannelIdMessage::deviceType ( ) const

Returns the AntChannelIdMessage data message's deviceType field's current value.

Returns
the deviceType field value.

Definition at line 85 of file antchannelidmessage.cpp.

86 {
87  Q_D(const AntChannelIdMessage);
88  return d->deviceType;
89 }

Referenced by setDeviceType().

Here is the caller graph for this function:

◆ setChannelNumber()

void AntChannelIdMessage::setChannelNumber ( const quint8  channelNumber)

Sets the channelNumber field to channelNumber.

Parameters
channelNumberThe field value to set.

Definition at line 129 of file antchannelidmessage.cpp.

130 {
131  Q_D(AntChannelIdMessage);
132  d->channelNumber = channelNumber;
133 }
quint8 channelNumber() const
Returns the AntChannelIdMessage data message's channelNumber field's current value.

References channelNumber().

Here is the call graph for this function:

◆ setDeviceIndex()

void AntChannelIdMessage::setDeviceIndex ( const DeviceIndex  deviceIndex)

Sets the deviceIndex field to deviceIndex.

Parameters
deviceIndexThe field value to set.

Definition at line 169 of file antchannelidmessage.cpp.

170 {
171  Q_D(AntChannelIdMessage);
172  d->deviceIndex = deviceIndex;
173 }
DeviceIndex deviceIndex() const
Returns the AntChannelIdMessage data message's deviceIndex field's current value.

References deviceIndex().

Here is the call graph for this function:

◆ setDeviceNumber()

void AntChannelIdMessage::setDeviceNumber ( const quint16z  deviceNumber)

Sets the deviceNumber field to deviceNumber.

Parameters
deviceNumberThe field value to set.

Definition at line 149 of file antchannelidmessage.cpp.

150 {
151  Q_D(AntChannelIdMessage);
152  d->deviceNumber = deviceNumber;
153 }
quint16z deviceNumber() const
Returns the AntChannelIdMessage data message's deviceNumber field's current value.

References deviceNumber().

Here is the call graph for this function:

◆ setDeviceType()

void AntChannelIdMessage::setDeviceType ( const quint8z  deviceType)

Sets the deviceType field to deviceType.

Parameters
deviceTypeThe field value to set.

Definition at line 139 of file antchannelidmessage.cpp.

140 {
141  Q_D(AntChannelIdMessage);
142  d->deviceType = deviceType;
143 }
quint8z deviceType() const
Returns the AntChannelIdMessage data message's deviceType field's current value.

References deviceType().

Here is the call graph for this function:

◆ setTransmissionType()

void AntChannelIdMessage::setTransmissionType ( const quint8z  transmissionType)

Sets the transmissionType field to transmissionType.

Parameters
transmissionTypeThe field value to set.

Definition at line 159 of file antchannelidmessage.cpp.

160 {
161  Q_D(AntChannelIdMessage);
162  d->transmissionType = transmissionType;
163 }
quint8z transmissionType() const
Returns the AntChannelIdMessage data message's transmissionType field's current value.

References transmissionType().

Here is the call graph for this function:

◆ transmissionType()

quint8z AntChannelIdMessage::transmissionType ( ) const

Returns the AntChannelIdMessage data message's transmissionType field's current value.

Returns
the transmissionType field value.

Definition at line 107 of file antchannelidmessage.cpp.

108 {
109  Q_D(const AntChannelIdMessage);
110  return d->transmissionType;
111 }

Referenced by setTransmissionType().

Here is the caller graph for this function:

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