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

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

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

import io.qt.*;


/**
 * 

Represents one message sent or received over the D-Bus bus

*

Java wrapper for Qt class QDBusMessage

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

Java wrapper for Qt enum QDBusMessage::MessageType

*/ public enum MessageType implements QtEnumerator { /** *

Representing QDBusMessage::InvalidMessage

*/ InvalidMessage(0), /** *

Representing QDBusMessage::MethodCallMessage

*/ MethodCallMessage(1), /** *

Representing QDBusMessage::ReplyMessage

*/ ReplyMessage(2), /** *

Representing QDBusMessage::ErrorMessage

*/ ErrorMessage(3), /** *

Representing QDBusMessage::SignalMessage

*/ SignalMessage(4); static { QtJambi_LibraryUtilities.initialize(); } private MessageType(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 @NonNull MessageType resolve(int value) { switch (value) { case 0: return InvalidMessage; case 1: return MethodCallMessage; case 2: return ReplyMessage; case 3: return ErrorMessage; case 4: return SignalMessage; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QDBusMessage::QDBusMessage()

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

See QDBusMessage::QDBusMessage(QDBusMessage)

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

See QDBusMessage::arguments()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList arguments(){ return arguments_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList arguments_native_constfct(long __this__nativeId); /** *

See QDBusMessage::autoStartService()const

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

See QDBusMessage::createErrorReply(QDBusError)const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createErrorReply(io.qt.dbus.@NonNull QDBusError err){ return createErrorReply_native_cref_QDBusError_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(err)); } @QtUninvokable private native io.qt.dbus.QDBusMessage createErrorReply_native_cref_QDBusError_constfct(long __this__nativeId, long err); /** *

See QDBusMessage::createErrorReply(QDBusError::ErrorType,QString)const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createErrorReply(io.qt.dbus.QDBusError.@NonNull ErrorType type, java.lang.@NonNull String msg){ return createErrorReply_native_QDBusError_ErrorType_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value(), msg); } @QtUninvokable private native io.qt.dbus.QDBusMessage createErrorReply_native_QDBusError_ErrorType_cref_QString_constfct(long __this__nativeId, int type, java.lang.String msg); /** *

See QDBusMessage::createErrorReply(QString,QString)const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createErrorReply(java.lang.@NonNull String name, java.lang.@NonNull String msg){ return createErrorReply_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, msg); } @QtUninvokable private native io.qt.dbus.QDBusMessage createErrorReply_native_cref_QString_cref_QString_constfct(long __this__nativeId, java.lang.String name, java.lang.String msg); /** *

See QDBusMessage::createReply(QList<QVariant>)const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createReply(java.util.@NonNull Collection arguments){ return createReply_native_cref_QList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arguments); } @QtUninvokable private native io.qt.dbus.QDBusMessage createReply_native_cref_QList_constfct(long __this__nativeId, java.util.Collection arguments); /** *

See QDBusMessage::createReply(QVariant)const

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createReply(java.lang.Object argument){ return createReply_native_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), argument); } @QtUninvokable private native io.qt.dbus.QDBusMessage createReply_native_cref_QVariant_constfct(long __this__nativeId, java.lang.Object argument); /** *

See QDBusMessage::errorMessage()const

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

See QDBusMessage::errorName()const

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

See QDBusMessage::interface()const

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

See QDBusMessage::isDelayedReply()const

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

See QDBusMessage::isInteractiveAuthorizationAllowed()const

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

See QDBusMessage::isReplyRequired()const

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

See QDBusMessage::member()const

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

See QDBusMessage::operator<<(QVariant)

*/ @QtUninvokable public final @NonNull QDBusMessage append(java.lang.Object arg){ return append_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), arg); } @QtUninvokable private native QDBusMessage append_native_cref_QVariant(long __this__nativeId, java.lang.Object arg); /** *

See QDBusMessage::operator=(QDBusMessage)

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

See QDBusMessage::path()const

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

See QDBusMessage::service()const

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

See QDBusMessage::setArguments(QList<QVariant>)

*/ @QtUninvokable public final void setArguments(java.util.@NonNull Collection arguments){ setArguments_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), arguments); } @QtUninvokable private native void setArguments_native_cref_QList(long __this__nativeId, java.util.Collection arguments); /** *

See QDBusMessage::setAutoStartService(bool)

*/ @QtUninvokable public final void setAutoStartService(boolean enable){ setAutoStartService_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setAutoStartService_native_bool(long __this__nativeId, boolean enable); /** *

See QDBusMessage::setDelayedReply(bool)const

*/ @QtUninvokable public final void setDelayedReply(boolean enable){ setDelayedReply_native_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setDelayedReply_native_bool_constfct(long __this__nativeId, boolean enable); /** *

See QDBusMessage::setInteractiveAuthorizationAllowed(bool)

*/ @QtUninvokable public final void setInteractiveAuthorizationAllowed(boolean enable){ setInteractiveAuthorizationAllowed_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setInteractiveAuthorizationAllowed_native_bool(long __this__nativeId, boolean enable); /** *

See QDBusMessage::signature()const

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

See QDBusMessage::swap(QDBusMessage&)

*/ @QtUninvokable public final void swap(io.qt.dbus.@StrictNonNull QDBusMessage other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QDBusMessage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QDBusMessage(long __this__nativeId, long other); /** *

See QDBusMessage::type()const

*/ @QtUninvokable public final io.qt.dbus.QDBusMessage.@NonNull MessageType type(){ return io.qt.dbus.QDBusMessage.MessageType.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int type_native_constfct(long __this__nativeId); /** *

See QDBusMessage::createError(QDBusError)

*/ public static io.qt.dbus.@NonNull QDBusMessage createError(io.qt.dbus.@NonNull QDBusError err){ return createError_native_cref_QDBusError(QtJambi_LibraryUtilities.internal.checkedNativeId(err)); } private native static io.qt.dbus.QDBusMessage createError_native_cref_QDBusError(long err); /** *

See QDBusMessage::createError(QDBusError::ErrorType,QString)

*/ public static io.qt.dbus.@NonNull QDBusMessage createError(io.qt.dbus.QDBusError.@NonNull ErrorType type, java.lang.@NonNull String msg){ return createError_native_QDBusError_ErrorType_cref_QString(type.value(), msg); } private native static io.qt.dbus.QDBusMessage createError_native_QDBusError_ErrorType_cref_QString(int type, java.lang.String msg); /** *

See QDBusMessage::createError(QString,QString)

*/ public native static io.qt.dbus.@NonNull QDBusMessage createError(java.lang.@NonNull String name, java.lang.@NonNull String msg); /** *

See QDBusMessage::createMethodCall(QString,QString,QString,QString)

*/ public native static io.qt.dbus.@NonNull QDBusMessage createMethodCall(java.lang.@NonNull String destination, java.lang.@NonNull String path, java.lang.@NonNull String arg__interface, java.lang.@NonNull String method); /** *

See QDBusMessage::createSignal(QString,QString,QString)

*/ public native static io.qt.dbus.@NonNull QDBusMessage createSignal(java.lang.@NonNull String path, java.lang.@NonNull String arg__interface, java.lang.@NonNull String name); /** *

See QDBusMessage::createTargetedSignal(QString,QString,QString,QString)

*/ public native static io.qt.dbus.@NonNull QDBusMessage createTargetedSignal(java.lang.@NonNull String service, java.lang.@NonNull String path, java.lang.@NonNull String arg__interface, java.lang.@NonNull String name); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDBusMessage(QPrivateConstructor p) { super(p); } /** *

See operator<<(QDebug,QDBusMessage)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QDBusMessage::QDBusMessage(QDBusMessage)

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

Overloaded function for {@link #createReply(java.util.Collection)} * with arguments = java.util.Collections.emptyList().

*/ @QtUninvokable public final io.qt.dbus.@NonNull QDBusMessage createReply() { return createReply(java.util.Collections.emptyList()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy