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

io.qt.serialbus.QCanFrameProcessor Maven / Gradle / Ivy

Go to download

Provides access to serial industrial bus interface. Currently the module supports the CAN bus and Modbus protocols.

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

import io.qt.*;


/**
 * 

Java wrapper for Qt class QCanFrameProcessor

*/ public class QCanFrameProcessor extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QCanFrameProcessor::Error

*/ public enum Error implements QtByteEnumerator { /** *

Representing QCanFrameProcessor::Error::None

*/ None((byte)0), /** *

Representing QCanFrameProcessor::Error::InvalidFrame

*/ InvalidFrame((byte)1), /** *

Representing QCanFrameProcessor::Error::UnsupportedFrameFormat

*/ UnsupportedFrameFormat((byte)2), /** *

Representing QCanFrameProcessor::Error::Decoding

*/ Decoding((byte)3), /** *

Representing QCanFrameProcessor::Error::Encoding

*/ Encoding((byte)4); static { QtJambi_LibraryUtilities.initialize(); } private Error(byte value) { this.value = value; } /** * {@inheritDoc} */ @Override public byte value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Error resolve(byte value) { switch (value) { case 0: return None; case 1: return InvalidFrame; case 2: return UnsupportedFrameFormat; case 3: return Decoding; case 4: return Encoding; default: throw new QNoSuchEnumValueException(value); } } private final byte value; } /** *

Java wrapper for Qt class QCanFrameProcessor::ParseResult

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

See QCanFrameProcessor::ParseResult::ParseResult()

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

See QCanFrameProcessor::ParseResult::ParseResult(QCanFrameProcessor::ParseResult)

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

See QCanFrameProcessor::ParseResult::ParseResult{QtCanBus::UniqueId,QMap<QString,QVariant>}

*/ public ParseResult(io.qt.serialbus.QtCanBus.@NonNull UniqueId uniqueId, java.util.@NonNull Map signalValues){ super((QPrivateConstructor)null); initialize_native(this, uniqueId, signalValues); } private native static void initialize_native(ParseResult instance, io.qt.serialbus.QtCanBus.UniqueId uniqueId, java.util.Map signalValues); /** *

See operator==(QCanFrameProcessor::ParseResult,QCanFrameProcessor::ParseResult)

*/ @QtUninvokable public final boolean equals(io.qt.serialbus.QCanFrameProcessor.@NonNull ParseResult value2){ return equals_native_cref_QCanFrameProcessor_ParseResult(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2)); } @QtUninvokable private native boolean equals_native_cref_QCanFrameProcessor_ParseResult(long __this__nativeId, long value2); /** *

See QCanFrameProcessor::ParseResult::signalValues

*/ @QtUninvokable public final void setSignalValues(java.util.@NonNull Map signalValues){ setSignalValues_native_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), signalValues); } @QtUninvokable private native void setSignalValues_native_cref_QMap(long __this__nativeId, java.util.Map signalValues); /** *

See QCanFrameProcessor::ParseResult::signalValues

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

See QCanFrameProcessor::ParseResult::uniqueId

*/ @QtUninvokable public final void setUniqueId(io.qt.serialbus.QtCanBus.@NonNull UniqueId uniqueId){ setUniqueId_native_cref_QtCanBus_UniqueId(QtJambi_LibraryUtilities.internal.nativeId(this), uniqueId.value()); } @QtUninvokable private native void setUniqueId_native_cref_QtCanBus_UniqueId(long __this__nativeId, int uniqueId); /** *

See QCanFrameProcessor::ParseResult::uniqueId

*/ @QtUninvokable public final io.qt.serialbus.QtCanBus.@NonNull UniqueId uniqueId(){ return io.qt.serialbus.QtCanBus.UniqueId.resolve(uniqueId_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int uniqueId_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected ParseResult(QPrivateConstructor p) { super(p); } /** *

See operator==(QCanFrameProcessor::ParseResult,QCanFrameProcessor::ParseResult)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.serialbus.QCanFrameProcessor.ParseResult) { return equals((io.qt.serialbus.QCanFrameProcessor.ParseResult) other); } return false; } /** * Returns the objects's hash code computed by qHash(QCanFrameProcessor::ParseResult). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QCanFrameProcessor::ParseResult::ParseResult(QCanFrameProcessor::ParseResult)

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

Kotlin property getter. In Java use {@link #signalValues()} instead.

*/ @QtUninvokable public final io.qt.core.@NonNull QMap getSignalValues() { return signalValues(); } /** * @hidden *

Kotlin property getter. In Java use {@link #uniqueId()} instead.

*/ @QtUninvokable public final io.qt.serialbus.QtCanBus.@NonNull UniqueId getUniqueId() { return uniqueId(); } } /** *

See QCanFrameProcessor::QCanFrameProcessor()

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

See QCanFrameProcessor::addMessageDescriptions(QList<QCanMessageDescription>)

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

See QCanFrameProcessor::clearMessageDescriptions()

*/ @QtUninvokable public final void clearMessageDescriptions(){ clearMessageDescriptions_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clearMessageDescriptions_native(long __this__nativeId); /** *

See QCanFrameProcessor::error()const

*/ @QtUninvokable public final io.qt.serialbus.QCanFrameProcessor.@NonNull Error error(){ return io.qt.serialbus.QCanFrameProcessor.Error.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native byte error_native_constfct(long __this__nativeId); /** *

See QCanFrameProcessor::errorString()const

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

See QCanFrameProcessor::messageDescriptions()const

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

See QCanFrameProcessor::parseFrame(QCanBusFrame)

*/ @QtUninvokable public final io.qt.serialbus.QCanFrameProcessor.@NonNull ParseResult parseFrame(io.qt.serialbus.@NonNull QCanBusFrame frame){ return parseFrame_native_cref_QCanBusFrame(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(frame)); } @QtUninvokable private native io.qt.serialbus.QCanFrameProcessor.ParseResult parseFrame_native_cref_QCanBusFrame(long __this__nativeId, long frame); /** *

See QCanFrameProcessor::prepareFrame(QtCanBus::UniqueId,QVariantMap)

*/ @QtUninvokable public final io.qt.serialbus.@NonNull QCanBusFrame prepareFrame(io.qt.serialbus.QtCanBus.@NonNull UniqueId uniqueId, java.util.@NonNull Map signalValues){ return prepareFrame_native_QtCanBus_UniqueId_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), uniqueId.value(), signalValues); } @QtUninvokable private native io.qt.serialbus.QCanBusFrame prepareFrame_native_QtCanBus_UniqueId_cref_QMap(long __this__nativeId, int uniqueId, java.util.Map signalValues); /** *

See QCanFrameProcessor::setMessageDescriptions(QList<QCanMessageDescription>)

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

See QCanFrameProcessor::setUniqueIdDescription(QCanUniqueIdDescription)

*/ @QtUninvokable public final void setUniqueIdDescription(io.qt.serialbus.@StrictNonNull QCanUniqueIdDescription description){ java.util.Objects.requireNonNull(description, "Argument 'description': null not expected."); setUniqueIdDescription_native_cref_QCanUniqueIdDescription(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(description)); } @QtUninvokable private native void setUniqueIdDescription_native_cref_QCanUniqueIdDescription(long __this__nativeId, long description); /** *

See QCanFrameProcessor::uniqueIdDescription()const

*/ @QtUninvokable public final io.qt.serialbus.@NonNull QCanUniqueIdDescription uniqueIdDescription(){ return uniqueIdDescription_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.serialbus.QCanUniqueIdDescription uniqueIdDescription_native_constfct(long __this__nativeId); /** *

See QCanFrameProcessor::warnings()const

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList warnings(){ return warnings_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QStringList warnings_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QCanFrameProcessor(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy