io.qt.dbus.QDBusUnixFileDescriptor Maven / Gradle / Ivy
Show all versions of qtjambi-dbus Show documentation
package io.qt.dbus;
import io.qt.*;
/**
* Holds one Unix file descriptor
* Java wrapper for Qt class QDBusUnixFileDescriptor
*/
public class QDBusUnixFileDescriptor extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QDBusUnixFileDescriptor:: QDBusUnixFileDescriptor()
*/
public QDBusUnixFileDescriptor(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QDBusUnixFileDescriptor instance);
/**
* See QDBusUnixFileDescriptor:: QDBusUnixFileDescriptor(QDBusUnixFileDescriptor)
*/
public QDBusUnixFileDescriptor(io.qt.dbus.@NonNull QDBusUnixFileDescriptor other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QDBusUnixFileDescriptor instance, io.qt.dbus.QDBusUnixFileDescriptor other);
/**
* See QDBusUnixFileDescriptor:: QDBusUnixFileDescriptor(int)
*/
public QDBusUnixFileDescriptor(int fileDescriptor){
super((QPrivateConstructor)null);
initialize_native(this, fileDescriptor);
}
private native static void initialize_native(QDBusUnixFileDescriptor instance, int fileDescriptor);
/**
* See QDBusUnixFileDescriptor:: fileDescriptor()const
*/
@QtUninvokable
public final int fileDescriptor(){
return fileDescriptor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int fileDescriptor_native_constfct(long __this__nativeId);
/**
* See QDBusUnixFileDescriptor:: giveFileDescriptor(int)
*/
@QtUninvokable
public final void giveFileDescriptor(int fileDescriptor){
giveFileDescriptor_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), fileDescriptor);
}
@QtUninvokable
private native void giveFileDescriptor_native_int(long __this__nativeId, int fileDescriptor);
/**
* See QDBusUnixFileDescriptor:: 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 QDBusUnixFileDescriptor:: operator=(QDBusUnixFileDescriptor)
*/
@QtUninvokable
public final void assign(io.qt.dbus.@NonNull QDBusUnixFileDescriptor other){
assign_native_cref_QDBusUnixFileDescriptor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QDBusUnixFileDescriptor(long __this__nativeId, long other);
/**
* See QDBusUnixFileDescriptor:: setFileDescriptor(int)
*/
@QtUninvokable
public final void setFileDescriptor(int fileDescriptor){
setFileDescriptor_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), fileDescriptor);
}
@QtUninvokable
private native void setFileDescriptor_native_int(long __this__nativeId, int fileDescriptor);
/**
* See QDBusUnixFileDescriptor:: swap(QDBusUnixFileDescriptor&)
*/
@QtUninvokable
public final void swap(io.qt.dbus.@StrictNonNull QDBusUnixFileDescriptor other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QDBusUnixFileDescriptor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QDBusUnixFileDescriptor(long __this__nativeId, long other);
/**
* See QDBusUnixFileDescriptor:: takeFileDescriptor()
*/
@QtUninvokable
public final int takeFileDescriptor(){
return takeFileDescriptor_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int takeFileDescriptor_native(long __this__nativeId);
/**
* See QDBusUnixFileDescriptor:: isSupported()
*/
public native static boolean isSupported();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDBusUnixFileDescriptor(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QDBusUnixFileDescriptor:: QDBusUnixFileDescriptor(QDBusUnixFileDescriptor)
*/
@QtUninvokable
@Override
public QDBusUnixFileDescriptor clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QDBusUnixFileDescriptor clone_native(long __this_nativeId);
}