io.qt.core.internal.QAbstractFileEngine Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core.internal;
import io.qt.*;
/**
* Java wrapper for Qt class QAbstractFileEngine
*/
public class QAbstractFileEngine extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QAbstractFileEngine::FileFlag
*
* @see FileFlags
*/
public enum FileFlag implements QtFlagEnumerator {
/**
* Representing QAbstractFileEngine:: ReadOwnerPerm
*/
ReadOwnerPerm(16384),
/**
* Representing QAbstractFileEngine:: WriteOwnerPerm
*/
WriteOwnerPerm(8192),
/**
* Representing QAbstractFileEngine:: ExeOwnerPerm
*/
ExeOwnerPerm(4096),
/**
* Representing QAbstractFileEngine:: ReadUserPerm
*/
ReadUserPerm(1024),
/**
* Representing QAbstractFileEngine:: WriteUserPerm
*/
WriteUserPerm(512),
/**
* Representing QAbstractFileEngine:: ExeUserPerm
*/
ExeUserPerm(256),
/**
* Representing QAbstractFileEngine:: ReadGroupPerm
*/
ReadGroupPerm(64),
/**
* Representing QAbstractFileEngine:: WriteGroupPerm
*/
WriteGroupPerm(32),
/**
* Representing QAbstractFileEngine:: ExeGroupPerm
*/
ExeGroupPerm(16),
/**
* Representing QAbstractFileEngine:: ReadOtherPerm
*/
ReadOtherPerm(4),
/**
* Representing QAbstractFileEngine:: WriteOtherPerm
*/
WriteOtherPerm(2),
/**
* Representing QAbstractFileEngine:: ExeOtherPerm
*/
ExeOtherPerm(1),
/**
* Representing QAbstractFileEngine:: LinkType
*/
LinkType(65536),
/**
* Representing QAbstractFileEngine:: FileType
*/
FileType(131072),
/**
* Representing QAbstractFileEngine:: DirectoryType
*/
DirectoryType(262144),
/**
* Representing QAbstractFileEngine:: BundleType
*/
BundleType(524288),
/**
* Representing QAbstractFileEngine:: HiddenFlag
*/
HiddenFlag(1048576),
/**
* Representing QAbstractFileEngine:: LocalDiskFlag
*/
LocalDiskFlag(2097152),
/**
* Representing QAbstractFileEngine:: ExistsFlag
*/
ExistsFlag(4194304),
/**
* Representing QAbstractFileEngine:: RootFlag
*/
RootFlag(8388608),
/**
* Representing QAbstractFileEngine:: Refresh
*/
Refresh(16777216),
/**
* Representing QAbstractFileEngine:: PermsMask
*/
PermsMask(65535),
/**
* Representing QAbstractFileEngine:: TypesMask
*/
TypesMask(983040),
/**
* Representing QAbstractFileEngine:: FlagsMask
*/
FlagsMask(267386880),
/**
* Representing QAbstractFileEngine:: FileInfoAll
*/
FileInfoAll(268435455);
static {
QtJambi_LibraryUtilities.initialize();
}
private FileFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull FileFlags asFlags() {
return new FileFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull FileFlags combined(@NonNull FileFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull FileFlags cleared(@NonNull FileFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link FileFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull FileFlags flags(@Nullable FileFlag @NonNull... values) {
return new FileFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FileFlag resolve(int value) {
switch (value) {
case 16384: return ReadOwnerPerm;
case 8192: return WriteOwnerPerm;
case 4096: return ExeOwnerPerm;
case 1024: return ReadUserPerm;
case 512: return WriteUserPerm;
case 256: return ExeUserPerm;
case 64: return ReadGroupPerm;
case 32: return WriteGroupPerm;
case 16: return ExeGroupPerm;
case 4: return ReadOtherPerm;
case 2: return WriteOtherPerm;
case 1: return ExeOtherPerm;
case 65536: return LinkType;
case 131072: return FileType;
case 262144: return DirectoryType;
case 524288: return BundleType;
case 1048576: return HiddenFlag;
case 2097152: return LocalDiskFlag;
case 4194304: return ExistsFlag;
case 8388608: return RootFlag;
case 16777216: return Refresh;
case 65535: return PermsMask;
case 983040: return TypesMask;
case 267386880: return FlagsMask;
case 268435455: return FileInfoAll;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link FileFlag}
*/
public static final class FileFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0x9b0008f5012c2a80L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new FileFlags where the flags in args
are set.
* @param args enum entries
*/
public FileFlags(@Nullable FileFlag @NonNull... args){
super(args);
}
/**
* Creates a new FileFlags with given value
.
* @param value
*/
public FileFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new FileFlags
*/
@Override
public final @NonNull FileFlags combined(@StrictNonNull FileFlag e){
return new FileFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull FileFlags setFlag(@Nullable FileFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull FileFlags setFlag(@Nullable FileFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this FileFlags.
* @return array of enum entries
*/
@Override
public final @NonNull FileFlag @NonNull[] flags(){
return super.flags(FileFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull FileFlags clone(){
return new FileFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull FileFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QAbstractFileEngine::FileName
*/
public enum FileName implements QtEnumerator {
/**
* Representing QAbstractFileEngine:: DefaultName
*/
DefaultName(0),
/**
* Representing QAbstractFileEngine:: BaseName
*/
BaseName(1),
/**
* Representing QAbstractFileEngine:: PathName
*/
PathName(2),
/**
* Representing QAbstractFileEngine:: AbsoluteName
*/
AbsoluteName(3),
/**
* Representing QAbstractFileEngine:: AbsolutePathName
*/
AbsolutePathName(4),
/**
* Representing QAbstractFileEngine:: AbsoluteLinkTarget
*/
AbsoluteLinkTarget(5),
/**
* Representing QAbstractFileEngine:: CanonicalName
*/
CanonicalName(6),
/**
* Representing QAbstractFileEngine:: CanonicalPathName
*/
CanonicalPathName(7),
/**
* Representing QAbstractFileEngine:: BundleName
*/
BundleName(8),
/**
* Representing QAbstractFileEngine:: JunctionName
*/
JunctionName(9),
/**
* Representing QAbstractFileEngine:: RawLinkPath
*/
RawLinkPath(10),
/**
* Representing QAbstractFileEngine:: NFileNames
*/
NFileNames(11);
static {
QtJambi_LibraryUtilities.initialize();
}
private FileName(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FileName resolve(int value) {
switch (value) {
case 0: return DefaultName;
case 1: return BaseName;
case 2: return PathName;
case 3: return AbsoluteName;
case 4: return AbsolutePathName;
case 5: return AbsoluteLinkTarget;
case 6: return CanonicalName;
case 7: return CanonicalPathName;
case 8: return BundleName;
case 9: return JunctionName;
case 10: return RawLinkPath;
case 11: return NFileNames;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QAbstractFileEngine::FileOwner
*/
public enum FileOwner implements QtEnumerator {
/**
* Representing QAbstractFileEngine:: OwnerUser
*/
OwnerUser(0),
/**
* Representing QAbstractFileEngine:: OwnerGroup
*/
OwnerGroup(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private FileOwner(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FileOwner resolve(int value) {
switch (value) {
case 0: return OwnerUser;
case 1: return OwnerGroup;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QAbstractFileEngine::FileTime
*/
public enum FileTime implements QtEnumerator {
/**
* Representing QAbstractFileEngine:: AccessTime
*/
AccessTime(0),
/**
* Representing QAbstractFileEngine:: BirthTime
*/
BirthTime(1),
/**
* Representing QAbstractFileEngine:: MetadataChangeTime
*/
MetadataChangeTime(2),
/**
* Representing QAbstractFileEngine:: ModificationTime
*/
ModificationTime(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private FileTime(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull FileTime resolve(int value) {
switch (value) {
case 0: return AccessTime;
case 1: return BirthTime;
case 2: return MetadataChangeTime;
case 3: return ModificationTime;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QAbstractFileEngine:: QAbstractFileEngine()
*/
protected QAbstractFileEngine(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QAbstractFileEngine instance);
/**
* See QAbstractFileEngine:: atEnd()const
*/
@QtUninvokable
public final boolean atEnd(){
return atEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean atEnd_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: error()const
*/
@QtUninvokable
public final io.qt.core.QFileDevice.@NonNull FileError error(){
return io.qt.core.QFileDevice.FileError.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: 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 QAbstractFileEngine:: map(qint64, qint64, QFile::MemoryMapFlags)
*/
@QtUninvokable
public final java.nio.@Nullable ByteBuffer map(long offset, long size, io.qt.core.QFileDevice.@NonNull MemoryMapFlags flags){
return map_native_qint64_qint64_QFileDevice_MemoryMapFlags(QtJambi_LibraryUtilities.internal.nativeId(this), offset, size, flags.value());
}
@QtUninvokable
private native java.nio.ByteBuffer map_native_qint64_qint64_QFileDevice_MemoryMapFlags(long __this__nativeId, long offset, long size, int flags);
/**
* See QAbstractFileEngine:: setError(QFile::FileError, QString)
*/
@QtUninvokable
protected final void setError(io.qt.core.QFileDevice.@NonNull FileError error, java.lang.@NonNull String str){
setError_native_QFileDevice_FileError_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), error.value(), str);
}
@QtUninvokable
private native void setError_native_QFileDevice_FileError_cref_QString(long __this__nativeId, int error, java.lang.String str);
/**
* See QAbstractFileEngine:: unmap(uchar*)
*/
@QtUninvokable
public final boolean unmap(java.nio.@Nullable ByteBuffer ptr){
boolean __qt_return_value = unmap_native_uchar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), ptr);
if(__qt_return_value && ptr!=null)
((java.nio.Buffer)ptr).limit(0);
return __qt_return_value;
}
@QtUninvokable
private native boolean unmap_native_uchar_ptr(long __this__nativeId, java.nio.ByteBuffer ptr);
/**
* See QAbstractFileEngine:: beginEntryList(QDir::Filters, QStringList)
*/
@QtUninvokable
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
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
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
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
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
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
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
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
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
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
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
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
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
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
public boolean isSequential(){
return isSequential_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSequential_native_constfct(long __this__nativeId);
/**
* See QAbstractFileEngine:: link(QString)
*/
@QtUninvokable
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
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
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
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
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
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
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
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
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
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
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
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
public boolean seek(long pos){
return seek_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), pos);
}
@QtUninvokable
private native boolean seek_native_qint64(long __this__nativeId, long pos);
/**
* See QAbstractFileEngine:: setFileName(QString)
*/
@QtUninvokable
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
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
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
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
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
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
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 QAbstractFileEngine:: create(QString)
*/
public native static io.qt.core.internal.@Nullable QAbstractFileEngine create(java.lang.@NonNull String fileName);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractFileEngine(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #map(long, long, io.qt.core.QFileDevice.MemoryMapFlags)}.
*/
@QtUninvokable
public final java.nio.@Nullable ByteBuffer map(long offset, long size, io.qt.core.QFileDevice.@NonNull MemoryMapFlag @NonNull... flags) {
return map(offset, size, new io.qt.core.QFileDevice.MemoryMapFlags(flags));
}
/**
* Overloaded function for {@link #fileFlags(io.qt.core.internal.QAbstractFileEngine.FileFlags)}
* with type = new io.qt.core.internal.QAbstractFileEngine.FileFlags(268435455)
.
*/
@QtUninvokable
public final io.qt.core.internal.QAbstractFileEngine.@NonNull FileFlags fileFlags() {
return fileFlags(new io.qt.core.internal.QAbstractFileEngine.FileFlags(268435455));
}
/**
* Overloaded function for {@link #fileFlags(io.qt.core.internal.QAbstractFileEngine.FileFlags)}.
*/
@QtUninvokable
public final io.qt.core.internal.QAbstractFileEngine.@NonNull FileFlags fileFlags(io.qt.core.internal.QAbstractFileEngine.@NonNull FileFlag @NonNull... type) {
return fileFlags(new io.qt.core.internal.QAbstractFileEngine.FileFlags(type));
}
/**
* Overloaded function for {@link #fileName(io.qt.core.internal.QAbstractFileEngine.FileName)}
* with file = io.qt.core.internal.QAbstractFileEngine.FileName.DefaultName
.
*/
@QtUninvokable
public final java.lang.@NonNull String fileName() {
return fileName(io.qt.core.internal.QAbstractFileEngine.FileName.DefaultName);
}
/**
* Overloaded function for {@link #mkdir(java.lang.String, boolean, java.util.Optional)}
* with permissions = java.util.Optional.empty()
.
*/
@QtUninvokable
public final boolean mkdir(java.lang.@NonNull String dirName, boolean createParentDirectories) {
return mkdir(dirName, createParentDirectories, java.util.Optional.empty());
}
/**
* Overloaded function for {@link #open(io.qt.core.QIODeviceBase.OpenMode, java.util.Optional)}
* with permissions = java.util.Optional.empty()
.
*/
@QtUninvokable
public final boolean open(io.qt.core.QIODeviceBase.@NonNull OpenMode openMode) {
return open(openMode, java.util.Optional.empty());
}
/**
* Overloaded function for {@link #read(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int read(byte[] data, int offsetOfData, int maxlen) {
return read(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, maxlen));
}
/**
* Overloaded function for {@link #read(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int read(byte[] data) {
return read(data==null ? null : java.nio.ByteBuffer.wrap(data));
}
/**
* Overloaded function for {@link #readLine(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int readLine(byte[] data, int offsetOfData, int maxlen) {
return readLine(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, maxlen));
}
/**
* Overloaded function for {@link #readLine(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int readLine(byte[] data) {
return readLine(data==null ? null : java.nio.ByteBuffer.wrap(data));
}
/**
* Overloaded function for {@link #write(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int write(byte[] data, int offsetOfData, int len) {
return write(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, len));
}
/**
* Overloaded function for {@link #write(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final int write(byte[] data) {
return write(data==null ? null : java.nio.ByteBuffer.wrap(data));
}
}