io.qt.core.QTemporaryFile 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.*;
/**
* I/O device that operates on temporary files
* Java wrapper for Qt class QTemporaryFile
*/
public class QTemporaryFile extends io.qt.core.QFile
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTemporaryFile.class);
/**
* See QTemporaryFile:: QTemporaryFile()
*/
public QTemporaryFile(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTemporaryFile instance);
/**
* See QTemporaryFile:: QTemporaryFile(QObject*)
*/
public QTemporaryFile(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTemporaryFile instance, io.qt.core.QObject parent);
/**
* See QTemporaryFile:: QTemporaryFile(QString)
*/
public QTemporaryFile(java.lang.@NonNull String templateName){
super((QPrivateConstructor)null);
initialize_native(this, templateName);
}
private native static void initialize_native(QTemporaryFile instance, java.lang.String templateName);
/**
* See QTemporaryFile:: QTemporaryFile(QString, QObject*)
*/
public QTemporaryFile(java.lang.@NonNull String templateName, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, templateName, parent);
}
private native static void initialize_native(QTemporaryFile instance, java.lang.String templateName, io.qt.core.QObject parent);
/**
* See QTemporaryFile:: 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 QTemporaryFile:: fileName()const
*/
@QtUninvokable
public final java.lang.@NonNull String uniqueFilename(){
return uniqueFilename_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String uniqueFilename_native_constfct(long __this__nativeId);
/**
* See QTemporaryFile:: fileTemplate()const
*/
@QtUninvokable
public final java.lang.@NonNull String fileTemplate(){
return fileTemplate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String fileTemplate_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean open(){
return open_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean open_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean rename(java.lang.@NonNull String newName){
return rename_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), newName);
}
@QtUninvokable
private native boolean rename_native_cref_QString(long __this__nativeId, java.lang.String newName);
/**
* See QTemporaryFile:: 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 QTemporaryFile:: setFileTemplate(QString)
*/
@QtUninvokable
public final void setFileTemplate(java.lang.@NonNull String name){
setFileTemplate_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native void setFileTemplate_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QIODevice:: open(QIODeviceBase::OpenMode)
*/
@QtUninvokable
@Override
public boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode flags){
return open_native_QIODeviceBase_OpenMode(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value());
}
@QtUninvokable
private native boolean open_native_QIODeviceBase_OpenMode(long __this__nativeId, int flags);
/**
* See QTemporaryFile:: createNativeFile(QFile&)
*/
public static io.qt.core.@Nullable QTemporaryFile createNativeFile(io.qt.core.@StrictNonNull QFile file){
java.util.Objects.requireNonNull(file, "Argument 'file': null not expected.");
return createNativeFile_native_ref_QFile(QtJambi_LibraryUtilities.internal.checkedNativeId(file));
}
private native static io.qt.core.QTemporaryFile createNativeFile_native_ref_QFile(long file);
/**
* See QTemporaryFile:: createNativeFile(QString)
*/
public native static io.qt.core.@Nullable QTemporaryFile createNativeFile(java.lang.@NonNull String fileName);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTemporaryFile(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QTemporaryFile(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTemporaryFile instance, QDeclarativeConstructor constructor);
}