io.qt.core.QLocationPermission Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Access the user's location
* Java wrapper for Qt class QLocationPermission
*/
public class QLocationPermission extends QPermission
implements java.lang.Cloneable
{
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(QLocationPermission.class);
/**
* Java wrapper for Qt enum QLocationPermission::Accuracy
*/
public enum Accuracy implements QtByteEnumerator {
/**
* Representing QLocationPermission:: Approximate
*/
Approximate((byte)0),
/**
* Representing QLocationPermission:: Precise
*/
Precise((byte)1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Accuracy(byte value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public byte value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Accuracy resolve(byte value) {
switch (value) {
case 0: return Approximate;
case 1: return Precise;
default: throw new QNoSuchEnumValueException(value);
}
}
private final byte value;
}
/**
* Java wrapper for Qt enum QLocationPermission::Availability
*/
public enum Availability implements QtByteEnumerator {
/**
* Representing QLocationPermission:: WhenInUse
*/
WhenInUse((byte)0),
/**
* Representing QLocationPermission:: Always
*/
Always((byte)1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Availability(byte value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public byte value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Availability resolve(byte value) {
switch (value) {
case 0: return WhenInUse;
case 1: return Always;
default: throw new QNoSuchEnumValueException(value);
}
}
private final byte value;
}
/**
* See QLocationPermission:: QLocationPermission()
*/
public QLocationPermission(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QLocationPermission instance);
/**
* See QLocationPermission:: QLocationPermission(QLocationPermission)
*/
public QLocationPermission(io.qt.core.@NonNull QLocationPermission other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QLocationPermission instance, io.qt.core.QLocationPermission other);
/**
* See QLocationPermission:: accuracy()const
*/
@QtUninvokable
public final io.qt.core.QLocationPermission.@NonNull Accuracy accuracy(){
return io.qt.core.QLocationPermission.Accuracy.resolve(accuracy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native byte accuracy_native_constfct(long __this__nativeId);
/**
* See QLocationPermission:: availability()const
*/
@QtUninvokable
public final io.qt.core.QLocationPermission.@NonNull Availability availability(){
return io.qt.core.QLocationPermission.Availability.resolve(availability_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native byte availability_native_constfct(long __this__nativeId);
/**
* See QLocationPermission:: operator=(QLocationPermission)
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QLocationPermission other){
assign_native_cref_QLocationPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QLocationPermission(long __this__nativeId, long other);
/**
* See operator==(QLocationPermission, QLocationPermission)
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QLocationPermission v2){
return equals_native_cref_QLocationPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@QtUninvokable
private native boolean equals_native_cref_QLocationPermission(long __this__nativeId, long v2);
/**
* See QLocationPermission:: setAccuracy(QLocationPermission::Accuracy)
*/
@QtUninvokable
public final void setAccuracy(io.qt.core.QLocationPermission.@NonNull Accuracy accuracy){
setAccuracy_native_QLocationPermission_Accuracy(QtJambi_LibraryUtilities.internal.nativeId(this), accuracy.value());
}
@QtUninvokable
private native void setAccuracy_native_QLocationPermission_Accuracy(long __this__nativeId, byte accuracy);
/**
* See QLocationPermission:: setAvailability(QLocationPermission::Availability)
*/
@QtUninvokable
public final void setAvailability(io.qt.core.QLocationPermission.@NonNull Availability availability){
setAvailability_native_QLocationPermission_Availability(QtJambi_LibraryUtilities.internal.nativeId(this), availability.value());
}
@QtUninvokable
private native void setAvailability_native_QLocationPermission_Availability(long __this__nativeId, byte availability);
/**
* See QLocationPermission:: swap(QLocationPermission&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QLocationPermission other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QLocationPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QLocationPermission(long __this__nativeId, long other);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLocationPermission(QPrivateConstructor p) { super(p); }
/**
* See operator==(QLocationPermission, QLocationPermission)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QLocationPermission) {
return equals((io.qt.core.QLocationPermission) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QLocationPermission)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QLocationPermission:: QLocationPermission(QLocationPermission)
*/
@QtUninvokable
@Override
public QLocationPermission clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QLocationPermission clone_native(long __this_nativeId);
}