io.qt.core.QTemporaryDir Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Creates a unique directory for temporary use
* Java wrapper for Qt class QTemporaryDir
*/
public class QTemporaryDir extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QTemporaryDir:: QTemporaryDir()
*/
public QTemporaryDir(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTemporaryDir instance);
/**
* See QTemporaryDir:: QTemporaryDir(QString)
*/
public QTemporaryDir(java.lang.@NonNull String templateName){
super((QPrivateConstructor)null);
initialize_native(this, templateName);
}
private native static void initialize_native(QTemporaryDir instance, java.lang.String templateName);
/**
* See QTemporaryDir:: autoRemove()const
*/
@QtUninvokable
public final boolean autoRemove(){
return autoRemove_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoRemove_native_constfct(long __this__nativeId);
/**
* See QTemporaryDir:: 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 QTemporaryDir:: filePath(QString)const
*/
@QtUninvokable
public final java.lang.@NonNull String filePath(java.lang.@NonNull String fileName){
return filePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native java.lang.String filePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName);
/**
* See QTemporaryDir:: 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 QTemporaryDir:: path()const
*/
@QtUninvokable
public final java.lang.@NonNull String path(){
return path_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String path_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean remove(){
return remove_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean remove_native(long __this__nativeId);
/**
* See QTemporaryDir:: setAutoRemove(bool)
*/
@QtUninvokable
public final void setAutoRemove(boolean b){
setAutoRemove_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), b);
}
@QtUninvokable
private native void setAutoRemove_native_bool(long __this__nativeId, boolean b);
/**
* See QTemporaryDir:: swap(QTemporaryDir&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QTemporaryDir other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QTemporaryDir(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QTemporaryDir(long __this__nativeId, long other);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTemporaryDir(QPrivateConstructor p) { super(p); }
}