QtFit
0.1
Internal library development documentation
|
The CameraEventMessage class represents a FIT CameraEventMessage data message. More...
Public Member Functions | |
CameraEventMessage () | |
Constructs a CameraEventMessage object. More... | |
DateTime | timestamp () const |
Returns the CameraEventMessage data message's timestamp field's current value. More... | |
quint16 | timestampMs () const |
Returns the CameraEventMessage data message's timestampMs field's current value. More... | |
CameraEventType | cameraEventType () const |
Returns the CameraEventMessage data message's cameraEventType field's current value. More... | |
QString | cameraFileUuid () const |
Returns the CameraEventMessage data message's cameraFileUuid field's current value. More... | |
CameraOrientationType | cameraOrientation () const |
Returns the CameraEventMessage data message's cameraOrientation field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setTimestampMs (const quint16 timestampMs) |
Sets the timestampMs field to timestampMs. More... | |
void | setCameraEventType (const CameraEventType cameraEventType) |
Sets the cameraEventType field to cameraEventType. More... | |
void | setCameraFileUuid (const QString cameraFileUuid) |
Sets the cameraFileUuid field to cameraFileUuid. More... | |
void | setCameraOrientation (const CameraOrientationType cameraOrientation) |
Sets the cameraOrientation field to cameraOrientation. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
CameraEventMessage (CameraEventMessagePrivate *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 CameraEventMessage class represents a FIT CameraEventMessage data message.
Definition at line 39 of file cameraeventmessage.h.
CameraEventMessage::CameraEventMessage | ( | ) |
Constructs a CameraEventMessage 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 cameraeventmessage.cpp.
|
explicitprotected |
Constructs a CameraEventMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file cameraeventmessage.cpp.
CameraEventType CameraEventMessage::cameraEventType | ( | ) | const |
Returns the CameraEventMessage data message's cameraEventType
field's current value.
cameraEventType
field value. Definition at line 100 of file cameraeventmessage.cpp.
Referenced by setCameraEventType().
QString CameraEventMessage::cameraFileUuid | ( | ) | const |
Returns the CameraEventMessage data message's cameraFileUuid
field's current value.
cameraFileUuid
field value. Definition at line 111 of file cameraeventmessage.cpp.
Referenced by setCameraFileUuid().
CameraOrientationType CameraEventMessage::cameraOrientation | ( | ) | const |
Returns the CameraEventMessage data message's cameraOrientation
field's current value.
cameraOrientation
field value. Definition at line 122 of file cameraeventmessage.cpp.
Referenced by setCameraOrientation().
void CameraEventMessage::setCameraEventType | ( | const CameraEventType | cameraEventType | ) |
Sets the cameraEventType
field to cameraEventType.
cameraEventType | The field value to set. |
Definition at line 153 of file cameraeventmessage.cpp.
References cameraEventType().
void CameraEventMessage::setCameraFileUuid | ( | const QString | cameraFileUuid | ) |
Sets the cameraFileUuid
field to cameraFileUuid.
cameraFileUuid | The field value to set. |
Definition at line 163 of file cameraeventmessage.cpp.
References cameraFileUuid().
void CameraEventMessage::setCameraOrientation | ( | const CameraOrientationType | cameraOrientation | ) |
Sets the cameraOrientation
field to cameraOrientation.
cameraOrientation | The field value to set. |
Definition at line 173 of file cameraeventmessage.cpp.
References cameraOrientation().
void CameraEventMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 133 of file cameraeventmessage.cpp.
References timestamp().
void CameraEventMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs
field to timestampMs.
timestampMs | The field value to set. |
Definition at line 143 of file cameraeventmessage.cpp.
References timestampMs().
DateTime CameraEventMessage::timestamp | ( | ) | const |
Returns the CameraEventMessage data message's timestamp
field's current value.
Whole second part of the timestamp.
timestamp
field value. Definition at line 76 of file cameraeventmessage.cpp.
Referenced by setTimestamp().
quint16 CameraEventMessage::timestampMs | ( | ) | const |
Returns the CameraEventMessage data message's timestampMs
field's current value.
Millisecond part of the timestamp.
timestampMs
field value. Definition at line 89 of file cameraeventmessage.cpp.
Referenced by setTimestampMs().