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

io.qt.serialbus.QModbusClient 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.*;


/**
 * 

The interface to send Modbus requests

*

Java wrapper for Qt class QModbusClient

*/ public abstract class QModbusClient extends io.qt.serialbus.QModbusDevice { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QModbusClient.class); @NativeAccess private static final class ConcreteWrapper extends QModbusClient { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable protected void close(){ close_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void close_native(long __this__nativeId); @Override @QtUninvokable protected boolean open(){ return open_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean open_native(long __this__nativeId); } /** *

See QModbusClient::timeoutChanged(int)

*/ public final @NonNull Signal1 timeoutChanged = new Signal1<>(); /** *

See QModbusClient::QModbusClient(QObject*)

*/ public QModbusClient(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QModbusClient instance, io.qt.core.QObject parent); /** *

See QModbusClient::numberOfRetries()const

*/ @QtUninvokable public final int numberOfRetries(){ return numberOfRetries_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int numberOfRetries_native_constfct(long __this__nativeId); /** *

See QModbusClient::sendRawRequest(QModbusRequest,int)

*/ @QtUninvokable public final io.qt.serialbus.@Nullable QModbusReply sendRawRequest(io.qt.serialbus.@NonNull QModbusRequest request, int serverAddress){ return sendRawRequest_native_cref_QModbusRequest_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(request), serverAddress); } @QtUninvokable private native io.qt.serialbus.QModbusReply sendRawRequest_native_cref_QModbusRequest_int(long __this__nativeId, long request, int serverAddress); /** *

See QModbusClient::sendReadRequest(QModbusDataUnit,int)

*/ @QtUninvokable public final io.qt.serialbus.@Nullable QModbusReply sendReadRequest(io.qt.serialbus.@NonNull QModbusDataUnit read, int serverAddress){ return sendReadRequest_native_cref_QModbusDataUnit_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(read), serverAddress); } @QtUninvokable private native io.qt.serialbus.QModbusReply sendReadRequest_native_cref_QModbusDataUnit_int(long __this__nativeId, long read, int serverAddress); /** *

See QModbusClient::sendReadWriteRequest(QModbusDataUnit,QModbusDataUnit,int)

*/ @QtUninvokable public final io.qt.serialbus.@Nullable QModbusReply sendReadWriteRequest(io.qt.serialbus.@NonNull QModbusDataUnit read, io.qt.serialbus.@NonNull QModbusDataUnit write, int serverAddress){ return sendReadWriteRequest_native_cref_QModbusDataUnit_cref_QModbusDataUnit_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(read), QtJambi_LibraryUtilities.internal.checkedNativeId(write), serverAddress); } @QtUninvokable private native io.qt.serialbus.QModbusReply sendReadWriteRequest_native_cref_QModbusDataUnit_cref_QModbusDataUnit_int(long __this__nativeId, long read, long write, int serverAddress); /** *

See QModbusClient::sendWriteRequest(QModbusDataUnit,int)

*/ @QtUninvokable public final io.qt.serialbus.@Nullable QModbusReply sendWriteRequest(io.qt.serialbus.@NonNull QModbusDataUnit write, int serverAddress){ return sendWriteRequest_native_cref_QModbusDataUnit_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(write), serverAddress); } @QtUninvokable private native io.qt.serialbus.QModbusReply sendWriteRequest_native_cref_QModbusDataUnit_int(long __this__nativeId, long write, int serverAddress); /** *

See QModbusClient::setNumberOfRetries(int)

*/ @QtUninvokable public final void setNumberOfRetries(int number){ setNumberOfRetries_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), number); } @QtUninvokable private native void setNumberOfRetries_native_int(long __this__nativeId, int number); /** *

See QModbusClient::setTimeout(int)

*/ @QtUninvokable public final void setTimeout(int newTimeout){ setTimeout_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), newTimeout); } @QtUninvokable private native void setTimeout_native_int(long __this__nativeId, int newTimeout); /** *

See QModbusClient::timeout()const

*/ @QtUninvokable public final int timeout(){ return timeout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int timeout_native_constfct(long __this__nativeId); /** *

See QModbusClient::processPrivateResponse(QModbusResponse,QModbusDataUnit*)

*/ @QtUninvokable protected boolean processPrivateResponse(io.qt.serialbus.@NonNull QModbusResponse response, io.qt.serialbus.@Nullable QModbusDataUnit data){ return processPrivateResponse_native_cref_QModbusResponse_QModbusDataUnit_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(response), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @QtUninvokable private native boolean processPrivateResponse_native_cref_QModbusResponse_QModbusDataUnit_ptr(long __this__nativeId, long response, long data); /** *

See QModbusClient::processResponse(QModbusResponse,QModbusDataUnit*)

*/ @QtUninvokable protected boolean processResponse(io.qt.serialbus.@NonNull QModbusResponse response, io.qt.serialbus.@Nullable QModbusDataUnit data){ return processResponse_native_cref_QModbusResponse_QModbusDataUnit_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(response), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @QtUninvokable private native boolean processResponse_native_cref_QModbusResponse_QModbusDataUnit_ptr(long __this__nativeId, long response, long data); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QModbusClient(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QModbusClient(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QModbusClient instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QModbusClient(io.qt.core.QObject)} * with parent = null.

*/ public QModbusClient() { this((io.qt.core.QObject)null); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy