C
SafeRenderer::QSafeEventFilter Class
class SafeRenderer::QSafeEventFilterInterface class to add custom handling for QSafeEvent's. More...
Header: | #include <QSafeEventFilter> |
Since: | QtSafeRenderer 3.0 |
Public Functions
virtual | ~QSafeEventFilter() = 0 |
virtual bool | handleEvent(const SafeRenderer::QSafeEvent &event, bool *ackReplyHandled = nullptr) |
virtual void | handleTouch(const SafeRenderer::quint32 itemId, const bool isPressed) |
Detailed Description
An inherited instance of QSafeEventFilter can be installed to an EventHandler to gain access to customize QSafeEvent handling and receiving touch events.
Member Function Documentation
[pure virtual noexcept]
QSafeEventFilter::~QSafeEventFilter()
Destructs QSafeEventFilter instance.
[virtual]
bool QSafeEventFilter::handleEvent(const SafeRenderer::QSafeEvent &event, bool *ackReplyHandled = nullptr)
Function to override when specific safe event event needs custom event handling. If the filter handles sending ACK or custom reply, the ackReplyHandled must be set to true so that QSR runtime does not send ACK reply again.
Note: If any QSafeEvent needs to have custom event handling, this function should be overwritten. See SafeRenderer::EventHandlerInterface::installSafeEventHandler() or QSR examples for an example about how to do this.
Note: If this function intercepts a message, the variable ackReplyHandled must be set to true if this filter handles sending custom reply or ACK reply. In case this filter only handles the message, the ackReplyHandled can be left as is (false) and the QSR runtime will handle sending the custom or ACK reply back.
Returns true if event was handled and no further handling should be done, false if QSR runtime should also handle this event.
[virtual]
void QSafeEventFilter::handleTouch(const SafeRenderer::quint32 itemId, const bool isPressed)
Function to override when specific touch press state isPressed for item itemId is received and specific handling for it is required.
Note: If any touch events needs to have custom handling, this function should be overwritten. See SafeRenderer::EventHandlerInterface::installSafeEventHandler() or QSR touch example for an example about how to do this.
Available under certain Qt licenses.
Find out more.