io.qt.serialport.QSerialPortInfo Maven / Gradle / Ivy
Show all versions of qtjambi-serialport Show documentation
package io.qt.serialport;
import io.qt.*;
/**
* Provides information about existing serial ports
* Java wrapper for Qt class QSerialPortInfo
*/
public class QSerialPortInfo extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QSerialPortInfo:: QSerialPortInfo()
*/
public QSerialPortInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QSerialPortInfo instance);
/**
* See QSerialPortInfo:: QSerialPortInfo(QSerialPort)
*/
public QSerialPortInfo(io.qt.serialport.@StrictNonNull QSerialPort port){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(port, "Argument 'port': null not expected.");
initialize_native(this, port);
}
private native static void initialize_native(QSerialPortInfo instance, io.qt.serialport.QSerialPort port);
/**
* See QSerialPortInfo:: QSerialPortInfo(QSerialPortInfo)
*/
public QSerialPortInfo(io.qt.serialport.@NonNull QSerialPortInfo other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QSerialPortInfo instance, io.qt.serialport.QSerialPortInfo other);
/**
* See QSerialPortInfo:: QSerialPortInfo(QString)
*/
public QSerialPortInfo(java.lang.@NonNull String name){
super((QPrivateConstructor)null);
initialize_native(this, name);
}
private native static void initialize_native(QSerialPortInfo instance, java.lang.String name);
/**
* See QSerialPortInfo:: description()const
*/
@QtUninvokable
public final java.lang.@NonNull String description(){
return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String description_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: hasProductIdentifier()const
*/
@QtUninvokable
public final boolean hasProductIdentifier(){
return hasProductIdentifier_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasProductIdentifier_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: hasVendorIdentifier()const
*/
@QtUninvokable
public final boolean hasVendorIdentifier(){
return hasVendorIdentifier_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasVendorIdentifier_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: isNull()const
*/
@QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: manufacturer()const
*/
@QtUninvokable
public final java.lang.@NonNull String manufacturer(){
return manufacturer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String manufacturer_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: operator=(QSerialPortInfo)
*/
@QtUninvokable
public final void assign(io.qt.serialport.@NonNull QSerialPortInfo other){
assign_native_cref_QSerialPortInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QSerialPortInfo(long __this__nativeId, long other);
/**
* See QSerialPortInfo:: portName()const
*/
@QtUninvokable
public final java.lang.@NonNull String portName(){
return portName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String portName_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: productIdentifier()const
*/
@QtUninvokable
public final short productIdentifier(){
return productIdentifier_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native short productIdentifier_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: serialNumber()const
*/
@QtUninvokable
public final java.lang.@NonNull String serialNumber(){
return serialNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String serialNumber_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: swap(QSerialPortInfo&)
*/
@QtUninvokable
public final void swap(io.qt.serialport.@StrictNonNull QSerialPortInfo other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QSerialPortInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QSerialPortInfo(long __this__nativeId, long other);
/**
* See QSerialPortInfo:: systemLocation()const
*/
@QtUninvokable
public final java.lang.@NonNull String systemLocation(){
return systemLocation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String systemLocation_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: vendorIdentifier()const
*/
@QtUninvokable
public final short vendorIdentifier(){
return vendorIdentifier_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native short vendorIdentifier_native_constfct(long __this__nativeId);
/**
* See QSerialPortInfo:: availablePorts()
*/
public native static io.qt.core.@NonNull QList availablePorts();
/**
* See QSerialPortInfo:: standardBaudRates()
*/
public native static io.qt.core.@NonNull QList standardBaudRates();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSerialPortInfo(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public QSerialPortInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QSerialPortInfo clone_native(long __this_nativeId);
}