Kanzi  3.9.6
Kanzi Engine API
kanzi::qnx::QnxChannelID Class Reference

Class representing Qnx communication channel ID. More...

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

Public Member Functions

KZ_NO_DISCARD int getNativeHandle () const noexcept
 Gets Qnx channel ID handle. More...
 
 QnxChannelID (QnxChannelIDFlags channelFlags)
 Constructor. More...
 
 QnxChannelID (int channelHandle)
 Constructor. More...
 
KZ_NO_DISCARD optional< struct _pulse > tryReceivePulse () noexcept
 Try to receive a Qnx pulse from the channel. More...
 
 ~QnxChannelID ()
 Destructor. More...
 

Detailed Description

Class representing Qnx communication channel ID.

Constructor & Destructor Documentation

◆ QnxChannelID() [1/2]

kanzi::qnx::QnxChannelID::QnxChannelID ( QnxChannelIDFlags  channelFlags)
explicit

Constructor.

Parameters
channelFlagsThe channel flags to use.

◆ QnxChannelID() [2/2]

kanzi::qnx::QnxChannelID::QnxChannelID ( int  channelHandle)
explicit

Constructor.

Parameters
channelHandleQnx channel handle.
Precondition
channelHandle must be a valid channel handle.

◆ ~QnxChannelID()

kanzi::qnx::QnxChannelID::~QnxChannelID ( )

Destructor.

Member Function Documentation

◆ tryReceivePulse()

KZ_NO_DISCARD optional<struct _pulse> kanzi::qnx::QnxChannelID::tryReceivePulse ( )
noexcept

Try to receive a Qnx pulse from the channel.

Return values
nulloptNo pulse received.
Returns
The Qnx pulse.

◆ getNativeHandle()

KZ_NO_DISCARD int kanzi::qnx::QnxChannelID::getNativeHandle ( ) const
noexcept

Gets Qnx channel ID handle.

Returns
The Qnx channel ID handle.

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