Kanzi 3.9.10
kanzi::qnx::QnxPropertyHost< Derived > Class Template Reference

An interface to access and set QNX properties. More...

#include <kanzi/core.ui/platform/windowing_ng/qnx_screen/qnx_screen_property_host.hpp>

Public Member Functions

KZ_NO_DISCARD optional< string > tryGetPropertyCv (size_t stringBufferSize, int propertyName) const noexcept
 Gets QNX property consisting of a string.
 
KZ_NO_DISCARD optional< vector< int > > tryGetPropertyIv (size_t returnValueCount, int propertyName) const noexcept
 Gets QNX property consisting of ints.
 
KZ_NO_DISCARD optional< inttryGetPropertyIvSingle (int propertyName) const noexcept
 Gets a QNX property consisting of a single int.
 
KZ_NO_DISCARD optional< vector< long long > > tryGetPropertyLlv (size_t returnValueCount, int propertyName) const noexcept
 Gets QNX property consisting of long longs.
 
KZ_NO_DISCARD optional< long longtryGetPropertyLlvSingle (int propertyName) const noexcept
 Gets a QNX property consisting of a single long long.
 
template<typename T >
KZ_NO_DISCARD optional< vector< T > > tryGetPropertyPv (size_t returnValueCount, int propertyName) const noexcept
 Gets QNX property consisting of pointers.
 
template<typename T >
KZ_NO_DISCARD optional< TtryGetPropertyPvSingle (int propertyName) const noexcept
 Gets a QNX property consisting of a single pointer.
 
bool trySetPropertyCv (int propertyName, string_view propertyValue) noexcept
 Sets QNX property consisting of a string.
 
bool trySetPropertyIv (int propertyName, int propertyValue) noexcept
 Sets QNX property consisting of a single int.
 
bool trySetPropertyIv (int propertyName, span< int > propertyValue) noexcept
 Sets QNX property consisting of ints.
 
bool trySetPropertyLlv (int propertyName, long long propertyValue) noexcept
 Sets QNX property consisting of a single long long.
 
bool trySetPropertyLlv (int propertyName, span< long long > propertyValue) noexcept
 Sets QNX property consisting of long longs.
 
bool trySetPropertyPv (int propertyName, span< void * > propertyValue) noexcept
 Sets QNX property consisting of pointers.
 
bool trySetPropertyPv (int propertyName, void *propertyValue) noexcept
 Sets QNX property consisting of a single pointer.
 

Detailed Description

template<typename Derived>
class kanzi::qnx::QnxPropertyHost< Derived >

An interface to access and set QNX properties.

Uses CRTP pattern. It is encouraged to derive from it and pass itself as a template parameter.

Template Parameters
DerivedCRTP derived class.
Since
Kanzi 3.9.10

Member Function Documentation

◆ tryGetPropertyIv()

template<typename Derived >
KZ_NO_DISCARD optional< vector< int > > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyIv ( size_t returnValueCount,
int propertyName ) const
noexcept

Gets QNX property consisting of ints.

Parameters
returnValueCountNumber of values to recieve.
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Vector of requested property values.

◆ tryGetPropertyIvSingle()

template<typename Derived >
KZ_NO_DISCARD optional< int > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyIvSingle ( int propertyName) const
noexcept

Gets a QNX property consisting of a single int.

Parameters
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Requested property.

◆ trySetPropertyIv() [1/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyIv ( int propertyName,
span< int > propertyValue )
noexcept

Sets QNX property consisting of ints.

Parameters
propertyNameQNX property name.
propertyValueSpan of values to set property to.
Returns
On success, true, otherwise false.

◆ trySetPropertyIv() [2/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyIv ( int propertyName,
int propertyValue )
noexcept

Sets QNX property consisting of a single int.

Parameters
propertyNameQNX property name.
propertyValueValue to set property to.
Returns
On success, true, otherwise false.

◆ tryGetPropertyPv()

template<typename Derived >
template<typename T >
KZ_NO_DISCARD optional< vector< T > > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyPv ( size_t returnValueCount,
int propertyName ) const
noexcept

Gets QNX property consisting of pointers.

Template Parameters
TPointer type to receive.
Parameters
returnValueCountNumber of values to recieve.
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Vector of requested property values.

◆ tryGetPropertyPvSingle()

template<typename Derived >
template<typename T >
KZ_NO_DISCARD optional< T > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyPvSingle ( int propertyName) const
noexcept

Gets a QNX property consisting of a single pointer.

Template Parameters
TPointer type to receive.
Parameters
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Requested property.

◆ trySetPropertyPv() [1/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyPv ( int propertyName,
span< void * > propertyValue )
noexcept

Sets QNX property consisting of pointers.

Parameters
propertyNameQNX property name.
propertyValueSpan of values to set property to.
Returns
On success, true, otherwise false.

◆ trySetPropertyPv() [2/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyPv ( int propertyName,
void * propertyValue )
noexcept

Sets QNX property consisting of a single pointer.

Parameters
propertyNameQNX property name.
propertyValueValue to set property to.
Returns
On success, true, otherwise false.

◆ tryGetPropertyCv()

template<typename Derived >
KZ_NO_DISCARD optional< string > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyCv ( size_t stringBufferSize,
int propertyName ) const
noexcept

Gets QNX property consisting of a string.

Note
If stringBufferSize is smaller than the requested string, the function truncates it.
Parameters
stringBufferSizeSize of the string to receive.
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Requested property.

◆ trySetPropertyCv()

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyCv ( int propertyName,
string_view propertyValue )
noexcept

Sets QNX property consisting of a string.

Parameters
propertyNameQNX property name.
propertyValueValue to set property to.
Returns
On success, true, otherwise false.

◆ tryGetPropertyLlv()

template<typename Derived >
KZ_NO_DISCARD optional< vector< long long > > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyLlv ( size_t returnValueCount,
int propertyName ) const
noexcept

Gets QNX property consisting of long longs.

Parameters
returnValueCountNumber of values to recieve.
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Vector of requested property values.

◆ tryGetPropertyLlvSingle()

template<typename Derived >
KZ_NO_DISCARD optional< long long > kanzi::qnx::QnxPropertyHost< Derived >::tryGetPropertyLlvSingle ( int propertyName) const
noexcept

Gets a QNX property consisting of a single long long.

Parameters
propertyNameQNX property name.
Return values
nulloptGetting the property failed.
Returns
Requested property.

◆ trySetPropertyLlv() [1/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyLlv ( int propertyName,
span< long long > propertyValue )
noexcept

Sets QNX property consisting of long longs.

Parameters
propertyNameQNX property name.
propertyValueSpan of values to set property to.
Returns
On success, true, otherwise false.

◆ trySetPropertyLlv() [2/2]

template<typename Derived >
bool kanzi::qnx::QnxPropertyHost< Derived >::trySetPropertyLlv ( int propertyName,
long long propertyValue )
noexcept

Sets QNX property consisting of a single long long.

Parameters
propertyNameQNX property name.
propertyValueValue to set property to.
Returns
On success, true, otherwise false.

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