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

io.qt.dbus.QDBusContext Maven / Gradle / Ivy

There is a newer version: 6.7.2
Show newest version
package io.qt.dbus;

import io.qt.*;


/**
 * 

Allows slots to determine the D-Bus context of the calls

*

Java wrapper for Qt class QDBusContext

*/ public interface QDBusContext extends QtObjectInterface { /** * @hidden *

Implementor class for interface {@link io.qt.dbus.QDBusContext}

*/ public static class Impl extends QtObject implements io.qt.dbus.QDBusContext, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QDBusContext::QDBusContext()

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

See QDBusContext::QDBusContext(QDBusContext)

*/ public Impl(io.qt.dbus.@StrictNonNull QDBusContext other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QDBusContext instance, io.qt.dbus.QDBusContext other); /** *

See QDBusContext::calledFromDBus()const

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

See QDBusContext::connection()const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusConnection connection(){ QDBusContext.Impl.checkCalledFromDBus(this); return connection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.dbus.QDBusConnection connection_native_constfct(long __this__nativeId); /** *

See QDBusContext::isDelayedReply()const

*/ @QtUninvokable public final boolean isDelayedReply(){ QDBusContext.Impl.checkCalledFromDBus(this); return isDelayedReply_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean isDelayedReply_native_constfct(long __this__nativeId); /** *

See QDBusContext::message()const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage message(){ QDBusContext.Impl.checkCalledFromDBus(this); return message_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.dbus.QDBusMessage message_native_constfct(long __this__nativeId); /** *

See QDBusContext::sendErrorReply(QDBusError::ErrorType,QString)const

*/ @QtUninvokable public final void sendErrorReply(io.qt.dbus.QDBusError.@NonNull ErrorType type, java.lang.@NonNull String msg){ QDBusContext.Impl.checkCalledFromDBus(this); sendErrorReply_native_QDBusError_ErrorType_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value(), msg); } private native static void sendErrorReply_native_QDBusError_ErrorType_cref_QString_constfct(long __this__nativeId, int type, java.lang.String msg); /** *

See QDBusContext::sendErrorReply(QString,QString)const

*/ @QtUninvokable public final void sendErrorReply(java.lang.@NonNull String name, java.lang.@NonNull String msg){ QDBusContext.Impl.checkCalledFromDBus(this); sendErrorReply_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, msg); } private native static void sendErrorReply_native_cref_QString_cref_QString_constfct(long __this__nativeId, java.lang.String name, java.lang.String msg); /** *

See QDBusContext::setDelayedReply(bool)const

*/ @QtUninvokable public final void setDelayedReply(boolean enable){ QDBusContext.Impl.checkCalledFromDBus(this); setDelayedReply_native_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } private native static void setDelayedReply_native_bool_constfct(long __this__nativeId, boolean enable); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Impl(QPrivateConstructor p) { super(p); } private static void checkCalledFromDBus(QDBusContext instance){ if(!instance.calledFromDBus()) throw new IllegalStateException("QDBusContext has not ben called from DBus."); } /** *

Creates and returns a copy of this object.

See QDBusContext::QDBusContext(QDBusContext)

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

Overloaded function for {@link #sendErrorReply(io.qt.dbus.QDBusError.ErrorType, java.lang.String)} * with msg = (String)null.

*/ @QtUninvokable public final void sendErrorReply(io.qt.dbus.QDBusError.@NonNull ErrorType type) { sendErrorReply(type, (String)null); } /** *

Overloaded function for {@link #sendErrorReply(java.lang.String, java.lang.String)} * with msg = (String)null.

*/ @QtUninvokable public final void sendErrorReply(java.lang.@NonNull String name) { sendErrorReply(name, (String)null); } } /** *

See QDBusContext::calledFromDBus()const

*/ @QtDeclaredFinal @QtUninvokable public default boolean calledFromDBus(){ return Impl.calledFromDBus_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QDBusContext::connection()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.dbus.@NonNull QDBusConnection connection(){ QDBusContext.Impl.checkCalledFromDBus(this); return Impl.connection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QDBusContext::isDelayedReply()const

*/ @QtDeclaredFinal @QtUninvokable public default boolean isDelayedReply(){ QDBusContext.Impl.checkCalledFromDBus(this); return Impl.isDelayedReply_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QDBusContext::message()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.dbus.@NonNull QDBusMessage message(){ QDBusContext.Impl.checkCalledFromDBus(this); return Impl.message_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QDBusContext::sendErrorReply(QDBusError::ErrorType,QString)const

*/ @QtDeclaredFinal @QtUninvokable public default void sendErrorReply(io.qt.dbus.QDBusError.@NonNull ErrorType type, java.lang.@NonNull String msg){ QDBusContext.Impl.checkCalledFromDBus(this); Impl.sendErrorReply_native_QDBusError_ErrorType_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value(), msg); } /** *

See QDBusContext::sendErrorReply(QString,QString)const

*/ @QtDeclaredFinal @QtUninvokable public default void sendErrorReply(java.lang.@NonNull String name, java.lang.@NonNull String msg){ QDBusContext.Impl.checkCalledFromDBus(this); Impl.sendErrorReply_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, msg); } /** *

See QDBusContext::setDelayedReply(bool)const

*/ @QtDeclaredFinal @QtUninvokable public default void setDelayedReply(boolean enable){ QDBusContext.Impl.checkCalledFromDBus(this); Impl.setDelayedReply_native_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } /** *

Overloaded function for {@link #sendErrorReply(io.qt.dbus.QDBusError.ErrorType, java.lang.String)} * with msg = (String)null.

*/ @QtDeclaredFinal @QtUninvokable public default void sendErrorReply(io.qt.dbus.QDBusError.@NonNull ErrorType type) { sendErrorReply(type, (String)null); } /** *

Overloaded function for {@link #sendErrorReply(java.lang.String, java.lang.String)} * with msg = (String)null.

*/ @QtDeclaredFinal @QtUninvokable public default void sendErrorReply(java.lang.@NonNull String name) { sendErrorReply(name, (String)null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy