io.qt.serialbus.QModbusTcpServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-serialbus Show documentation
Show all versions of qtjambi-serialbus Show documentation
Provides access to serial industrial bus interface. Currently the module supports the CAN bus and Modbus protocols.
package io.qt.serialbus;
import io.qt.*;
/**
* Represents a Modbus server that uses a TCP server for its communication with the Modbus client
* Java wrapper for Qt class QModbusTcpServer
*/
public class QModbusTcpServer extends io.qt.serialbus.QModbusServer
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QModbusTcpServer.class);
/**
* See QModbusTcpServer:: modbusClientDisconnected(QTcpSocket*)
*/
@SuppressWarnings({"exports"})
public final @NonNull Signal1 modbusClientDisconnected = new Signal1<>();
/**
* See QModbusTcpServer:: QModbusTcpServer(QObject*)
*/
public QModbusTcpServer(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QModbusTcpServer instance, io.qt.core.QObject parent);
/**
* See QModbusTcpServer:: installConnectionObserver(QModbusTcpConnectionObserver*)
*/
@QtUninvokable
public final void installConnectionObserver(io.qt.serialbus.@Nullable QModbusTcpConnectionObserver observer){
installConnectionObserver_native_QModbusTcpConnectionObserver_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(observer));
}
@QtUninvokable
private native void installConnectionObserver_native_QModbusTcpConnectionObserver_ptr(long __this__nativeId, long observer);
/**
*
*/
@QtUninvokable
@Override
protected void close(){
close_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void close_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
protected boolean open(){
return open_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean open_native(long __this__nativeId);
/**
* See QModbusServer:: processRequest(QModbusPdu)
*/
@QtUninvokable
@Override
protected io.qt.serialbus.@NonNull QModbusResponse processRequest(io.qt.serialbus.@NonNull QModbusPdu request){
return processRequest_native_cref_QModbusPdu(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(request));
}
@QtUninvokable
private native io.qt.serialbus.QModbusResponse processRequest_native_cref_QModbusPdu(long __this__nativeId, long request);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QModbusTcpServer(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QModbusTcpServer(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QModbusTcpServer instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QModbusTcpServer(io.qt.core.QObject)}
* with parent = null
.
*/
public QModbusTcpServer() {
this((io.qt.core.QObject)null);
}
}