Kanzi 3.9.10
kanzi::qnx::QnxSigEvent Class Reference

Class representing QNX sig event. More...

#include <kanzi/core.ui/platform/input_ng/qnx_screen/qnx_screen_sigevent.hpp>

Public Member Functions

KZ_NO_DISCARD sigevent getNativeHandle () const noexcept
 Gets QNX sig event handle.
 
void noneInit () noexcept
 Deinitializes the sig event.
 
bool notifyAsyncInput (QnxContext &context) noexcept
 Notifies the screen for new async input event.
 
 QnxSigEvent (const QnxConnectionID &connectionId, QnxPulseCode pulseCode, int value)
 Constructor.
 
 QnxSigEvent (struct sigevent sigEventHandle)
 Constructor.
 

Detailed Description

Class representing QNX sig event.

Constructor & Destructor Documentation

◆ QnxSigEvent() [1/2]

kanzi::qnx::QnxSigEvent::QnxSigEvent ( const QnxConnectionID & connectionId,
QnxPulseCode pulseCode,
int value )
explicit

Constructor.

Parameters
connectionIdThe connection ID to initialize the event for.
pulseCodeQNX pulse code to use.
valueValue to initialize the code with.

◆ QnxSigEvent() [2/2]

kanzi::qnx::QnxSigEvent::QnxSigEvent ( struct sigevent sigEventHandle)
explicit

Constructor.

Parameters
sigEventHandleSignal event handle.
Precondition
sigEventHandle must be a valid signal event handle.

Member Function Documentation

◆ noneInit()

void kanzi::qnx::QnxSigEvent::noneInit ( )
noexcept

Deinitializes the sig event.

◆ notifyAsyncInput()

bool kanzi::qnx::QnxSigEvent::notifyAsyncInput ( QnxContext & context)
noexcept

Notifies the screen for new async input event.

Parameters
contextQNX context to notify the async input for.
Return values
FalseErrno is set.
Returns
True on success, false on failure.

◆ getNativeHandle()

KZ_NO_DISCARD sigevent kanzi::qnx::QnxSigEvent::getNativeHandle ( ) const
noexcept

Gets QNX sig event handle.

Returns
The QNX sig event handle.

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