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

io.qt.core.QCalendarPermission Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Access the user's calendar

*

Java wrapper for Qt class QCalendarPermission

* @since This class was introduced in Qt 6.5. */ public class QCalendarPermission 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(QCalendarPermission.class); /** *

Java wrapper for Qt enum QCalendarPermission::AccessMode

*/ public enum AccessMode implements QtByteEnumerator { /** *

Representing QCalendarPermission::ReadOnly

*/ ReadOnly((byte)0), /** *

Representing QCalendarPermission::ReadWrite

*/ ReadWrite((byte)1); static { QtJambi_LibraryUtilities.initialize(); } private AccessMode(byte value) { this.value = value; } /** * {@inheritDoc} */ @Override public byte value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull AccessMode resolve(byte value) { switch (value) { case 0: return ReadOnly; case 1: return ReadWrite; default: throw new QNoSuchEnumValueException(value); } } private final byte value; } /** *

See QCalendarPermission::QCalendarPermission()

*/ public QCalendarPermission(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QCalendarPermission instance); /** *

See QCalendarPermission::QCalendarPermission(QCalendarPermission)

* @param other */ public QCalendarPermission(io.qt.core.@NonNull QCalendarPermission other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QCalendarPermission instance, io.qt.core.QCalendarPermission other); /** *

See QCalendarPermission::accessMode()const

* @return */ @QtUninvokable public final io.qt.core.QCalendarPermission.@NonNull AccessMode accessMode(){ return io.qt.core.QCalendarPermission.AccessMode.resolve(accessMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native byte accessMode_native_constfct(long __this__nativeId); /** *

See QCalendarPermission::operator=(QCalendarPermission)

* @param other */ @QtUninvokable public final void assign(io.qt.core.@NonNull QCalendarPermission other){ assign_native_cref_QCalendarPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QCalendarPermission(long __this__nativeId, long other); /** *

See operator==(QCalendarPermission,QCalendarPermission)

* @param v2 * @return */ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QCalendarPermission v2){ return equals_native_cref_QCalendarPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native boolean equals_native_cref_QCalendarPermission(long __this__nativeId, long v2); /** *

See QCalendarPermission::setAccessMode(QCalendarPermission::AccessMode)

* @param mode */ @QtUninvokable public final void setAccessMode(io.qt.core.QCalendarPermission.@NonNull AccessMode mode){ setAccessMode_native_QCalendarPermission_AccessMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setAccessMode_native_QCalendarPermission_AccessMode(long __this__nativeId, byte mode); /** *

See QCalendarPermission::swap(QCalendarPermission&)

* @param other */ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QCalendarPermission other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QCalendarPermission(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QCalendarPermission(long __this__nativeId, long other); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QCalendarPermission(QPrivateConstructor p) { super(p); } /** *

See operator==(QCalendarPermission,QCalendarPermission)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.core.QCalendarPermission) { return equals((io.qt.core.QCalendarPermission) other); } return false; } /** * Returns the objects's hash code computed by qHash(QCalendarPermission). */ @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 QCalendarPermission::QCalendarPermission(QCalendarPermission)

*/ @QtUninvokable @Override public QCalendarPermission clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QCalendarPermission clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy