io.qt.sensors.QSensorBackend Maven / Gradle / Ivy
Show all versions of qtjambi-sensors Show documentation
package io.qt.sensors;
import io.qt.*;
/**
* Sensor implementation
* Java wrapper for Qt class QSensorBackend
*/
public abstract class QSensorBackend extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSensorBackend.class);
@NativeAccess
private static final class ConcreteWrapper extends QSensorBackend {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public void start(){
start_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void start_native(long __this__nativeId);
@Override
@QtUninvokable
public void stop(){
stop_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void stop_native(long __this__nativeId);
}
/**
* See QSensorBackend:: QSensorBackend(QSensor*, QObject*)
*/
public QSensorBackend(io.qt.sensors.@Nullable QSensor sensor, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, sensor, parent);
}
private native static void initialize_native(QSensorBackend instance, io.qt.sensors.QSensor sensor, io.qt.core.QObject parent);
/**
* See QSensorBackend:: addDataRate(qreal, qreal)
*/
@QtUninvokable
public final void addDataRate(double min, double max){
addDataRate_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), min, max);
}
@QtUninvokable
private native void addDataRate_native_qreal_qreal(long __this__nativeId, double min, double max);
/**
* See QSensorBackend:: addOutputRange(qreal, qreal, qreal)
*/
@QtUninvokable
public final void addOutputRange(double min, double max, double accuracy){
addOutputRange_native_qreal_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), min, max, accuracy);
}
@QtUninvokable
private native void addOutputRange_native_qreal_qreal_qreal(long __this__nativeId, double min, double max, double accuracy);
/**
* See QSensorBackend:: newReadingAvailable()
*/
@QtUninvokable
public final void newReadingAvailable(){
newReadingAvailable_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void newReadingAvailable_native(long __this__nativeId);
/**
* See QSensorBackend:: reading()const
*/
@QtUninvokable
public final io.qt.sensors.@Nullable QSensorReading reading(){
return reading_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.sensors.QSensorReading reading_native_constfct(long __this__nativeId);
/**
* See QSensorBackend:: sensor()const
*/
@QtUninvokable
public final io.qt.sensors.@Nullable QSensor sensor(){
return sensor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.sensors.QSensor sensor_native_constfct(long __this__nativeId);
/**
* See QSensorBackend:: sensorBusy(bool)
*/
@QtUninvokable
public final void sensorBusy(boolean busy){
sensorBusy_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), busy);
}
@QtUninvokable
private native void sensorBusy_native_bool(long __this__nativeId, boolean busy);
/**
* See QSensorBackend:: sensorError(int)
*/
@QtUninvokable
public final void sensorError(int error){
sensorError_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), error);
}
@QtUninvokable
private native void sensorError_native_int(long __this__nativeId, int error);
/**
* See QSensorBackend:: sensorStopped()
*/
@QtUninvokable
public final void sensorStopped(){
sensorStopped_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void sensorStopped_native(long __this__nativeId);
/**
* See QSensorBackend:: setDataRates(const QSensor*)
*/
@QtUninvokable
public final void setDataRates(io.qt.sensors.@Nullable QSensor otherSensor){
setDataRates_native_const_QSensor_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(otherSensor));
}
@QtUninvokable
private native void setDataRates_native_const_QSensor_ptr(long __this__nativeId, long otherSensor);
/**
* See QSensorBackend:: setDescription(QString)
*/
@QtUninvokable
public final void setDescription(java.lang.@NonNull String description){
setDescription_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), description);
}
@QtUninvokable
private native void setDescription_native_cref_QString(long __this__nativeId, java.lang.String description);
/**
* See QSensorBackend:: setReading<T>(T*)
*/
@QtUninvokable
public final @StrictNonNull T setReading(java.lang.@StrictNonNull Class readingClass){
java.util.Objects.requireNonNull(readingClass, "Argument 'readingClass': null not expected.");
return setReading_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), readingClass);
}
@QtUninvokable
private native T setReading_native_QObject_ptr(long __this__nativeId, java.lang.Class readingClass);
/**
* See QSensorBackend:: setReading<T>(T*)
*/
@QtUninvokable
public final @StrictNonNull T setReading(@StrictNonNull T readingClass){
java.util.Objects.requireNonNull(readingClass, "Argument 'readingClass': null not expected.");
return setReading_native_QSensorReading_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), readingClass);
}
@QtUninvokable
private native T setReading_native_QSensorReading_ptr(long __this__nativeId, T readingClass);
/**
* See QSensorBackend:: isFeatureSupported(QSensor::Feature)const
*/
@QtUninvokable
public boolean isFeatureSupported(io.qt.sensors.QSensor.@NonNull Feature feature){
return isFeatureSupported_native_QSensor_Feature_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), feature.value());
}
@QtUninvokable
private native boolean isFeatureSupported_native_QSensor_Feature_constfct(long __this__nativeId, int feature);
/**
*
*/
@QtUninvokable
public abstract void start();
@QtUninvokable
private native void start_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public abstract void stop();
@QtUninvokable
private native void stop_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSensorBackend(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QSensorBackend(io.qt.sensors.QSensor, io.qt.core.QObject)}
* with parent = null
.
*/
public QSensorBackend(io.qt.sensors.@Nullable QSensor sensor) {
this(sensor, (io.qt.core.QObject)null);
}
/**
* Overloaded function for {@link #sensorBusy(boolean)}
* with busy = true
.
*/
@QtUninvokable
public final void sensorBusy() {
sensorBusy((boolean)true);
}
}