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

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

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

import io.qt.*;


/**
 * 

Represents an error received from the D-Bus bus or from remote applications found in the bus

*

Java wrapper for Qt class QDBusError

*/ public class QDBusError extends QtObject 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(QDBusError.class); /** *

Java wrapper for Qt enum QDBusError::ErrorType

*/ @QtRejectedEntries({"LastErrorType"}) public enum ErrorType implements QtEnumerator { /** *

Representing QDBusError::NoError

*/ NoError(0), /** *

Representing QDBusError::Other

*/ Other(1), /** *

Representing QDBusError::Failed

*/ Failed(2), /** *

Representing QDBusError::NoMemory

*/ NoMemory(3), /** *

Representing QDBusError::ServiceUnknown

*/ ServiceUnknown(4), /** *

Representing QDBusError::NoReply

*/ NoReply(5), /** *

Representing QDBusError::BadAddress

*/ BadAddress(6), /** *

Representing QDBusError::NotSupported

*/ NotSupported(7), /** *

Representing QDBusError::LimitsExceeded

*/ LimitsExceeded(8), /** *

Representing QDBusError::AccessDenied

*/ AccessDenied(9), /** *

Representing QDBusError::NoServer

*/ NoServer(10), /** *

Representing QDBusError::Timeout

*/ Timeout(11), /** *

Representing QDBusError::NoNetwork

*/ NoNetwork(12), /** *

Representing QDBusError::AddressInUse

*/ AddressInUse(13), /** *

Representing QDBusError::Disconnected

*/ Disconnected(14), /** *

Representing QDBusError::InvalidArgs

*/ InvalidArgs(15), /** *

Representing QDBusError::UnknownMethod

*/ UnknownMethod(16), /** *

Representing QDBusError::TimedOut

*/ TimedOut(17), /** *

Representing QDBusError::InvalidSignature

*/ InvalidSignature(18), /** *

Representing QDBusError::UnknownInterface

*/ UnknownInterface(19), /** *

Representing QDBusError::UnknownObject

*/ UnknownObject(20), /** *

Representing QDBusError::UnknownProperty

*/ UnknownProperty(21), /** *

Representing QDBusError::PropertyReadOnly

*/ PropertyReadOnly(22), /** *

Representing QDBusError::InternalError

*/ InternalError(23), /** *

Representing QDBusError::InvalidService

*/ InvalidService(24), /** *

Representing QDBusError::InvalidObjectPath

*/ InvalidObjectPath(25), /** *

Representing QDBusError::InvalidInterface

*/ InvalidInterface(26), /** *

Representing QDBusError::InvalidMember

*/ InvalidMember(27), /** *

Representing QDBusError::LastErrorType

*/ LastErrorType(27); static { QtJambi_LibraryUtilities.initialize(); } private ErrorType(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 ErrorType resolve(int value) { switch (value) { case 0: return NoError; case 1: return Other; case 2: return Failed; case 3: return NoMemory; case 4: return ServiceUnknown; case 5: return NoReply; case 6: return BadAddress; case 7: return NotSupported; case 8: return LimitsExceeded; case 9: return AccessDenied; case 10: return NoServer; case 11: return Timeout; case 12: return NoNetwork; case 13: return AddressInUse; case 14: return Disconnected; case 15: return InvalidArgs; case 16: return UnknownMethod; case 17: return TimedOut; case 18: return InvalidSignature; case 19: return UnknownInterface; case 20: return UnknownObject; case 21: return UnknownProperty; case 22: return PropertyReadOnly; case 23: return InternalError; case 24: return InvalidService; case 25: return InvalidObjectPath; case 26: return InvalidInterface; case 27: return InvalidMember; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QDBusError::QDBusError()

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

See QDBusError::QDBusError(QDBusError)

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

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

*/ public QDBusError(io.qt.dbus.QDBusError.@NonNull ErrorType error, java.lang.@NonNull String message){ super((QPrivateConstructor)null); initialize_native(this, error, message); } private native static void initialize_native(QDBusError instance, io.qt.dbus.QDBusError.ErrorType error, java.lang.String message); /** *

See QDBusError::QDBusError(QDBusMessage)

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

See QDBusError::isValid()const

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

See QDBusError::message()const

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

See QDBusError::name()const

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

See QDBusError::operator=(QDBusError)

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

See QDBusError::operator=(QDBusMessage)

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

See QDBusError::swap(QDBusError&)

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

See QDBusError::type()const

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

See QDBusError::errorString(QDBusError::ErrorType)

*/ public static java.lang.@NonNull String errorString(io.qt.dbus.QDBusError.@NonNull ErrorType error){ return errorString_native_QDBusError_ErrorType(error.value()); } private native static java.lang.String errorString_native_QDBusError_ErrorType(int error); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QDBusError(QPrivateConstructor p) { super(p); } /** *

See operator<<(QDebug,QDBusError)

*/ @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 QDBusError::QDBusError(QDBusError)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy