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

io.qt.positioning.QNmeaSatelliteInfoSource Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.positioning;

import io.qt.*;


/**
 * 

Satellite information using an NMEA data source

*

Java wrapper for Qt class QNmeaSatelliteInfoSource

*/ public class QNmeaSatelliteInfoSource extends io.qt.positioning.QGeoSatelliteInfoSource { @QtPropertyMember(enabled=false) private Object __rcDevice = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QNmeaSatelliteInfoSource.class); /** *

Java wrapper for Qt enum QNmeaSatelliteInfoSource::SatelliteInfoParseStatus

*/ @QtUnlistedEnum protected enum SatelliteInfoParseStatus implements QtEnumerator { /** *

Representing QNmeaSatelliteInfoSource::NotParsed

*/ NotParsed(0), /** *

Representing QNmeaSatelliteInfoSource::PartiallyParsed

*/ PartiallyParsed(1), /** *

Representing QNmeaSatelliteInfoSource::FullyParsed

*/ FullyParsed(2); static { QtJambi_LibraryUtilities.initialize(); } private SatelliteInfoParseStatus(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SatelliteInfoParseStatus resolve(int value) { switch (value) { case 0: return NotParsed; case 1: return PartiallyParsed; case 2: return FullyParsed; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QNmeaSatelliteInfoSource::UpdateMode

*/ @QtUnlistedEnum public enum UpdateMode implements QtEnumerator { /** *

Representing QNmeaSatelliteInfoSource::UpdateMode::RealTimeMode

*/ RealTimeMode(1), /** *

Representing QNmeaSatelliteInfoSource::UpdateMode::SimulationMode

*/ SimulationMode(2); static { QtJambi_LibraryUtilities.initialize(); } private UpdateMode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull UpdateMode resolve(int value) { switch (value) { case 1: return RealTimeMode; case 2: return SimulationMode; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QNmeaSatelliteInfoSource::QNmeaSatelliteInfoSource(QNmeaSatelliteInfoSource::UpdateMode,QObject*)

*/ public QNmeaSatelliteInfoSource(io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull UpdateMode mode, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, mode, parent); } private native static void initialize_native(QNmeaSatelliteInfoSource instance, io.qt.positioning.QNmeaSatelliteInfoSource.UpdateMode mode, io.qt.core.QObject parent); /** *

See QNmeaSatelliteInfoSource::device()const

*/ @QtUninvokable public final io.qt.core.@Nullable QIODevice device(){ return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIODevice device_native_constfct(long __this__nativeId); /** *

See QNmeaSatelliteInfoSource::parseSatelliteInfoFromNmea(QByteArrayView,QList<QGeoSatelliteInfo>&,QGeoSatelliteInfo::SatelliteSystem&)

*/ @QtUninvokable protected final io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull SatelliteInfoParseStatus parseSatelliteInfoFromNmea(io.qt.core.@NonNull QByteArrayView data, java.util.@NonNull Collection infos, io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem @StrictNonNull[] system){ java.util.Objects.requireNonNull(system, "Argument 'system': null not expected."); if(system.length < 1) throw new IllegalArgumentException("Argument 'system': Wrong number of elements in array. Found: " + system.length + ", expected: 1"); return io.qt.positioning.QNmeaSatelliteInfoSource.SatelliteInfoParseStatus.resolve(parseSatelliteInfoFromNmea_native_QByteArrayView_ref_QList_ref_QGeoSatelliteInfo_SatelliteSystem(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), infos, system)); } @QtUninvokable private native int parseSatelliteInfoFromNmea_native_QByteArrayView_ref_QList_ref_QGeoSatelliteInfo_SatelliteSystem(long __this__nativeId, long data, java.util.Collection infos, io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem[] system); /** *

See QNmeaSatelliteInfoSource::parseSatellitesInUseFromNmea(QByteArrayView,QList<int>&)

*/ @QtUninvokable protected final io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem parseSatellitesInUseFromNmea(io.qt.core.@NonNull QByteArrayView data, java.util.@NonNull Collection pnrsInUse){ return io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem.resolve(parseSatellitesInUseFromNmea_native_QByteArrayView_ref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), pnrsInUse)); } @QtUninvokable private native int parseSatellitesInUseFromNmea_native_QByteArrayView_ref_QList(long __this__nativeId, long data, java.util.Collection pnrsInUse); /** *

See QNmeaSatelliteInfoSource::setDevice(QIODevice*)

*/ @QtUninvokable public final void setDevice(io.qt.core.@Nullable QIODevice source){ setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source)); __rcDevice = source; } @QtUninvokable private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long source); /** *

See QNmeaSatelliteInfoSource::setError(QGeoSatelliteInfoSource::Error)

*/ @QtUninvokable protected final void setError(io.qt.positioning.QGeoSatelliteInfoSource.@NonNull Error satelliteError){ setError_native_QGeoSatelliteInfoSource_Error(QtJambi_LibraryUtilities.internal.nativeId(this), satelliteError.value()); } @QtUninvokable private native void setError_native_QGeoSatelliteInfoSource_Error(long __this__nativeId, int satelliteError); /** *

See QNmeaSatelliteInfoSource::updateMode()const

*/ @QtUninvokable public final io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull UpdateMode updateMode(){ return io.qt.positioning.QNmeaSatelliteInfoSource.UpdateMode.resolve(updateMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int updateMode_native_constfct(long __this__nativeId); /** *

See QGeoSatelliteInfoSource::backendProperty(QString)const

*/ @QtUninvokable @Override public java.lang.Object backendProperty(java.lang.@NonNull String name){ return backendProperty_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @QtUninvokable private native java.lang.Object backendProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String name); /** *

See QGeoSatelliteInfoSource::error()const

*/ @QtUninvokable @Override public io.qt.positioning.QGeoSatelliteInfoSource.@NonNull Error error(){ return io.qt.positioning.QGeoSatelliteInfoSource.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int error_native_constfct(long __this__nativeId); /** *

See QGeoSatelliteInfoSource::minimumUpdateInterval()const

*/ @QtUninvokable @Override public int minimumUpdateInterval(){ return minimumUpdateInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int minimumUpdateInterval_native_constfct(long __this__nativeId); /** *

See QNmeaSatelliteInfoSource::parseSatelliteInfoFromNmea(const char*,int,QList<QGeoSatelliteInfo>&,QGeoSatelliteInfo::SatelliteSystem&)

*/ @QtUninvokable protected io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull SatelliteInfoParseStatus parseSatelliteInfoFromNmea(java.nio.@StrictNonNull ByteBuffer data, java.util.@NonNull Collection infos, io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem @StrictNonNull[] system){ java.util.Objects.requireNonNull(data, "Argument 'data': null not expected."); java.util.Objects.requireNonNull(system, "Argument 'system': null not expected."); if(system.length < 1) throw new IllegalArgumentException("Argument 'system': Wrong number of elements in array. Found: " + system.length + ", expected: 1"); return io.qt.positioning.QNmeaSatelliteInfoSource.SatelliteInfoParseStatus.resolve(parseSatelliteInfoFromNmea_native_const_char_ptr_int_ref_QList_ref_QGeoSatelliteInfo_SatelliteSystem(QtJambi_LibraryUtilities.internal.nativeId(this), data, infos, system)); } @QtUninvokable private native int parseSatelliteInfoFromNmea_native_const_char_ptr_int_ref_QList_ref_QGeoSatelliteInfo_SatelliteSystem(long __this__nativeId, java.nio.ByteBuffer data, java.util.Collection infos, io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem[] system); /** *

See QNmeaSatelliteInfoSource::parseSatellitesInUseFromNmea(const char*,int,QList<int>&)

*/ @QtUninvokable protected io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem parseSatellitesInUseFromNmea(java.nio.@StrictNonNull ByteBuffer data, java.util.@NonNull Collection pnrsInUse){ java.util.Objects.requireNonNull(data, "Argument 'data': null not expected."); return io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem.resolve(parseSatellitesInUseFromNmea_native_const_char_ptr_int_ref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), data, pnrsInUse)); } @QtUninvokable private native int parseSatellitesInUseFromNmea_native_const_char_ptr_int_ref_QList(long __this__nativeId, java.nio.ByteBuffer data, java.util.Collection pnrsInUse); /** *

See QGeoSatelliteInfoSource::requestUpdate(int)

*/ @Override public void requestUpdate(int timeout){ requestUpdate_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timeout); } private native void requestUpdate_native_int(long __this__nativeId, int timeout); /** *

See QGeoSatelliteInfoSource::setBackendProperty(QString,QVariant)

*/ @QtUninvokable @Override public boolean setBackendProperty(java.lang.@NonNull String name, java.lang.Object value){ return setBackendProperty_native_cref_QString_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), name, value); } @QtUninvokable private native boolean setBackendProperty_native_cref_QString_cref_QVariant(long __this__nativeId, java.lang.String name, java.lang.Object value); /** *

See QGeoSatelliteInfoSource::setUpdateInterval(int)

*/ @QtUninvokable @Override public void setUpdateInterval(int msec){ setUpdateInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msec); } @QtUninvokable private native void setUpdateInterval_native_int(long __this__nativeId, int msec); /** *

See QGeoSatelliteInfoSource::startUpdates()

*/ @Override public void startUpdates(){ startUpdates_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void startUpdates_native(long __this__nativeId); /** *

See QGeoSatelliteInfoSource::stopUpdates()

*/ @Override public void stopUpdates(){ stopUpdates_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void stopUpdates_native(long __this__nativeId); /** *

Backend property name for data read rate in the SimulationMode. The value for this property is the integer number representing the amount of milliseconds between the subsequent reads. Use this parameter in the setBackendProperty() and backendProperty() methods

*

See QNmeaSatelliteInfoSource::SimulationUpdateInterval

*/ public native static void setSimulationUpdateInterval(java.lang.@NonNull String SimulationUpdateInterval); /** *

Backend property name for data read rate in the SimulationMode. The value for this property is the integer number representing the amount of milliseconds between the subsequent reads. Use this parameter in the setBackendProperty() and backendProperty() methods

*

See QNmeaSatelliteInfoSource::SimulationUpdateInterval

*/ public native static java.lang.@NonNull String SimulationUpdateInterval(); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QNmeaSatelliteInfoSource(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QNmeaSatelliteInfoSource(io.qt.positioning.QNmeaSatelliteInfoSource.UpdateMode, io.qt.core.QObject)} * with parent = null.

*/ public QNmeaSatelliteInfoSource(io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull UpdateMode mode) { this(mode, (io.qt.core.QObject)null); } /** *

Overloaded function for {@link #parseSatelliteInfoFromNmea(java.nio.ByteBuffer, java.util.Collection, io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem[])}.

*/ @QtUninvokable protected final io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull SatelliteInfoParseStatus parseSatelliteInfoFromNmea(byte @StrictNonNull[] data, int offsetOfData, int size, java.util.@NonNull Collection infos, io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem @StrictNonNull[] system) { return parseSatelliteInfoFromNmea(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, size), infos, system); } /** *

Overloaded function for {@link #parseSatelliteInfoFromNmea(java.nio.ByteBuffer, java.util.Collection, io.qt.positioning.QGeoSatelliteInfo.SatelliteSystem[])}.

*/ @QtUninvokable protected final io.qt.positioning.QNmeaSatelliteInfoSource.@NonNull SatelliteInfoParseStatus parseSatelliteInfoFromNmea(byte @StrictNonNull[] data, java.util.@NonNull Collection infos, io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem @StrictNonNull[] system) { return parseSatelliteInfoFromNmea(data==null ? null : java.nio.ByteBuffer.wrap(data), infos, system); } /** *

Overloaded function for {@link #parseSatellitesInUseFromNmea(java.nio.ByteBuffer, java.util.Collection)}.

*/ @QtUninvokable protected final io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem parseSatellitesInUseFromNmea(byte @StrictNonNull[] data, int offsetOfData, int size, java.util.@NonNull Collection pnrsInUse) { return parseSatellitesInUseFromNmea(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, size), pnrsInUse); } /** *

Overloaded function for {@link #parseSatellitesInUseFromNmea(java.nio.ByteBuffer, java.util.Collection)}.

*/ @QtUninvokable protected final io.qt.positioning.QGeoSatelliteInfo.@NonNull SatelliteSystem parseSatellitesInUseFromNmea(byte @StrictNonNull[] data, java.util.@NonNull Collection pnrsInUse) { return parseSatellitesInUseFromNmea(data==null ? null : java.nio.ByteBuffer.wrap(data), pnrsInUse); } /** * @hidden *

Kotlin property getter. In Java use {@link #SimulationUpdateInterval()} instead.

*/ public static java.lang.@NonNull String getSimulationUpdateInterval() { return SimulationUpdateInterval(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy