All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.sensors.QSensorManager Maven / Gradle / Ivy

There is a newer version: 6.7.2
Show newest version
package io.qt.sensors;

import io.qt.*;


/**
 * 

Handles registration and creation of sensor backends

*

Java wrapper for Qt class QSensorManager

*/ public class QSensorManager extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QSensorManager::QSensorManager()

*/ public QSensorManager(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QSensorManager instance); /** *

See QSensorManager::createBackend(QSensor*)

*/ public static io.qt.sensors.@Nullable QSensorBackend createBackend(io.qt.sensors.@Nullable QSensor sensor){ return createBackend_native_QSensor_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(sensor)); } private native static io.qt.sensors.QSensorBackend createBackend_native_QSensor_ptr(long sensor); /** *

See QSensorManager::isBackendRegistered(QByteArray,QByteArray)

*/ public static boolean isBackendRegistered(io.qt.core.@NonNull QByteArray type, io.qt.core.@NonNull QByteArray identifier){ return isBackendRegistered_native_cref_QByteArray_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(type), QtJambi_LibraryUtilities.internal.checkedNativeId(identifier)); } private native static boolean isBackendRegistered_native_cref_QByteArray_cref_QByteArray(long type, long identifier); /** *

See QSensorManager::registerBackend(QByteArray,QByteArray,QSensorBackendFactory*)

*/ public static void registerBackend(io.qt.core.@NonNull QByteArray type, io.qt.core.@NonNull QByteArray identifier, io.qt.sensors.@Nullable QSensorBackendFactory factory){ io.qt.core.QPair key = new io.qt.core.QPair<>(type, identifier); __rcBackends.put(key, factory); registerBackend_native_cref_QByteArray_cref_QByteArray_QSensorBackendFactory_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(type), QtJambi_LibraryUtilities.internal.checkedNativeId(identifier), QtJambi_LibraryUtilities.internal.checkedNativeId(factory)); } private native static void registerBackend_native_cref_QByteArray_cref_QByteArray_QSensorBackendFactory_ptr(long type, long identifier, long factory); /** *

See QSensorManager::setDefaultBackend(QByteArray,QByteArray)

*/ public static void setDefaultBackend(io.qt.core.@NonNull QByteArray type, io.qt.core.@NonNull QByteArray identifier){ setDefaultBackend_native_cref_QByteArray_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(type), QtJambi_LibraryUtilities.internal.checkedNativeId(identifier)); } private native static void setDefaultBackend_native_cref_QByteArray_cref_QByteArray(long type, long identifier); /** *

See QSensorManager::unregisterBackend(QByteArray,QByteArray)

*/ public static void unregisterBackend(io.qt.core.@NonNull QByteArray type, io.qt.core.@NonNull QByteArray identifier){ io.qt.core.QPair key = new io.qt.core.QPair<>(type, identifier); __rcBackends.remove(key); unregisterBackend_native_cref_QByteArray_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(type), QtJambi_LibraryUtilities.internal.checkedNativeId(identifier)); } private native static void unregisterBackend_native_cref_QByteArray_cref_QByteArray(long type, long identifier); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QSensorManager(QPrivateConstructor p) { super(p); } private final static java.util.Map,QSensorBackendFactory> __rcBackends = java.util.Collections.synchronizedMap(new java.util.HashMap<>()); /** *

Overloaded function for {@link #isBackendRegistered(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static boolean isBackendRegistered(byte @NonNull[] type, io.qt.core.@NonNull QByteArray identifier) { return isBackendRegistered(new io.qt.core.QByteArray(type), identifier); } /** *

Overloaded function for {@link #isBackendRegistered(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static boolean isBackendRegistered(io.qt.core.@NonNull QByteArray type, byte @NonNull[] identifier) { return isBackendRegistered(type, new io.qt.core.QByteArray(identifier)); } /** *

Overloaded function for {@link #isBackendRegistered(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static boolean isBackendRegistered(byte @NonNull[] type, byte @NonNull[] identifier) { return isBackendRegistered(new io.qt.core.QByteArray(type), new io.qt.core.QByteArray(identifier)); } /** *

Overloaded function for {@link #registerBackend(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.sensors.QSensorBackendFactory)}.

*/ public static void registerBackend(byte @NonNull[] type, io.qt.core.@NonNull QByteArray identifier, io.qt.sensors.@Nullable QSensorBackendFactory factory) { registerBackend(new io.qt.core.QByteArray(type), identifier, factory); } /** *

Overloaded function for {@link #registerBackend(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.sensors.QSensorBackendFactory)}.

*/ public static void registerBackend(io.qt.core.@NonNull QByteArray type, byte @NonNull[] identifier, io.qt.sensors.@Nullable QSensorBackendFactory factory) { registerBackend(type, new io.qt.core.QByteArray(identifier), factory); } /** *

Overloaded function for {@link #registerBackend(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.sensors.QSensorBackendFactory)}.

*/ public static void registerBackend(byte @NonNull[] type, byte @NonNull[] identifier, io.qt.sensors.@Nullable QSensorBackendFactory factory) { registerBackend(new io.qt.core.QByteArray(type), new io.qt.core.QByteArray(identifier), factory); } /** *

Overloaded function for {@link #setDefaultBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void setDefaultBackend(byte @NonNull[] type, io.qt.core.@NonNull QByteArray identifier) { setDefaultBackend(new io.qt.core.QByteArray(type), identifier); } /** *

Overloaded function for {@link #setDefaultBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void setDefaultBackend(io.qt.core.@NonNull QByteArray type, byte @NonNull[] identifier) { setDefaultBackend(type, new io.qt.core.QByteArray(identifier)); } /** *

Overloaded function for {@link #setDefaultBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void setDefaultBackend(byte @NonNull[] type, byte @NonNull[] identifier) { setDefaultBackend(new io.qt.core.QByteArray(type), new io.qt.core.QByteArray(identifier)); } /** *

Overloaded function for {@link #unregisterBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void unregisterBackend(byte @NonNull[] type, io.qt.core.@NonNull QByteArray identifier) { unregisterBackend(new io.qt.core.QByteArray(type), identifier); } /** *

Overloaded function for {@link #unregisterBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void unregisterBackend(io.qt.core.@NonNull QByteArray type, byte @NonNull[] identifier) { unregisterBackend(type, new io.qt.core.QByteArray(identifier)); } /** *

Overloaded function for {@link #unregisterBackend(io.qt.core.QByteArray, io.qt.core.QByteArray)}.

*/ public static void unregisterBackend(byte @NonNull[] type, byte @NonNull[] identifier) { unregisterBackend(new io.qt.core.QByteArray(type), new io.qt.core.QByteArray(identifier)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy