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

io.qt.websockets.QWebSocketCorsAuthenticator Maven / Gradle / Ivy

The newest version!
package io.qt.websockets;

import io.qt.*;


/**
 * 

Authenticator object for Cross Origin Requests (CORS)

*

Java wrapper for Qt class QWebSocketCorsAuthenticator

*/ public class QWebSocketCorsAuthenticator extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QWebSocketCorsAuthenticator::QWebSocketCorsAuthenticator(QString)

* @param origin */ public QWebSocketCorsAuthenticator(java.lang.@NonNull String origin){ super((QPrivateConstructor)null); initialize_native(this, origin); } private native static void initialize_native(QWebSocketCorsAuthenticator instance, java.lang.String origin); /** *

See QWebSocketCorsAuthenticator::QWebSocketCorsAuthenticator(QWebSocketCorsAuthenticator)

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

See QWebSocketCorsAuthenticator::allowed()const

* @return */ @QtUninvokable public final boolean allowed(){ return allowed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean allowed_native_constfct(long __this__nativeId); /** *

See QWebSocketCorsAuthenticator::operator=(QWebSocketCorsAuthenticator)

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

See QWebSocketCorsAuthenticator::origin()const

* @return */ @QtUninvokable public final java.lang.@NonNull String origin(){ return origin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String origin_native_constfct(long __this__nativeId); /** *

See QWebSocketCorsAuthenticator::setAllowed(bool)

* @param allowed */ @QtUninvokable public final void setAllowed(boolean allowed){ setAllowed_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), allowed); } @QtUninvokable private native void setAllowed_native_bool(long __this__nativeId, boolean allowed); /** *

See QWebSocketCorsAuthenticator::swap(QWebSocketCorsAuthenticator&)

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

Creates and returns a copy of this object.

See QWebSocketCorsAuthenticator::QWebSocketCorsAuthenticator(QWebSocketCorsAuthenticator)

*/ @QtUninvokable @Override public QWebSocketCorsAuthenticator clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QWebSocketCorsAuthenticator clone_native(long __this_nativeId); /** * @deprecated Use {@link #assign(io.qt.websockets.QWebSocketCorsAuthenticator)} instead. */ @Deprecated @QtUninvokable public final void set(io.qt.websockets.@NonNull QWebSocketCorsAuthenticator other) { assign(other); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy