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

io.qt.webengine.core.QWebEngineUrlScheme Maven / Gradle / Ivy

Go to download

Provides public API shared by both modules {@code qtjambi.webenginequick} and {@code qtjambi.webenginewidgets}.

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


/**
 * 

Configures a custom URL scheme

*

Java wrapper for Qt class QWebEngineUrlScheme

*/ public class QWebEngineUrlScheme extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineUrlScheme.class); /** *

Java wrapper for Qt enum QWebEngineUrlScheme::Flag

* * @see Flags */ public enum Flag implements io.qt.QtFlagEnumerator { SecureScheme(1), LocalScheme(2), LocalAccessAllowed(4), NoAccessAllowed(8), ServiceWorkersAllowed(16), ViewSourceAllowed(32), ContentSecurityPolicyIgnored(64), CorsEnabled(128); private Flag(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public Flags asFlags() { return new Flags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public Flags combined(Flag e) { return new Flags(this, e); } /** * Creates a new {@link Flags} from the entries. * @param values entries * @return new flag */ public static Flags flags(Flag ... values) { return new Flags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Flag resolve(int value) { switch (value) { case 1: return SecureScheme; case 2: return LocalScheme; case 4: return LocalAccessAllowed; case 8: return NoAccessAllowed; case 16: return ServiceWorkersAllowed; case 32: return ViewSourceAllowed; case 64: return ContentSecurityPolicyIgnored; case 128: return CorsEnabled; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link Flag} */ public static final class Flags extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0x92d9bce6c929c1c6L; /** * Creates a new Flags where the flags in args are set. * @param args enum entries */ public Flags(Flag ... args){ super(args); } /** * Creates a new Flags with given value. * @param value */ public Flags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new Flags */ @Override public final Flags combined(Flag e){ return new Flags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final Flags setFlag(Flag e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final Flags setFlag(Flag e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this Flags. * @return array of enum entries */ @Override public final Flag[] flags(){ return super.flags(Flag.values()); } /** * {@inheritDoc} */ @Override public final Flags clone(){ return new Flags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(Flags other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QWebEngineUrlScheme::Syntax

*/ public enum Syntax implements io.qt.QtEnumerator { HostPortAndUserInformation(0), HostAndPort(1), Host(2), Path(3); private Syntax(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 Syntax resolve(int value) { switch (value) { case 0: return HostPortAndUserInformation; case 1: return HostAndPort; case 2: return Host; case 3: return Path; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QWebEngineUrlScheme::QWebEngineUrlScheme()

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

See QWebEngineUrlScheme::QWebEngineUrlScheme(QByteArray)

*/ public QWebEngineUrlScheme(io.qt.core.QByteArray name){ super((QPrivateConstructor)null); initialize_native(this, name); } private native static void initialize_native(QWebEngineUrlScheme instance, io.qt.core.QByteArray name); /** *

See QWebEngineUrlScheme::QWebEngineUrlScheme(QWebEngineUrlScheme)

*/ public QWebEngineUrlScheme(io.qt.webengine.core.QWebEngineUrlScheme that){ super((QPrivateConstructor)null); initialize_native(this, that); } private native static void initialize_native(QWebEngineUrlScheme instance, io.qt.webengine.core.QWebEngineUrlScheme that); /** *

See QWebEngineUrlScheme::defaultPort()const

*/ @io.qt.QtUninvokable public final int defaultPort(){ return defaultPort_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int defaultPort_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlScheme::flags()const

*/ @io.qt.QtUninvokable public final io.qt.webengine.core.QWebEngineUrlScheme.Flags flags(){ return new io.qt.webengine.core.QWebEngineUrlScheme.Flags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int flags_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlScheme::name()const

*/ @io.qt.QtUninvokable public final io.qt.core.QByteArray name(){ return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QByteArray name_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlScheme::operator=(QWebEngineUrlScheme)

*/ @io.qt.QtUninvokable public final void set(io.qt.webengine.core.QWebEngineUrlScheme that){ set_native_cref_QWebEngineUrlScheme(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(that)); } @io.qt.QtUninvokable private native void set_native_cref_QWebEngineUrlScheme(long __this__nativeId, long that); /** *

See QWebEngineUrlScheme::operator==(QWebEngineUrlScheme)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.webengine.core.QWebEngineUrlScheme that){ return operator_equal_native_cref_QWebEngineUrlScheme_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(that)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QWebEngineUrlScheme_constfct(long __this__nativeId, long that); /** *

See QWebEngineUrlScheme::setDefaultPort(int)

*/ @io.qt.QtUninvokable public final void setDefaultPort(int newValue){ setDefaultPort_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), newValue); } @io.qt.QtUninvokable private native void setDefaultPort_native_int(long __this__nativeId, int newValue); /** *

Overloaded function for {@link #setFlags(io.qt.webengine.core.QWebEngineUrlScheme.Flags)}.

*/ @io.qt.QtUninvokable public final void setFlags(io.qt.webengine.core.QWebEngineUrlScheme.Flag ... newValue){ setFlags(new io.qt.webengine.core.QWebEngineUrlScheme.Flags(newValue)); } /** *

See QWebEngineUrlScheme::setFlags(Flags)

*/ @io.qt.QtUninvokable public final void setFlags(io.qt.webengine.core.QWebEngineUrlScheme.Flags newValue){ setFlags_native_QFlags_QWebEngineUrlScheme_Flag_(QtJambi_LibraryUtilities.internal.nativeId(this), newValue.value()); } @io.qt.QtUninvokable private native void setFlags_native_QFlags_QWebEngineUrlScheme_Flag_(long __this__nativeId, int newValue); /** *

See QWebEngineUrlScheme::setName(QByteArray)

*/ @io.qt.QtUninvokable public final void setName(io.qt.core.QByteArray newValue){ setName_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(newValue)); } @io.qt.QtUninvokable private native void setName_native_cref_QByteArray(long __this__nativeId, long newValue); /** *

See QWebEngineUrlScheme::setSyntax(QWebEngineUrlScheme::Syntax)

*/ @io.qt.QtUninvokable public final void setSyntax(io.qt.webengine.core.QWebEngineUrlScheme.Syntax newValue){ setSyntax_native_QWebEngineUrlScheme_Syntax(QtJambi_LibraryUtilities.internal.nativeId(this), newValue.value()); } @io.qt.QtUninvokable private native void setSyntax_native_QWebEngineUrlScheme_Syntax(long __this__nativeId, int newValue); /** *

See QWebEngineUrlScheme::syntax()const

*/ @io.qt.QtUninvokable public final io.qt.webengine.core.QWebEngineUrlScheme.Syntax syntax(){ return io.qt.webengine.core.QWebEngineUrlScheme.Syntax.resolve(syntax_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int syntax_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlScheme::registerScheme(QWebEngineUrlScheme)

*/ public static void registerScheme(io.qt.webengine.core.QWebEngineUrlScheme scheme){ registerScheme_native_cref_QWebEngineUrlScheme(QtJambi_LibraryUtilities.internal.checkedNativeId(scheme)); } private native static void registerScheme_native_cref_QWebEngineUrlScheme(long scheme); /** *

See QWebEngineUrlScheme::schemeByName(QByteArray)

*/ public static io.qt.webengine.core.QWebEngineUrlScheme schemeByName(io.qt.core.QByteArray name){ return schemeByName_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(name)); } private native static io.qt.webengine.core.QWebEngineUrlScheme schemeByName_native_cref_QByteArray(long name); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QWebEngineUrlScheme(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.webengine.core.QWebEngineUrlScheme) { return operator_equal((io.qt.webengine.core.QWebEngineUrlScheme) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QWebEngineUrlScheme clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QWebEngineUrlScheme clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy