io.qt.core.QDir Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Access to directory structures and their contents
* Java wrapper for Qt class QDir
*/
public class QDir extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QDir::Filter
*
* @see Filters
*/
public enum Filter implements QtFlagEnumerator {
/**
* Representing QDir:: Dirs
*/
Dirs(1),
/**
* Representing QDir:: Files
*/
Files(2),
/**
* Representing QDir:: Drives
*/
Drives(4),
/**
* Representing QDir:: NoSymLinks
*/
NoSymLinks(8),
/**
* Representing QDir:: AllEntries
*/
AllEntries(7),
/**
* Representing QDir:: TypeMask
*/
TypeMask(15),
/**
* Representing QDir:: Readable
*/
Readable(16),
/**
* Representing QDir:: Writable
*/
Writable(32),
/**
* Representing QDir:: Executable
*/
Executable(64),
/**
* Representing QDir:: PermissionMask
*/
PermissionMask(112),
/**
* Representing QDir:: Modified
*/
Modified(128),
/**
* Representing QDir:: Hidden
*/
Hidden(256),
/**
* Representing QDir:: System
*/
System(512),
/**
* Representing QDir:: AccessMask
*/
AccessMask(1008),
/**
* Representing QDir:: AllDirs
*/
AllDirs(1024),
/**
* Representing QDir:: CaseSensitive
*/
CaseSensitive(2048),
/**
* Representing QDir:: NoDot
*/
NoDot(8192),
/**
* Representing QDir:: NoDotDot
*/
NoDotDot(16384),
/**
* Representing QDir:: NoDotAndDotDot
*/
NoDotAndDotDot(24576),
/**
* Representing QDir:: NoFilter
*/
NoFilter(-1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Filter(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull Filters asFlags() {
return new Filters(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull Filters combined(@NonNull Filter 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 Filters cleared(@NonNull Filter e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link Filters} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull Filters flags(@Nullable Filter @NonNull... values) {
return new Filters(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Filter resolve(int value) {
switch (value) {
case 1: return Dirs;
case 2: return Files;
case 4: return Drives;
case 8: return NoSymLinks;
case 7: return AllEntries;
case 15: return TypeMask;
case 16: return Readable;
case 32: return Writable;
case 64: return Executable;
case 112: return PermissionMask;
case 128: return Modified;
case 256: return Hidden;
case 512: return System;
case 1008: return AccessMask;
case 1024: return AllDirs;
case 2048: return CaseSensitive;
case 8192: return NoDot;
case 16384: return NoDotDot;
case 24576: return NoDotAndDotDot;
case -1: return NoFilter;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link Filter}
*/
public static final class Filters extends QFlags implements Comparable {
private static final long serialVersionUID = 0xc2d660c7d79dfc86L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new Filters where the flags in args
are set.
* @param args enum entries
*/
public Filters(@Nullable Filter @NonNull... args){
super(args);
}
/**
* Creates a new Filters with given value
.
* @param value
*/
public Filters(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new Filters
*/
@Override
public final @NonNull Filters combined(@StrictNonNull Filter e){
return new Filters(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull Filters setFlag(@Nullable Filter 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 Filters setFlag(@Nullable Filter 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 Filters.
* @return array of enum entries
*/
@Override
public final @NonNull Filter @NonNull[] flags(){
return super.flags(Filter.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull Filters clone(){
return new Filters(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull Filters other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QDir::SortFlag
*
* @see SortFlags
*/
@QtRejectedEntries({"Unsorted"})
public enum SortFlag implements QtFlagEnumerator {
/**
* Representing QDir:: Name
*/
Name(0),
/**
* Representing QDir:: Time
*/
Time(1),
/**
* Representing QDir:: Size
*/
Size(2),
/**
* Representing QDir:: Unsorted
*/
Unsorted(3),
/**
* Representing QDir:: SortByMask
*/
SortByMask(3),
/**
* Representing QDir:: DirsFirst
*/
DirsFirst(4),
/**
* Representing QDir:: Reversed
*/
Reversed(8),
/**
* Representing QDir:: IgnoreCase
*/
IgnoreCase(16),
/**
* Representing QDir:: DirsLast
*/
DirsLast(32),
/**
* Representing QDir:: LocaleAware
*/
LocaleAware(64),
/**
* Representing QDir:: Type
*/
Type(128),
/**
* Representing QDir:: NoSort
*/
NoSort(-1);
static {
QtJambi_LibraryUtilities.initialize();
}
private SortFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull SortFlags asFlags() {
return new SortFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull SortFlags combined(@NonNull SortFlag 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 SortFlags cleared(@NonNull SortFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link SortFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull SortFlags flags(@Nullable SortFlag @NonNull... values) {
return new SortFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull SortFlag resolve(int value) {
switch (value) {
case 0: return Name;
case 1: return Time;
case 2: return Size;
case 3: return SortByMask;
case 4: return DirsFirst;
case 8: return Reversed;
case 16: return IgnoreCase;
case 32: return DirsLast;
case 64: return LocaleAware;
case 128: return Type;
case -1: return NoSort;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link SortFlag}
*/
public static final class SortFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0x2ad6d5206284dabbL;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new SortFlags where the flags in args
are set.
* @param args enum entries
*/
public SortFlags(@Nullable SortFlag @NonNull... args){
super(args);
}
/**
* Creates a new SortFlags with given value
.
* @param value
*/
public SortFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new SortFlags
*/
@Override
public final @NonNull SortFlags combined(@StrictNonNull SortFlag e){
return new SortFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull SortFlags setFlag(@Nullable SortFlag 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 SortFlags setFlag(@Nullable SortFlag 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 SortFlags.
* @return array of enum entries
*/
@Override
public final @NonNull SortFlag @NonNull[] flags(){
return super.flags(SortFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull SortFlags clone(){
return new SortFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull SortFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* See QDir:: QDir(QDir)
*/
public QDir(io.qt.core.@NonNull QDir arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QDir instance, io.qt.core.QDir arg__1);
/**
*
*/
public QDir(java.lang.@NonNull String path){
super((QPrivateConstructor)null);
initialize_native(this, path);
}
private native static void initialize_native(QDir instance, java.lang.String path);
/**
* See QDir:: QDir(QString, QString, QDir::SortFlags, QDir::Filters)
*/
public QDir(java.lang.@NonNull String path, java.lang.@NonNull String nameFilter, io.qt.core.QDir.@NonNull SortFlags sort, io.qt.core.QDir.@NonNull Filters filter){
super((QPrivateConstructor)null);
initialize_native(this, path, nameFilter, sort, filter);
}
private native static void initialize_native(QDir instance, java.lang.String path, java.lang.String nameFilter, io.qt.core.QDir.SortFlags sort, io.qt.core.QDir.Filters filter);
/**
* See QDir:: absoluteFilePath(QString)const
*/
@QtUninvokable
public final java.lang.@NonNull String absoluteFilePath(java.lang.@NonNull String fileName){
return absoluteFilePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native java.lang.String absoluteFilePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName);
/**
*
*/
@QtUninvokable
public final java.lang.@NonNull String absolutePath(){
return absolutePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String absolutePath_native_constfct(long __this__nativeId);
/**
* See QDir:: canonicalPath()const
*/
@QtUninvokable
public final java.lang.@NonNull String canonicalPath(){
return canonicalPath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String canonicalPath_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean cd(java.lang.@NonNull String dirName){
return cd_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), dirName);
}
@QtUninvokable
private native boolean cd_native_cref_QString(long __this__nativeId, java.lang.String dirName);
/**
* See QDir:: cdUp()
*/
@QtUninvokable
public final boolean cdUp(){
return cdUp_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean cdUp_native(long __this__nativeId);
/**
* See QDir:: count(Qt::Disambiguated_t)const
*/
@QtUninvokable
public final long count(){
return count_native_Qt_Disambiguated_t_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long count_native_Qt_Disambiguated_t_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final java.lang.@NonNull String dirName(){
return dirName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String dirName_native_constfct(long __this__nativeId);
/**
* See QDir:: entryInfoList(QDir::Filters, QDir::SortFlags)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlags sort){
return entryInfoList_native_QDir_Filters_QDir_SortFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), sort.value());
}
@QtUninvokable
private native io.qt.core.QList entryInfoList_native_QDir_Filters_QDir_SortFlags_constfct(long __this__nativeId, int filters, int sort);
/**
* See QDir:: entryInfoList(QStringList, QDir::Filters, QDir::SortFlags)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlags sort){
return entryInfoList_native_cref_QStringList_QDir_Filters_QDir_SortFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters, filters.value(), sort.value());
}
@QtUninvokable
private native io.qt.core.QList entryInfoList_native_cref_QStringList_QDir_Filters_QDir_SortFlags_constfct(long __this__nativeId, java.util.Collection nameFilters, int filters, int sort);
/**
* See QDir:: entryList(QDir::Filters, QDir::SortFlags)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlags sort){
return entryList_native_QDir_Filters_QDir_SortFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), sort.value());
}
@QtUninvokable
private native io.qt.core.QStringList entryList_native_QDir_Filters_QDir_SortFlags_constfct(long __this__nativeId, int filters, int sort);
/**
* See QDir:: entryList(QStringList, QDir::Filters, QDir::SortFlags)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlags sort){
return entryList_native_cref_QStringList_QDir_Filters_QDir_SortFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters, filters.value(), sort.value());
}
@QtUninvokable
private native io.qt.core.QStringList entryList_native_cref_QStringList_QDir_Filters_QDir_SortFlags_constfct(long __this__nativeId, java.util.Collection nameFilters, int filters, int sort);
/**
*
*/
@QtUninvokable
public final boolean exists(){
return exists_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean exists_native_constfct(long __this__nativeId);
/**
* See QDir:: exists(QString)const
*/
@QtUninvokable
public final boolean exists(java.lang.@NonNull String name){
return exists_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native boolean exists_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QDir:: 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);
/**
*
*/
@QtUninvokable
public final io.qt.core.QDir.@NonNull Filters filter(){
return new io.qt.core.QDir.Filters(filter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int filter_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isAbsolute(){
return isAbsolute_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAbsolute_native_constfct(long __this__nativeId);
/**
* See QDir:: isEmpty(QDir::Filters)const
*/
@QtUninvokable
public final boolean isEmpty(io.qt.core.QDir.@NonNull Filters filters){
return isEmpty_native_QDir_Filters_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value());
}
@QtUninvokable
private native boolean isEmpty_native_QDir_Filters_constfct(long __this__nativeId, int filters);
/**
*
*/
@QtUninvokable
public final boolean isReadable(){
return isReadable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isReadable_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isRelative(){
return isRelative_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRelative_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isRoot(){
return isRoot_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRoot_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean makeAbsolute(){
return makeAbsolute_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean makeAbsolute_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean mkdir(java.lang.@NonNull String dirName){
return mkdir_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName);
}
@QtUninvokable
private native boolean mkdir_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirName);
/**
* See QDir:: mkdir(QString, QFile::Permissions)const
*/
@QtUninvokable
public final boolean mkdir(java.lang.@NonNull String dirName, io.qt.core.QFileDevice.@NonNull Permissions permissions){
return mkdir_native_cref_QString_QFileDevice_Permissions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName, permissions.value());
}
@QtUninvokable
private native boolean mkdir_native_cref_QString_QFileDevice_Permissions_constfct(long __this__nativeId, java.lang.String dirName, int permissions);
/**
* See QDir:: mkpath(QString)const
*/
@QtUninvokable
public final boolean mkpath(java.lang.@NonNull String dirPath){
return mkpath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirPath);
}
@QtUninvokable
private native boolean mkpath_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirPath);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList nameFilters(){
return nameFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList nameFilters_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QDir arg__1){
assign_native_cref_QDir(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QDir(long __this__nativeId, long arg__1);
/**
* See QDir:: operator==(QDir)const
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QDir dir){
return equals_native_cref_QDir_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dir));
}
@QtUninvokable
private native boolean equals_native_cref_QDir_constfct(long __this__nativeId, long dir);
/**
* See QDir:: operator[](qsizetype)const
*/
@QtUninvokable
public final java.lang.@NonNull String get(long arg__1){
return get_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native java.lang.String get_native_qsizetype_constfct(long __this__nativeId, long arg__1);
/**
*
*/
@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 void refresh(){
refresh_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void refresh_native_constfct(long __this__nativeId);
/**
* See QDir:: relativeFilePath(QString)const
*/
@QtUninvokable
public final java.lang.@NonNull String relativeFilePath(java.lang.@NonNull String fileName){
return relativeFilePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native java.lang.String relativeFilePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName);
/**
*
*/
@QtUninvokable
public final boolean remove(java.lang.@NonNull String fileName){
return remove_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native boolean remove_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
*
*/
@QtUninvokable
public final boolean removeRecursively(){
return removeRecursively_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean removeRecursively_native(long __this__nativeId);
/**
* See QDir:: rename(QString, QString)
*/
@QtUninvokable
public final boolean rename(java.lang.@NonNull String oldName, java.lang.@NonNull String newName){
return rename_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), oldName, newName);
}
@QtUninvokable
private native boolean rename_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String oldName, java.lang.String newName);
/**
*
*/
@QtUninvokable
public final boolean rmdir(java.lang.@NonNull String dirName){
return rmdir_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName);
}
@QtUninvokable
private native boolean rmdir_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirName);
/**
* See QDir:: rmpath(QString)const
*/
@QtUninvokable
public final boolean rmpath(java.lang.@NonNull String dirPath){
return rmpath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirPath);
}
@QtUninvokable
private native boolean rmpath_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirPath);
/**
* See QDir:: setFilter(QDir::Filters)
*/
@QtUninvokable
public final void setFilter(io.qt.core.QDir.@NonNull Filters filter){
setFilter_native_QDir_Filters(QtJambi_LibraryUtilities.internal.nativeId(this), filter.value());
}
@QtUninvokable
private native void setFilter_native_QDir_Filters(long __this__nativeId, int filter);
/**
* See QDir:: setNameFilters(QStringList)
*/
@QtUninvokable
public final void setNameFilters(java.util.@NonNull Collection nameFilters){
setNameFilters_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters);
}
@QtUninvokable
private native void setNameFilters_native_cref_QStringList(long __this__nativeId, java.util.Collection nameFilters);
/**
*
*/
@QtUninvokable
public final void setPath(java.lang.@NonNull String path){
setPath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@QtUninvokable
private native void setPath_native_cref_QString(long __this__nativeId, java.lang.String path);
/**
* See QDir:: setSorting(QDir::SortFlags)
*/
@QtUninvokable
public final void setSorting(io.qt.core.QDir.@NonNull SortFlags sort){
setSorting_native_QDir_SortFlags(QtJambi_LibraryUtilities.internal.nativeId(this), sort.value());
}
@QtUninvokable
private native void setSorting_native_QDir_SortFlags(long __this__nativeId, int sort);
/**
*
*/
@QtUninvokable
public final io.qt.core.QDir.@NonNull SortFlags sorting(){
return new io.qt.core.QDir.SortFlags(sorting_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int sorting_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QDir other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QDir(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QDir(long __this__nativeId, long other);
/**
* See QDir:: addSearchPath(QString, QString)
*/
public native static void addSearchPath(java.lang.@NonNull String prefix, java.lang.@NonNull String path);
/**
*
*/
public native static java.lang.@NonNull String cleanPath(java.lang.@NonNull String path);
/**
* See QDir:: current()
*/
public native static io.qt.core.@NonNull QDir current();
/**
*
*/
public native static java.lang.@NonNull String currentPath();
/**
* See QDir:: drives()
*/
public native static io.qt.core.@NonNull QList drives();
/**
* See QDir:: fromNativeSeparators(QString)
*/
public native static java.lang.@NonNull String fromNativeSeparators(java.lang.@NonNull String pathName);
/**
* See QDir:: home()
*/
public native static io.qt.core.@NonNull QDir home();
/**
* See QDir:: homePath()
*/
public native static java.lang.@NonNull String homePath();
/**
* See QDir:: isAbsolutePath(QString)
*/
public native static boolean isAbsolutePath(java.lang.@NonNull String path);
/**
* See QDir:: isRelativePath(QString)
*/
public native static boolean isRelativePath(java.lang.@NonNull String path);
/**
*
*/
public native static char listSeparator();
/**
* See QDir:: match(QString, QString)
*/
public native static boolean match(java.lang.@NonNull String filter, java.lang.@NonNull String fileName);
/**
* See QDir:: match(QStringList, QString)
*/
public native static boolean match(java.util.@NonNull Collection filters, java.lang.@NonNull String fileName);
/**
* See QDir:: nameFiltersFromString(QString)
*/
public native static io.qt.core.@NonNull QStringList nameFiltersFromString(java.lang.@NonNull String nameFilter);
/**
* See QDir:: root()
*/
public native static io.qt.core.@NonNull QDir root();
/**
* See QDir:: rootPath()
*/
public native static java.lang.@NonNull String rootPath();
/**
* See QDir:: searchPaths(QString)
*/
public native static io.qt.core.@NonNull QStringList searchPaths(java.lang.@NonNull String prefix);
/**
*
*/
public native static char separator();
/**
*
*/
public native static boolean setCurrent(java.lang.@NonNull String path);
/**
* See QDir:: setSearchPaths(QString, QStringList)
*/
public native static void setSearchPaths(java.lang.@NonNull String prefix, java.util.@NonNull Collection searchPaths);
/**
* See QDir:: temp()
*/
public native static io.qt.core.@NonNull QDir temp();
/**
* See QDir:: tempPath()
*/
public native static java.lang.@NonNull String tempPath();
/**
* See QDir:: toNativeSeparators(QString)
*/
public native static java.lang.@NonNull String toNativeSeparators(java.lang.@NonNull String pathName);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDir(QPrivateConstructor p) { super(p); }
/**
* See QDir:: operator==(QDir)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QDir) {
return equals((io.qt.core.QDir) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QDir)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Overloaded function for {@link #entryInfoList(QDir.Filters, QDir.SortFlags)}
* with sort = new QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final @NonNull QList<@NonNull QFileInfo> entryInfoList(QDir.@NonNull Filter @NonNull... filters) {
return entryInfoList(new QDir.Filters(filters), new QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(QDir.Filters, QDir.SortFlags)}
* with sort = new QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final @NonNull QStringList entryList(QDir.@NonNull Filter @NonNull... filters) {
return entryList(new QDir.Filters(filters), new QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(java.util.Collection, QDir.Filters, QDir.SortFlags)}
* with sort = new QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final @NonNull QStringList entryList(java.util.Collection nameFilters, QDir.@NonNull Filter @NonNull... filters) {
return entryList(nameFilters, new QDir.Filters(filters), new QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryInfoList(java.util.Collection, QDir.Filters, QDir.SortFlags)}
* with sort = new QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final @NonNull QList<@NonNull QFileInfo> entryInfoList(java.util.Collection nameFilters, QDir.@NonNull Filter @NonNull... filters) {
return entryInfoList(nameFilters, new QDir.Filters(filters), new QDir.SortFlags(-1));
}
/**
* See operator<<(QDebug, QDir)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QDir:: QDir(QDir)
*/
@QtUninvokable
@Override
public QDir clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QDir clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QDir(java.lang.String)}
* with path = (String)null
.
*/
public QDir() {
this((String)null);
}
/**
* Overloaded constructor for {@link #QDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)}
* with filter = new io.qt.core.QDir.Filters(7)
.
*/
public QDir(java.lang.@NonNull String path, java.lang.@NonNull String nameFilter, io.qt.core.QDir.@NonNull SortFlags sort) {
this(path, nameFilter, sort, new io.qt.core.QDir.Filters(7));
}
/**
* Overloaded constructor for {@link #QDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)}
* with:
* sort = new io.qt.core.QDir.SortFlags(SortFlag.Name, SortFlag.IgnoreCase)
* filter = new io.qt.core.QDir.Filters(7)
*
*/
public QDir(java.lang.@NonNull String path, java.lang.@NonNull String nameFilter) {
this(path, nameFilter, new io.qt.core.QDir.SortFlags(SortFlag.Name, SortFlag.IgnoreCase), new io.qt.core.QDir.Filters(7));
}
/**
* Overloaded constructor for {@link #QDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)}.
*/
public QDir(java.lang.@NonNull String path, java.lang.@NonNull String nameFilter, io.qt.core.QDir.@NonNull SortFlags sort, io.qt.core.QDir.@NonNull Filter @NonNull... filter) {
this(path, nameFilter, sort, new io.qt.core.QDir.Filters(filter));
}
/**
* Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with sort = new io.qt.core.QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(io.qt.core.QDir.@NonNull Filters filters) {
return entryInfoList(filters, new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with:
* filters = new io.qt.core.QDir.Filters(-1)
* sort = new io.qt.core.QDir.SortFlags(-1)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList() {
return entryInfoList(new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlag @NonNull... sort) {
return entryInfoList(filters, new io.qt.core.QDir.SortFlags(sort));
}
/**
* Overloaded function for {@link #entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with sort = new io.qt.core.QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters) {
return entryInfoList(nameFilters, filters, new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with:
* filters = new io.qt.core.QDir.Filters(-1)
* sort = new io.qt.core.QDir.SortFlags(-1)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(java.util.@NonNull Collection nameFilters) {
return entryInfoList(nameFilters, new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QList entryInfoList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlag @NonNull... sort) {
return entryInfoList(nameFilters, filters, new io.qt.core.QDir.SortFlags(sort));
}
/**
* Overloaded function for {@link #entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with sort = new io.qt.core.QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(io.qt.core.QDir.@NonNull Filters filters) {
return entryList(filters, new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with:
* filters = new io.qt.core.QDir.Filters(-1)
* sort = new io.qt.core.QDir.SortFlags(-1)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList() {
return entryList(new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlag @NonNull... sort) {
return entryList(filters, new io.qt.core.QDir.SortFlags(sort));
}
/**
* Overloaded function for {@link #entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with sort = new io.qt.core.QDir.SortFlags(-1)
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters) {
return entryList(nameFilters, filters, new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}
* with:
* filters = new io.qt.core.QDir.Filters(-1)
* sort = new io.qt.core.QDir.SortFlags(-1)
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(java.util.@NonNull Collection nameFilters) {
return entryList(nameFilters, new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1));
}
/**
* Overloaded function for {@link #entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList entryList(java.util.@NonNull Collection nameFilters, io.qt.core.QDir.@NonNull Filters filters, io.qt.core.QDir.@NonNull SortFlag @NonNull... sort) {
return entryList(nameFilters, filters, new io.qt.core.QDir.SortFlags(sort));
}
/**
* Overloaded function for {@link #isEmpty(io.qt.core.QDir.Filters)}
* with filters = new io.qt.core.QDir.Filters(24583)
.
*/
@QtUninvokable
public final boolean isEmpty() {
return isEmpty(new io.qt.core.QDir.Filters(24583));
}
/**
* Overloaded function for {@link #isEmpty(io.qt.core.QDir.Filters)}.
*/
@QtUninvokable
public final boolean isEmpty(io.qt.core.QDir.@NonNull Filter @NonNull... filters) {
return isEmpty(new io.qt.core.QDir.Filters(filters));
}
/**
* Overloaded function for {@link #mkdir(java.lang.String, io.qt.core.QFileDevice.Permissions)}.
*/
@QtUninvokable
public final boolean mkdir(java.lang.@NonNull String dirName, io.qt.core.QFileDevice.@NonNull Permission @NonNull... permissions) {
return mkdir(dirName, new io.qt.core.QFileDevice.Permissions(permissions));
}
/**
* Overloaded function for {@link #assign(io.qt.core.QDir)}.
*/
@QtUninvokable
public final void assign(java.lang.@NonNull String arg__1) {
assign(new io.qt.core.QDir(arg__1));
}
/**
* Overloaded function for {@link #equals(io.qt.core.QDir)}.
*/
@QtUninvokable
public final boolean equals(java.lang.@NonNull String dir) {
return equals(new io.qt.core.QDir(dir));
}
/**
* Delegate for {@link #get(long)}.
*/
@QtUninvokable
public final java.lang.@NonNull String at(long arg__1) {
return get(arg__1);
}
/**
* Overloaded function for {@link #setFilter(io.qt.core.QDir.Filters)}.
*/
@QtUninvokable
public final void setFilter(io.qt.core.QDir.@NonNull Filter @NonNull... filter) {
setFilter(new io.qt.core.QDir.Filters(filter));
}
/**
* Overloaded function for {@link #setSorting(io.qt.core.QDir.SortFlags)}.
*/
@QtUninvokable
public final void setSorting(io.qt.core.QDir.@NonNull SortFlag @NonNull... sort) {
setSorting(new io.qt.core.QDir.SortFlags(sort));
}
}