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

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

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

import io.qt.*;


/**
 * 

Enables the detection of proximity changes for a specified set of coordinates

*

Java wrapper for Qt class QGeoAreaMonitorSource

*/ public abstract class QGeoAreaMonitorSource extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcPositionInfoSource = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGeoAreaMonitorSource.class); @NativeAccess private static final class ConcreteWrapper extends QGeoAreaMonitorSource { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public java.util.@NonNull List activeMonitors(){ return activeMonitors_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.util.List activeMonitors_native_constfct(long __this__nativeId); @Override @QtUninvokable public java.util.@NonNull List activeMonitors(io.qt.positioning.@NonNull QGeoShape lookupArea){ return activeMonitors_native_cref_QGeoShape_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(lookupArea)); } @QtUninvokable private native java.util.List activeMonitors_native_cref_QGeoShape_constfct(long __this__nativeId, long lookupArea); @Override @QtUninvokable public io.qt.positioning.QGeoAreaMonitorSource.@NonNull Error error(){ return io.qt.positioning.QGeoAreaMonitorSource.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int error_native_constfct(long __this__nativeId); @Override @QtUninvokable public boolean requestUpdate(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor, io.qt.core.QMetaObject.@StrictNonNull AbstractSignal signal){ java.util.Objects.requireNonNull(signal, "Argument 'signal': null not expected."); return requestUpdate_native_cref_QGeoAreaMonitorInfo_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(monitor), signal); } @QtUninvokable private native boolean requestUpdate_native_cref_QGeoAreaMonitorInfo_const_char_ptr(long __this__nativeId, long monitor, io.qt.core.QMetaObject.AbstractSignal signal); @Override @QtUninvokable public boolean startMonitoring(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor){ return startMonitoring_native_cref_QGeoAreaMonitorInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(monitor)); } @QtUninvokable private native boolean startMonitoring_native_cref_QGeoAreaMonitorInfo(long __this__nativeId, long monitor); @Override @QtUninvokable public boolean stopMonitoring(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor){ return stopMonitoring_native_cref_QGeoAreaMonitorInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(monitor)); } @QtUninvokable private native boolean stopMonitoring_native_cref_QGeoAreaMonitorInfo(long __this__nativeId, long monitor); @Override @QtUninvokable public io.qt.positioning.QGeoAreaMonitorSource.@NonNull AreaMonitorFeatures supportedAreaMonitorFeatures(){ return new io.qt.positioning.QGeoAreaMonitorSource.AreaMonitorFeatures(supportedAreaMonitorFeatures_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int supportedAreaMonitorFeatures_native_constfct(long __this__nativeId); } /** *

Java wrapper for Qt enum QGeoAreaMonitorSource::AreaMonitorFeature

* * @see AreaMonitorFeatures */ public enum AreaMonitorFeature implements QtFlagEnumerator { /** *

Representing QGeoAreaMonitorSource::PersistentAreaMonitorFeature

*/ PersistentAreaMonitorFeature(1), /** *

Representing QGeoAreaMonitorSource::AnyAreaMonitorFeature

*/ AnyAreaMonitorFeature(-1); static { QtJambi_LibraryUtilities.initialize(); } private AreaMonitorFeature(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull AreaMonitorFeatures asFlags() { return new AreaMonitorFeatures(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull AreaMonitorFeatures combined(@NonNull AreaMonitorFeature e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull AreaMonitorFeatures cleared(@NonNull AreaMonitorFeature e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link AreaMonitorFeatures} from the entries. * @param values entries * @return new flag */ public static @NonNull AreaMonitorFeatures flags(@Nullable AreaMonitorFeature @NonNull... values) { return new AreaMonitorFeatures(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull AreaMonitorFeature resolve(int value) { switch (value) { case 1: return PersistentAreaMonitorFeature; case -1: return AnyAreaMonitorFeature; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link AreaMonitorFeature} */ public static final class AreaMonitorFeatures extends QFlags implements Comparable { private static final long serialVersionUID = 0x9ee28d0e120ae4b4L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new AreaMonitorFeatures where the flags in args are set. * @param args enum entries */ public AreaMonitorFeatures(@Nullable AreaMonitorFeature @NonNull... args){ super(args); } /** * Creates a new AreaMonitorFeatures with given value. * @param value */ public AreaMonitorFeatures(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new AreaMonitorFeatures */ @Override public final @NonNull AreaMonitorFeatures combined(@StrictNonNull AreaMonitorFeature e){ return new AreaMonitorFeatures(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull AreaMonitorFeatures setFlag(@Nullable AreaMonitorFeature e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull AreaMonitorFeatures setFlag(@Nullable AreaMonitorFeature e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this AreaMonitorFeatures. * @return array of enum entries */ @Override public final @NonNull AreaMonitorFeature @NonNull[] flags(){ return super.flags(AreaMonitorFeature.values()); } /** * {@inheritDoc} */ @Override public final @NonNull AreaMonitorFeatures clone(){ return new AreaMonitorFeatures(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull AreaMonitorFeatures other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QGeoAreaMonitorSource::Error

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

Representing QGeoAreaMonitorSource::AccessError

*/ AccessError(0), /** *

Representing QGeoAreaMonitorSource::InsufficientPositionInfo

*/ InsufficientPositionInfo(1), /** *

Representing QGeoAreaMonitorSource::UnknownSourceError

*/ UnknownSourceError(2), /** *

Representing QGeoAreaMonitorSource::NoError

*/ NoError(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 InsufficientPositionInfo; case 2: return UnknownSourceError; case 3: return NoError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QGeoAreaMonitorSource::areaEntered(QGeoAreaMonitorInfo,QGeoPositionInfo)

*/ public final @NonNull Signal2 areaEntered = new Signal2<>(); /** *

See QGeoAreaMonitorSource::areaExited(QGeoAreaMonitorInfo,QGeoPositionInfo)

*/ public final @NonNull Signal2 areaExited = new Signal2<>(); /** *

See QGeoAreaMonitorSource::errorOccurred(QGeoAreaMonitorSource::Error)

*/ public final @NonNull Signal1 errorOccurred = new Signal1<>(); /** *

See QGeoAreaMonitorSource::monitorExpired(QGeoAreaMonitorInfo)

*/ public final @NonNull Signal1 monitorExpired = new Signal1<>(); /** *

See QGeoAreaMonitorSource::QGeoAreaMonitorSource(QObject*)

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

See QGeoAreaMonitorSource::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 QGeoAreaMonitorSource::activeMonitors()const

*/ @QtUninvokable public abstract java.util.@NonNull List activeMonitors(); @QtUninvokable private native java.util.List activeMonitors_native_constfct(long __this__nativeId); /** *

See QGeoAreaMonitorSource::activeMonitors(QGeoShape)const

*/ @QtUninvokable public abstract java.util.@NonNull List activeMonitors(io.qt.positioning.@NonNull QGeoShape lookupArea); @QtUninvokable private native java.util.List activeMonitors_native_cref_QGeoShape_constfct(long __this__nativeId, long lookupArea); /** *

See QGeoAreaMonitorSource::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 QGeoAreaMonitorSource::error()const

*/ @QtUninvokable public abstract io.qt.positioning.QGeoAreaMonitorSource.@NonNull Error error(); @QtUninvokable private native int error_native_constfct(long __this__nativeId); /** *

See QGeoAreaMonitorSource::positionInfoSource()const

*/ @QtUninvokable public io.qt.positioning.@Nullable QGeoPositionInfoSource positionInfoSource(){ return positionInfoSource_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.positioning.QGeoPositionInfoSource positionInfoSource_native_constfct(long __this__nativeId); /** *

See QGeoAreaMonitorSource::requestUpdate(QGeoAreaMonitorInfo,const char*)

*/ @QtUninvokable public abstract boolean requestUpdate(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor, io.qt.core.QMetaObject.@StrictNonNull AbstractSignal signal); @QtUninvokable private native boolean requestUpdate_native_cref_QGeoAreaMonitorInfo_const_char_ptr(long __this__nativeId, long monitor, io.qt.core.QMetaObject.AbstractSignal signal); /** *

See QGeoAreaMonitorSource::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 QGeoAreaMonitorSource::setPositionInfoSource(QGeoPositionInfoSource*)

*/ @QtUninvokable public void setPositionInfoSource(io.qt.positioning.@Nullable QGeoPositionInfoSource source){ setPositionInfoSource_native_QGeoPositionInfoSource_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source)); __rcPositionInfoSource = source; } @QtUninvokable private native void setPositionInfoSource_native_QGeoPositionInfoSource_ptr(long __this__nativeId, long source); /** *

See QGeoAreaMonitorSource::startMonitoring(QGeoAreaMonitorInfo)

*/ @QtUninvokable public abstract boolean startMonitoring(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor); @QtUninvokable private native boolean startMonitoring_native_cref_QGeoAreaMonitorInfo(long __this__nativeId, long monitor); /** *

See QGeoAreaMonitorSource::stopMonitoring(QGeoAreaMonitorInfo)

*/ @QtUninvokable public abstract boolean stopMonitoring(io.qt.positioning.@NonNull QGeoAreaMonitorInfo monitor); @QtUninvokable private native boolean stopMonitoring_native_cref_QGeoAreaMonitorInfo(long __this__nativeId, long monitor); /** *

See QGeoAreaMonitorSource::supportedAreaMonitorFeatures()const

*/ @QtUninvokable public abstract io.qt.positioning.QGeoAreaMonitorSource.@NonNull AreaMonitorFeatures supportedAreaMonitorFeatures(); @QtUninvokable private native int supportedAreaMonitorFeatures_native_constfct(long __this__nativeId); /** *

See QGeoAreaMonitorSource::availableSources()

*/ public native static io.qt.core.@NonNull QStringList availableSources(); /** *

See QGeoAreaMonitorSource::createDefaultSource(QObject*)

*/ public static io.qt.positioning.@Nullable QGeoAreaMonitorSource createDefaultSource(io.qt.core.@Nullable QObject parent){ return createDefaultSource_native_QObject_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } private native static io.qt.positioning.QGeoAreaMonitorSource createDefaultSource_native_QObject_ptr(long parent); /** *

See QGeoAreaMonitorSource::createSource(QString,QObject*)

*/ public static io.qt.positioning.@Nullable QGeoAreaMonitorSource 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.QGeoAreaMonitorSource 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 QGeoAreaMonitorSource(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy