Kanzi  3.9.5
Kanzi Engine API
kanzi::qnx::QnxConnectionID Class Reference

Class representing Qnx connection ID. More...

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

Public Member Functions

KZ_NO_DISCARD int getNativeHandle () const noexcept
 Gets Qnx connection ID handle. More...
 
 QnxConnectionID (const QnxChannelID &channelId, int node, int pid, int flags)
 Constructor. More...
 
 QnxConnectionID (int connectionHandle)
 Constructor. More...
 
bool sendPulse (QnxPulseCode pulseCode) noexcept
 Sends a Qnx pulse code to the connection. More...
 
 ~QnxConnectionID ()
 Destructor. More...
 

Detailed Description

Class representing Qnx connection ID.

Constructor & Destructor Documentation

◆ QnxConnectionID() [1/2]

kanzi::qnx::QnxConnectionID::QnxConnectionID ( const QnxChannelID channelId,
int  node,
int  pid,
int  flags 
)
explicit

Constructor.

Parameters
channelIdThe channel ID to attach to.
nodeNode descriptor to use.
pidProcess ID for the connection.
flagsConnection flags for the connection.

◆ QnxConnectionID() [2/2]

kanzi::qnx::QnxConnectionID::QnxConnectionID ( int  connectionHandle)
explicit

Constructor.

Parameters
connectionHandleQnx connection handle.
Precondition
connectionHandle must be a valid connection handle.

◆ ~QnxConnectionID()

kanzi::qnx::QnxConnectionID::~QnxConnectionID ( )

Destructor.

Member Function Documentation

◆ sendPulse()

bool kanzi::qnx::QnxConnectionID::sendPulse ( QnxPulseCode  pulseCode)
noexcept

Sends a Qnx pulse code to the connection.

Return values
FalseErrno is set.
Returns
True on success, false on failure.

◆ getNativeHandle()

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

Gets Qnx connection ID handle.

Returns
The Qnx connection ID handle.

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