io.qt.positioning.QGeoSatelliteInfoSource Maven / Gradle / Ivy
Show all versions of qtjambi-positioning Show documentation
package io.qt.positioning;
import io.qt.*;
/**
* Abstract base class for the distribution of satellite information updates
* Java wrapper for Qt class QGeoSatelliteInfoSource
*/
public abstract class QGeoSatelliteInfoSource 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(QGeoSatelliteInfoSource.class);
@NativeAccess
private static final class ConcreteWrapper extends QGeoSatelliteInfoSource {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
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);
@Override
@QtUninvokable
public int minimumUpdateInterval(){
return minimumUpdateInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int minimumUpdateInterval_native_constfct(long __this__nativeId);
@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);
@Override
public void startUpdates(){
startUpdates_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void startUpdates_native(long __this__nativeId);
@Override
public void stopUpdates(){
stopUpdates_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void stopUpdates_native(long __this__nativeId);
}
/**
* Java wrapper for Qt enum QGeoSatelliteInfoSource::Error
*/
public enum Error implements QtEnumerator {
/**
* Representing QGeoSatelliteInfoSource:: AccessError
*/
AccessError(0),
/**
* Representing QGeoSatelliteInfoSource:: ClosedError
*/
ClosedError(1),
/**
* Representing QGeoSatelliteInfoSource:: NoError
*/
NoError(2),
/**
* Representing QGeoSatelliteInfoSource:: UnknownSourceError
*/
UnknownSourceError(-1),
/**
* Representing QGeoSatelliteInfoSource:: UpdateTimeoutError
*/
UpdateTimeoutError(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private Error(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 Error resolve(int value) {
switch (value) {
case 0: return AccessError;
case 1: return ClosedError;
case 2: return NoError;
case -1: return UnknownSourceError;
case 3: return UpdateTimeoutError;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QGeoSatelliteInfoSource:: errorOccurred(QGeoSatelliteInfoSource::Error)
*/
public final @NonNull Signal1 errorOccurred = new Signal1<>();
/**
* See QGeoSatelliteInfoSource:: satellitesInUseUpdated(QList<QGeoSatelliteInfo>)
*/
public final @NonNull Signal1> satellitesInUseUpdated = new Signal1<>();
/**
* See QGeoSatelliteInfoSource:: satellitesInViewUpdated(QList<QGeoSatelliteInfo>)
*/
public final @NonNull Signal1> satellitesInViewUpdated = new Signal1<>();
/**
* See QGeoSatelliteInfoSource:: QGeoSatelliteInfoSource(QObject*)
*/
public QGeoSatelliteInfoSource(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QGeoSatelliteInfoSource instance, io.qt.core.QObject parent);
/**
* See QGeoSatelliteInfoSource:: bindableUpdateInterval()
*/
@QtPropertyBindable(name="updateInterval")
@QtUninvokable
public final io.qt.core.@NonNull QIntBindable bindableUpdateInterval(){
return bindableUpdateInterval_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QIntBindable bindableUpdateInterval_native(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: sourceName()const
*/
@QtUninvokable
public final java.lang.@NonNull String sourceName(){
return sourceName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String sourceName_native_constfct(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: updateInterval()const
*/
@QtPropertyReader(name="updateInterval")
@QtUninvokable
public final int updateInterval(){
return updateInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int updateInterval_native_constfct(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: backendProperty(QString)const
*/
@QtUninvokable
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
public abstract io.qt.positioning.QGeoSatelliteInfoSource.@NonNull Error error();
@QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: minimumUpdateInterval()const
*/
@QtPropertyReader(name="minimumUpdateInterval")
@QtUninvokable
public abstract int minimumUpdateInterval();
@QtUninvokable
private native int minimumUpdateInterval_native_constfct(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: requestUpdate(int)
*/
public abstract void requestUpdate(int timeout);
private native void requestUpdate_native_int(long __this__nativeId, int timeout);
/**
* See QGeoSatelliteInfoSource:: setBackendProperty(QString, QVariant)
*/
@QtUninvokable
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)
*/
@QtPropertyWriter(name="updateInterval")
@QtUninvokable
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()
*/
public abstract void startUpdates();
private native void startUpdates_native(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: stopUpdates()
*/
public abstract void stopUpdates();
private native void stopUpdates_native(long __this__nativeId);
/**
* See QGeoSatelliteInfoSource:: availableSources()
*/
public native static io.qt.core.@NonNull QStringList availableSources();
/**
* See QGeoSatelliteInfoSource:: createDefaultSource(QVariantMap, QObject*)
*/
public static io.qt.positioning.@Nullable QGeoSatelliteInfoSource createDefaultSource(java.util.@NonNull Map parameters, io.qt.core.@Nullable QObject parent){
return createDefaultSource_native_cref_QMap_QObject_ptr(parameters, QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
private native static io.qt.positioning.QGeoSatelliteInfoSource createDefaultSource_native_cref_QMap_QObject_ptr(java.util.Map parameters, long parent);
/**
* See QGeoSatelliteInfoSource:: createDefaultSource(QObject*)
*/
public static io.qt.positioning.@Nullable QGeoSatelliteInfoSource createDefaultSource(io.qt.core.@Nullable QObject parent){
return createDefaultSource_native_QObject_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
private native static io.qt.positioning.QGeoSatelliteInfoSource createDefaultSource_native_QObject_ptr(long parent);
/**
* See QGeoSatelliteInfoSource:: createSource(QString, QVariantMap, QObject*)
*/
public static io.qt.positioning.@Nullable QGeoSatelliteInfoSource createSource(java.lang.@NonNull String sourceName, java.util.@NonNull Map parameters, io.qt.core.@Nullable QObject parent){
return createSource_native_cref_QString_cref_QMap_QObject_ptr(sourceName, parameters, QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
private native static io.qt.positioning.QGeoSatelliteInfoSource createSource_native_cref_QString_cref_QMap_QObject_ptr(java.lang.String sourceName, java.util.Map parameters, long parent);
/**
* See QGeoSatelliteInfoSource:: createSource(QString, QObject*)
*/
public static io.qt.positioning.@Nullable QGeoSatelliteInfoSource createSource(java.lang.@NonNull String sourceName, io.qt.core.@Nullable QObject parent){
return createSource_native_cref_QString_QObject_ptr(sourceName, QtJambi_LibraryUtilities.internal.checkedNativeId(parent));
}
private native static io.qt.positioning.QGeoSatelliteInfoSource createSource_native_cref_QString_QObject_ptr(java.lang.String sourceName, long parent);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGeoSatelliteInfoSource(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #updateInterval()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getUpdateInterval() {
return updateInterval();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #minimumUpdateInterval()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getMinimumUpdateInterval() {
return minimumUpdateInterval();
}
/**
* Overloaded function for {@link #requestUpdate(int)}
* with timeout = 0
.
*/
public final void requestUpdate() {
requestUpdate((int)0);
}
}