io.qt.core.internal.QFSFileEngine Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core.internal;
import io.qt.*;
/**
* Java wrapper for Qt class QFSFileEngine
*/
public class QFSFileEngine extends io.qt.core.internal.QAbstractFileEngine
{
/**
* See QFSFileEngine:: QFSFileEngine()
*/
public QFSFileEngine(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QFSFileEngine instance);
/**
* See QFSFileEngine:: QFSFileEngine(QString)
*/
public QFSFileEngine(java.lang.@NonNull String file){
super((QPrivateConstructor)null);
initialize_native(this, file);
}
private native static void initialize_native(QFSFileEngine instance, java.lang.String file);
/**
* See QFSFileEngine:: open(QIODevice::OpenMode, int)
*/
@QtUninvokable
public final boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode flags, int fd){
return open_native_QIODeviceBase_OpenMode_int(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value(), fd);
}
@QtUninvokable
private native boolean open_native_QIODeviceBase_OpenMode_int(long __this__nativeId, int flags, int fd);
/**
* See QFSFileEngine:: open(QIODevice::OpenMode, int, QFile::FileHandleFlags)
*/
@QtUninvokable
public final boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode flags, int fd, io.qt.core.QFileDevice.@NonNull FileHandleFlags handleFlags){
return open_native_QIODeviceBase_OpenMode_int_QFileDevice_FileHandleFlags(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value(), fd, handleFlags.value());
}
@QtUninvokable
private native boolean open_native_QIODeviceBase_OpenMode_int_QFileDevice_FileHandleFlags(long __this__nativeId, int flags, int fd, int handleFlags);
/**
* See QAbstractFileEngine:: beginEntryList(QDir::Filters, QStringList)
*/
@QtUninvokable
@Override
public io.qt.core.internal.@Nullable QAbstractFileEngineIterator beginEntryList(io.qt.core.QDir.@NonNull Filters filters, java.util.@NonNull Collection filterNames){
return beginEntryList_native_QDir_Filters_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), filterNames);
}
@QtUninvokable
private native io.qt.core.internal.QAbstractFileEngineIterator beginEntryList_native_QDir_Filters_cref_QStringList(long __this__nativeId, int filters, java.util.Collection filterNames);
/**
* See QAbstractFileEngine:: caseSensitive()const
*/
@QtUninvokable
@Override
public boolean caseSensitive(){
return caseSensitive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean caseSensitive_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: cloneTo(QAbstractFileEngine*)
*/
@QtUninvokable
@Override
public boolean cloneTo(io.qt.core.internal.@Nullable QAbstractFileEngine target){
return cloneTo_native_QAbstractFileEngine_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target));
}
@QtUninvokable
private native boolean cloneTo_native_QAbstractFileEngine_ptr(long __this__nativeId, long target);
/**
* See QAbstractFileEngine:: close()
*/
@QtUninvokable
@Override
public boolean close(){
return close_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean close_native(long __this__nativeId);
/**
* See QAbstractFileEngine:: copy(QString)
*/
@QtUninvokable
@Override
public boolean copy(java.lang.@NonNull String newName){
return copy_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), newName);
}
@QtUninvokable
private native boolean copy_native_cref_QString(long __this__nativeId, java.lang.String newName);
/**
* See QAbstractFileEngine:: endEntryList()
*/
@QtUninvokable
@Override
public io.qt.core.internal.@Nullable QAbstractFileEngineIterator endEntryList(){
return endEntryList_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.internal.QAbstractFileEngineIterator endEntryList_native(long __this__nativeId);
/**
* See QAbstractFileEngine:: entryList(QDir::Filters, QStringList)const
*/
@QtUninvokable
@Override
public java.util.@NonNull List entryList(io.qt.core.QDir.@NonNull Filters filters, java.util.@NonNull Collection filterNames){
return entryList_native_QDir_Filters_cref_QStringList_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), filterNames);
}
@QtUninvokable
private native java.util.List entryList_native_QDir_Filters_cref_QStringList_constfct(long __this__nativeId, int filters, java.util.Collection filterNames);
/**
* See QAbstractFileEngine:: fileFlags(QAbstractFileEngine::FileFlags)const
*/
@QtUninvokable
@Override
public io.qt.core.internal.QAbstractFileEngine.@NonNull FileFlags fileFlags(io.qt.core.internal.QAbstractFileEngine.@NonNull FileFlags type){
return new io.qt.core.internal.QAbstractFileEngine.FileFlags(fileFlags_native_QAbstractFileEngine_FileFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()));
}
@QtUninvokable
private native int fileFlags_native_QAbstractFileEngine_FileFlags_constfct(long __this__nativeId, int type);
/**
* See QAbstractFileEngine:: fileName(QAbstractFileEngine::FileName)const
*/
@QtUninvokable
@Override
public java.lang.@NonNull String fileName(io.qt.core.internal.QAbstractFileEngine.@NonNull FileName file){
return fileName_native_QAbstractFileEngine_FileName_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), file.value());
}
@QtUninvokable
private native java.lang.String fileName_native_QAbstractFileEngine_FileName_constfct(long __this__nativeId, int file);
/**
* See QAbstractFileEngine:: fileTime(QAbstractFileEngine::FileTime)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QDateTime fileTime(io.qt.core.internal.QAbstractFileEngine.@NonNull FileTime time){
return fileTime_native_QAbstractFileEngine_FileTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), time.value());
}
@QtUninvokable
private native io.qt.core.QDateTime fileTime_native_QAbstractFileEngine_FileTime_constfct(long __this__nativeId, int time);
/**
* See QAbstractFileEngine:: flush()
*/
@QtUninvokable
@Override
public boolean flush(){
return flush_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean flush_native(long __this__nativeId);
/**
* See QAbstractFileEngine:: handle()const
*/
@QtUninvokable
@Override
public int handle(){
return handle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int handle_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: id()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QByteArray id(){
return id_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray id_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: isRelativePath()const
*/
@QtUninvokable
@Override
public boolean isRelativePath(){
return isRelativePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRelativePath_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: isSequential()const
*/
@QtUninvokable
@Override
public boolean isSequential(){
return isSequential_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSequential_native_constfct(long __this__nativeId);
/**
* See QFSFileEngine:: isUnnamedFile()const
*/
@QtUninvokable
public boolean isUnnamedFile(){
return isUnnamedFile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUnnamedFile_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: link(QString)
*/
@QtUninvokable
@Override
public boolean link(java.lang.@NonNull String newName){
return link_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), newName);
}
@QtUninvokable
private native boolean link_native_cref_QString(long __this__nativeId, java.lang.String newName);
/**
* See QAbstractFileEngine:: mkdir(QString, bool, std::optional<QFile::Permissions>)const
*/
@QtUninvokable
@Override
public boolean mkdir(java.lang.@NonNull String dirName, boolean createParentDirectories, java.util.@NonNull Optional extends io.qt.core.QFileDevice.@NonNull Permissions> permissions){
return mkdir_native_cref_QString_bool_std_optional_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName, createParentDirectories, permissions);
}
@QtUninvokable
private native boolean mkdir_native_cref_QString_bool_std_optional_constfct(long __this__nativeId, java.lang.String dirName, boolean createParentDirectories, java.util.Optional extends io.qt.core.QFileDevice.Permissions> permissions);
/**
* See QAbstractFileEngine:: open(QIODevice::OpenMode, std::optional<QFile::Permissions>)
*/
@QtUninvokable
@Override
public boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode openMode, java.util.@NonNull Optional extends io.qt.core.QFileDevice.@NonNull Permissions> permissions){
return open_native_QIODeviceBase_OpenMode_std_optional(QtJambi_LibraryUtilities.internal.nativeId(this), openMode.value(), permissions);
}
@QtUninvokable
private native boolean open_native_QIODeviceBase_OpenMode_std_optional(long __this__nativeId, int openMode, java.util.Optional extends io.qt.core.QFileDevice.Permissions> permissions);
/**
* See QAbstractFileEngine:: owner(QAbstractFileEngine::FileOwner)const
*/
@QtUninvokable
@Override
public java.lang.@NonNull String owner(io.qt.core.internal.QAbstractFileEngine.@NonNull FileOwner arg__1){
return owner_native_QAbstractFileEngine_FileOwner_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native java.lang.String owner_native_QAbstractFileEngine_FileOwner_constfct(long __this__nativeId, int arg__1);
/**
* See QAbstractFileEngine:: ownerId(QAbstractFileEngine::FileOwner)const
*/
@QtUninvokable
@Override
public int ownerId(io.qt.core.internal.QAbstractFileEngine.@NonNull FileOwner arg__1){
return ownerId_native_QAbstractFileEngine_FileOwner_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native int ownerId_native_QAbstractFileEngine_FileOwner_constfct(long __this__nativeId, int arg__1);
/**
* See QAbstractFileEngine:: pos()const
*/
@QtUninvokable
@Override
public long pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long pos_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: read(char*, qint64)
*/
@QtUninvokable
@Override
public int read(java.nio.@Nullable ByteBuffer data){
return read_native_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native int read_native_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer data);
/**
* See QAbstractFileEngine:: readLine(char*, qint64)
*/
@QtUninvokable
@Override
public int readLine(java.nio.@Nullable ByteBuffer data){
return readLine_native_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native int readLine_native_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer data);
/**
* See QAbstractFileEngine:: remove()
*/
@QtUninvokable
@Override
public boolean remove(){
return remove_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean remove_native(long __this__nativeId);
/**
* See QAbstractFileEngine:: rename(QString)
*/
@QtUninvokable
@Override
public 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 QAbstractFileEngine:: renameOverwrite(QString)
*/
@QtUninvokable
@Override
public boolean renameOverwrite(java.lang.@NonNull String newName){
return renameOverwrite_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), newName);
}
@QtUninvokable
private native boolean renameOverwrite_native_cref_QString(long __this__nativeId, java.lang.String newName);
/**
* See QAbstractFileEngine:: rmdir(QString, bool)const
*/
@QtUninvokable
@Override
public boolean rmdir(java.lang.@NonNull String dirName, boolean recurseParentDirectories){
return rmdir_native_cref_QString_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName, recurseParentDirectories);
}
@QtUninvokable
private native boolean rmdir_native_cref_QString_bool_constfct(long __this__nativeId, java.lang.String dirName, boolean recurseParentDirectories);
/**
* See QAbstractFileEngine:: seek(qint64)
*/
@QtUninvokable
@Override
public boolean seek(long arg__1){
return seek_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native boolean seek_native_qint64(long __this__nativeId, long arg__1);
/**
* See QAbstractFileEngine:: setFileName(QString)
*/
@QtUninvokable
@Override
public void setFileName(java.lang.@NonNull String file){
setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), file);
}
@QtUninvokable
private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String file);
/**
* See QAbstractFileEngine:: setFileTime(QDateTime, QAbstractFileEngine::FileTime)
*/
@QtUninvokable
@Override
public boolean setFileTime(io.qt.core.@NonNull QDateTime newDate, io.qt.core.internal.QAbstractFileEngine.@NonNull FileTime time){
return setFileTime_native_cref_QDateTime_QAbstractFileEngine_FileTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(newDate), time.value());
}
@QtUninvokable
private native boolean setFileTime_native_cref_QDateTime_QAbstractFileEngine_FileTime(long __this__nativeId, long newDate, int time);
/**
* See QAbstractFileEngine:: setPermissions(uint)
*/
@QtUninvokable
@Override
public boolean setPermissions(int perms){
return setPermissions_native_uint(QtJambi_LibraryUtilities.internal.nativeId(this), perms);
}
@QtUninvokable
private native boolean setPermissions_native_uint(long __this__nativeId, int perms);
/**
* See QAbstractFileEngine:: setSize(qint64)
*/
@QtUninvokable
@Override
public boolean setSize(long size){
return setSize_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native boolean setSize_native_qint64(long __this__nativeId, long size);
/**
* See QAbstractFileEngine:: size()const
*/
@QtUninvokable
@Override
public long size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long size_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: syncToDisk()
*/
@QtUninvokable
@Override
public boolean syncToDisk(){
return syncToDisk_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean syncToDisk_native(long __this__nativeId);
/**
* See QAbstractFileEngine:: write(const char*, qint64)
*/
@QtUninvokable
@Override
public int write(java.nio.@Nullable ByteBuffer data){
return write_native_const_char_ptr_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native int write_native_const_char_ptr_qint64(long __this__nativeId, java.nio.ByteBuffer data);
/**
* See QFSFileEngine:: currentPath(QString)
*/
public native static java.lang.@NonNull String currentPath(java.lang.@NonNull String path);
/**
* See QFSFileEngine:: drives()
*/
public native static io.qt.core.@NonNull QList drives();
/**
* See QFSFileEngine:: homePath()
*/
public native static java.lang.@NonNull String homePath();
/**
* See QFSFileEngine:: rootPath()
*/
public native static java.lang.@NonNull String rootPath();
/**
* See QFSFileEngine:: setCurrentPath(QString)
*/
public native static boolean setCurrentPath(java.lang.@NonNull String path);
/**
* See QFSFileEngine:: tempPath()
*/
public native static java.lang.@NonNull String tempPath();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QFSFileEngine(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #open(io.qt.core.QIODeviceBase.OpenMode, int, io.qt.core.QFileDevice.FileHandleFlags)}.
*/
@QtUninvokable
public final boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode flags, int fd, io.qt.core.QFileDevice.@NonNull FileHandleFlag @NonNull... handleFlags) {
return open(flags, fd, new io.qt.core.QFileDevice.FileHandleFlags(handleFlags));
}
/**
* Overloaded function for {@link #currentPath(java.lang.String)}
* with path = (String)null
.
*/
public static java.lang.@NonNull String currentPath() {
return currentPath((String)null);
}
}