C

<eventProcessor.h> - Qt Safe Monitor Event Handling

The <eventProcessor.h> header provides event handling mechanisms for Qt Safe Monitor. More...

Header: #include <eventProcessor.h>
Since: QtSafeRenderer 2.1

Functions

void getEventOutputVerificationRequest(qchar[] buf, size_t len)
qint32 processEvent(qchar[] buf, size_t len, errorFunc errorHandler)
qint32 verifyCRC(const quint32 item, const quint32 state, const quint32 actualCRCValue)

Detailed Description

The <eventProcessor.h> header provides event handling mechanisms for Qt Safe Monitor.

Function Documentation

void getEventOutputVerificationRequest(qchar[] buf, size_t len)

Writes an OutputVerificationRequestEvent event into buf. Sending this event requests the Qt Safe Renderer process to read the actual CRC values from the display hardware, which are reported back in a subsequent OutputVerificationStatusReplyEvent. The buf must have capacity len bytes for the serialized event.

qint32 processEvent(qchar[] buf, size_t len, errorFunc errorHandler)

Parses an OutputVerificationStatusReplyEvent status reply in buf and verifies its payload CRCs. The buf holds the serialized reply from the Qt Safe Renderer process with size len bytes. The errorHandler is a callback of type errorFunc which is called in case of error. Returns the element count on success; -1 if validation fails.

See also errorFunc.

qint32 verifyCRC(const quint32 item, const quint32 state, const quint32 actualCRCValue)

Verifies that actualCRCValue is acceptable for the given item and state. Queries the Qt Safe Monitor configuration data via <monitorconfig.h> to obtain the acceptable CRC values and checks whether actualCRCValue matches any of them. Typically used internally by processEvent(). Returns 0 on success; -1 on failure.

Available under certain Qt licenses.
Find out more.