All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QDir Maven / Gradle / Ivy

The newest version!
package io.qt.core;


/**
 * 

Access to directory structures and their contents

*

Java wrapper for Qt class QDir

*/ public class QDir extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QDir::Filter

* * @see Filters */ public enum Filter implements io.qt.QtFlagEnumerator { Dirs(1), Files(2), Drives(4), NoSymLinks(8), AllEntries(7), TypeMask(15), Readable(16), Writable(32), Executable(64), PermissionMask(112), Modified(128), Hidden(256), System(512), AccessMask(1008), AllDirs(1024), CaseSensitive(2048), NoDot(8192), NoDotDot(16384), NoDotAndDotDot(24576), NoFilter(-1); private Filter(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public Filters asFlags() { return new Filters(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public Filters combined(Filter e) { return new Filters(this, e); } /** * Creates a new {@link Filters} from the entries. * @param values entries * @return new flag */ public static Filters flags(Filter ... values) { return new Filters(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link Filter} */ public static final class Filters extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0xc2d660c7d79dfc86L; /** * Creates a new Filters where the flags in args are set. * @param args enum entries */ public Filters(Filter ... 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 Filters combined(Filter e){ return new Filters(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final Filters setFlag(Filter e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final Filters setFlag(Filter e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this Filters. * @return array of enum entries */ @Override public final Filter[] flags(){ return super.flags(Filter.values()); } /** * {@inheritDoc} */ @Override public final Filters clone(){ return new Filters(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(Filters other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QDir::SortFlag

* * @see SortFlags */ @io.qt.QtRejectedEntries({"Unsorted"}) public enum SortFlag implements io.qt.QtFlagEnumerator { Name(0), Time(1), Size(2), Unsorted(3), SortByMask(3), DirsFirst(4), Reversed(8), IgnoreCase(16), DirsLast(32), LocaleAware(64), Type(128), NoSort(-1); private SortFlag(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public SortFlags asFlags() { return new SortFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public SortFlags combined(SortFlag e) { return new SortFlags(this, e); } /** * Creates a new {@link SortFlags} from the entries. * @param values entries * @return new flag */ public static SortFlags flags(SortFlag ... values) { return new SortFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link SortFlag} */ public static final class SortFlags extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0x2ad6d5206284dabbL; /** * Creates a new SortFlags where the flags in args are set. * @param args enum entries */ public SortFlags(SortFlag ... 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 SortFlags combined(SortFlag e){ return new SortFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final SortFlags setFlag(SortFlag e){ super.setFlag(e); return this; } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final SortFlags setFlag(SortFlag e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this SortFlags. * @return array of enum entries */ @Override public final SortFlag[] flags(){ return super.flags(SortFlag.values()); } /** * {@inheritDoc} */ @Override public final SortFlags clone(){ return new SortFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(SortFlags other){ return Integer.compare(value(), other.value()); } } /** *

See QDir::QDir(QDir)

*/ public QDir(io.qt.core.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); /** *

Overloaded constructor for {@link #QDir(java.lang.String)} * with path = "".

*/ public QDir() { this(""); } /** *

See QDir::QDir(QString)

*/ public QDir(java.lang.String path){ super((QPrivateConstructor)null); initialize_native(this, path); } private native static void initialize_native(QDir instance, java.lang.String path); /** *

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.String path, java.lang.String nameFilter, io.qt.core.QDir.SortFlags sort, io.qt.core.QDir.Filter ... filter){ this(path, nameFilter, sort, new io.qt.core.QDir.Filters(filter)); } /** *

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.String path, java.lang.String nameFilter, io.qt.core.QDir.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.String path, java.lang.String nameFilter) { this(path, nameFilter, new io.qt.core.QDir.SortFlags(SortFlag.Name, SortFlag.IgnoreCase), new io.qt.core.QDir.Filters(7)); } /** *

See QDir::QDir(QString,QString,SortFlags,Filters)

*/ public QDir(java.lang.String path, java.lang.String nameFilter, io.qt.core.QDir.SortFlags sort, io.qt.core.QDir.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

*/ @io.qt.QtUninvokable public final java.lang.String absoluteFilePath(java.lang.String fileName){ return absoluteFilePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native java.lang.String absoluteFilePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName); /** *

See QDir::absolutePath()const

*/ @io.qt.QtUninvokable public final java.lang.String absolutePath(){ return absolutePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String absolutePath_native_constfct(long __this__nativeId); /** *

See QDir::canonicalPath()const

*/ @io.qt.QtUninvokable public final java.lang.String canonicalPath(){ return canonicalPath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String canonicalPath_native_constfct(long __this__nativeId); /** *

See QDir::cd(QString)

*/ @io.qt.QtUninvokable public final boolean cd(java.lang.String dirName){ return cd_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), dirName); } @io.qt.QtUninvokable private native boolean cd_native_cref_QString(long __this__nativeId, java.lang.String dirName); /** *

See QDir::cdUp()

*/ @io.qt.QtUninvokable public final boolean cdUp(){ return cdUp_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean cdUp_native(long __this__nativeId); /** *

See QDir::count()const

*/ @io.qt.QtUninvokable public final int count(){ return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int count_native_constfct(long __this__nativeId); /** *

See QDir::dirName()const

*/ @io.qt.QtUninvokable public final java.lang.String dirName(){ return dirName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String dirName_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlag ... sort){ return entryInfoList(filters, new io.qt.core.QDir.SortFlags(sort)); } /** *

Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)} * with sort = new io.qt.core.QDir.SortFlags(-1).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(io.qt.core.QDir.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)
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList() { return entryInfoList(new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1)); } /** *

See QDir::entryInfoList(Filters,SortFlags)const

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlags sort){ return entryInfoList_native_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), sort.value()); } @io.qt.QtUninvokable private native io.qt.core.QList entryInfoList_native_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(long __this__nativeId, int filters, int sort); /** *

Overloaded function for {@link #entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(java.util.Collection nameFilters, io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlag ... sort){ return entryInfoList(nameFilters, 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).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(java.util.Collection nameFilters, io.qt.core.QDir.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)
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(java.util.Collection nameFilters) { return entryInfoList(nameFilters, new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1)); } /** *

See QDir::entryInfoList(QStringList,Filters,SortFlags)const

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(java.util.Collection nameFilters, io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlags sort){ return entryInfoList_native_cref_QStringList_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters, filters.value(), sort.value()); } @io.qt.QtUninvokable private native io.qt.core.QList entryInfoList_native_cref_QStringList_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(long __this__nativeId, java.util.Collection nameFilters, int filters, int sort); /** *

Overloaded function for {@link #entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlag ... sort){ return entryList(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).

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(io.qt.core.QDir.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)
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList() { return entryList(new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1)); } /** *

See QDir::entryList(Filters,SortFlags)const

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlags sort){ return entryList_native_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value(), sort.value()); } @io.qt.QtUninvokable private native io.qt.core.QStringList entryList_native_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(long __this__nativeId, int filters, int sort); /** *

Overloaded function for {@link #entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)}.

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(java.util.Collection nameFilters, io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlag ... sort){ return entryList(nameFilters, 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).

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(java.util.Collection nameFilters, io.qt.core.QDir.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)
  • *
*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(java.util.Collection nameFilters) { return entryList(nameFilters, new io.qt.core.QDir.Filters(-1), new io.qt.core.QDir.SortFlags(-1)); } /** *

See QDir::entryList(QStringList,Filters,SortFlags)const

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList entryList(java.util.Collection nameFilters, io.qt.core.QDir.Filters filters, io.qt.core.QDir.SortFlags sort){ return entryList_native_cref_QStringList_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters, filters.value(), sort.value()); } @io.qt.QtUninvokable private native io.qt.core.QStringList entryList_native_cref_QStringList_QFlags_QDir_Filter__QFlags_QDir_SortFlag__constfct(long __this__nativeId, java.util.Collection nameFilters, int filters, int sort); /** *

See QDir::exists()const

*/ @io.qt.QtUninvokable public final boolean exists(){ return exists_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean exists_native_constfct(long __this__nativeId); /** *

See QDir::exists(QString)const

*/ @io.qt.QtUninvokable public final boolean exists(java.lang.String name){ return exists_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @io.qt.QtUninvokable private native boolean exists_native_cref_QString_constfct(long __this__nativeId, java.lang.String name); /** *

See QDir::filePath(QString)const

*/ @io.qt.QtUninvokable public final java.lang.String filePath(java.lang.String fileName){ return filePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native java.lang.String filePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName); /** *

See QDir::filter()const

*/ @io.qt.QtUninvokable public final io.qt.core.QDir.Filters filter(){ return new io.qt.core.QDir.Filters(filter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int filter_native_constfct(long __this__nativeId); /** *

See QDir::isAbsolute()const

*/ @io.qt.QtUninvokable public final boolean isAbsolute(){ return isAbsolute_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isAbsolute_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #isEmpty(io.qt.core.QDir.Filters)}.

*/ @io.qt.QtUninvokable public final boolean isEmpty(io.qt.core.QDir.Filter ... filters){ return isEmpty(new io.qt.core.QDir.Filters(filters)); } /** *

Overloaded function for {@link #isEmpty(io.qt.core.QDir.Filters)} * with filters = new io.qt.core.QDir.Filters(24583).

*/ @io.qt.QtUninvokable public final boolean isEmpty() { return isEmpty(new io.qt.core.QDir.Filters(24583)); } /** *

See QDir::isEmpty(Filters)const

*/ @io.qt.QtUninvokable public final boolean isEmpty(io.qt.core.QDir.Filters filters){ return isEmpty_native_QFlags_QDir_Filter__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), filters.value()); } @io.qt.QtUninvokable private native boolean isEmpty_native_QFlags_QDir_Filter__constfct(long __this__nativeId, int filters); /** *

See QDir::isReadable()const

*/ @io.qt.QtUninvokable public final boolean isReadable(){ return isReadable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isReadable_native_constfct(long __this__nativeId); /** *

See QDir::isRelative()const

*/ @io.qt.QtUninvokable public final boolean isRelative(){ return isRelative_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isRelative_native_constfct(long __this__nativeId); /** *

See QDir::isRoot()const

*/ @io.qt.QtUninvokable public final boolean isRoot(){ return isRoot_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isRoot_native_constfct(long __this__nativeId); /** *

See QDir::makeAbsolute()

*/ @io.qt.QtUninvokable public final boolean makeAbsolute(){ return makeAbsolute_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean makeAbsolute_native(long __this__nativeId); /** *

See QDir::mkdir(QString)const

*/ @io.qt.QtUninvokable public final boolean mkdir(java.lang.String dirName){ return mkdir_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName); } @io.qt.QtUninvokable private native boolean mkdir_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirName); /** *

Overloaded function for {@link #mkdir(java.lang.String, io.qt.core.QFileDevice.Permissions)}.

*/ @io.qt.QtUninvokable public final boolean mkdir(java.lang.String dirName, io.qt.core.QFileDevice.Permission ... permissions){ return mkdir(dirName, new io.qt.core.QFileDevice.Permissions(permissions)); } /** *

See QDir::mkdir(QString,QFile::Permissions)const

*/ @io.qt.QtUninvokable public final boolean mkdir(java.lang.String dirName, io.qt.core.QFileDevice.Permissions permissions){ return mkdir_native_cref_QString_QFlags_QFileDevice_Permission__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName, permissions.value()); } @io.qt.QtUninvokable private native boolean mkdir_native_cref_QString_QFlags_QFileDevice_Permission__constfct(long __this__nativeId, java.lang.String dirName, int permissions); /** *

See QDir::mkpath(QString)const

*/ @io.qt.QtUninvokable public final boolean mkpath(java.lang.String dirPath){ return mkpath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirPath); } @io.qt.QtUninvokable private native boolean mkpath_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirPath); /** *

See QDir::nameFilters()const

*/ @io.qt.QtUninvokable public final io.qt.core.QStringList nameFilters(){ return nameFilters_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QStringList nameFilters_native_constfct(long __this__nativeId); /** *

See QDir::operator==(QDir)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QDir dir){ return operator_equal_native_cref_QDir_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dir)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QDir_constfct(long __this__nativeId, long dir); /** *

See QDir::operator[](int)const

*/ @io.qt.QtUninvokable public final java.lang.String at(int arg__1){ return at_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @io.qt.QtUninvokable private native java.lang.String at_native_int_constfct(long __this__nativeId, int arg__1); /** *

See QDir::path()const

*/ @io.qt.QtUninvokable public final java.lang.String path(){ return path_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String path_native_constfct(long __this__nativeId); /** *

See QDir::refresh()const

*/ @io.qt.QtUninvokable public final void refresh(){ refresh_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void refresh_native_constfct(long __this__nativeId); /** *

See QDir::relativeFilePath(QString)const

*/ @io.qt.QtUninvokable public final java.lang.String relativeFilePath(java.lang.String fileName){ return relativeFilePath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native java.lang.String relativeFilePath_native_cref_QString_constfct(long __this__nativeId, java.lang.String fileName); /** *

See QDir::remove(QString)

*/ @io.qt.QtUninvokable public final boolean remove(java.lang.String fileName){ return remove_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native boolean remove_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QDir::removeRecursively()

*/ @io.qt.QtUninvokable public final boolean removeRecursively(){ return removeRecursively_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean removeRecursively_native(long __this__nativeId); /** *

See QDir::rename(QString,QString)

*/ @io.qt.QtUninvokable public final boolean rename(java.lang.String oldName, java.lang.String newName){ return rename_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), oldName, newName); } @io.qt.QtUninvokable private native boolean rename_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String oldName, java.lang.String newName); /** *

See QDir::rmdir(QString)const

*/ @io.qt.QtUninvokable public final boolean rmdir(java.lang.String dirName){ return rmdir_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirName); } @io.qt.QtUninvokable private native boolean rmdir_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirName); /** *

See QDir::rmpath(QString)const

*/ @io.qt.QtUninvokable public final boolean rmpath(java.lang.String dirPath){ return rmpath_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dirPath); } @io.qt.QtUninvokable private native boolean rmpath_native_cref_QString_constfct(long __this__nativeId, java.lang.String dirPath); /** *

Overloaded function for {@link #setFilter(io.qt.core.QDir.Filters)}.

*/ @io.qt.QtUninvokable public final void setFilter(io.qt.core.QDir.Filter ... filter){ setFilter(new io.qt.core.QDir.Filters(filter)); } /** *

See QDir::setFilter(Filters)

*/ @io.qt.QtUninvokable public final void setFilter(io.qt.core.QDir.Filters filter){ setFilter_native_QFlags_QDir_Filter_(QtJambi_LibraryUtilities.internal.nativeId(this), filter.value()); } @io.qt.QtUninvokable private native void setFilter_native_QFlags_QDir_Filter_(long __this__nativeId, int filter); /** *

See QDir::setNameFilters(QStringList)

*/ @io.qt.QtUninvokable public final void setNameFilters(java.util.Collection nameFilters){ setNameFilters_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), nameFilters); } @io.qt.QtUninvokable private native void setNameFilters_native_cref_QStringList(long __this__nativeId, java.util.Collection nameFilters); /** *

See QDir::setPath(QString)

*/ @io.qt.QtUninvokable public final void setPath(java.lang.String path){ setPath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path); } @io.qt.QtUninvokable private native void setPath_native_cref_QString(long __this__nativeId, java.lang.String path); /** *

Overloaded function for {@link #setSorting(io.qt.core.QDir.SortFlags)}.

*/ @io.qt.QtUninvokable public final void setSorting(io.qt.core.QDir.SortFlag ... sort){ setSorting(new io.qt.core.QDir.SortFlags(sort)); } /** *

See QDir::setSorting(SortFlags)

*/ @io.qt.QtUninvokable public final void setSorting(io.qt.core.QDir.SortFlags sort){ setSorting_native_QFlags_QDir_SortFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), sort.value()); } @io.qt.QtUninvokable private native void setSorting_native_QFlags_QDir_SortFlag_(long __this__nativeId, int sort); /** *

See QDir::sorting()const

*/ @io.qt.QtUninvokable public final io.qt.core.QDir.SortFlags sorting(){ return new io.qt.core.QDir.SortFlags(sorting_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int sorting_native_constfct(long __this__nativeId); /** *

See QDir::swap(QDir&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.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)); } @io.qt.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.String prefix, java.lang.String path); /** *

See QDir::cleanPath(QString)

*/ public native static java.lang.String cleanPath(java.lang.String path); /** *

See QDir::current()

*/ public native static io.qt.core.QDir current(); /** *

See QDir::currentPath()

*/ public native static java.lang.String currentPath(); /** *

See QDir::drives()

*/ public native static io.qt.core.QList drives(); /** *

See QDir::fromNativeSeparators(QString)

*/ public native static java.lang.String fromNativeSeparators(java.lang.String pathName); /** *

See QDir::home()

*/ public native static io.qt.core.QDir home(); /** *

See QDir::homePath()

*/ public native static java.lang.String homePath(); /** *

See QDir::isAbsolutePath(QString)

*/ public native static boolean isAbsolutePath(java.lang.String path); /** *

See QDir::isRelativePath(QString)

*/ public native static boolean isRelativePath(java.lang.String path); /** *

See QDir::listSeparator()

*/ public native static char listSeparator(); /** *

See QDir::match(QString,QString)

*/ public native static boolean match(java.lang.String filter, java.lang.String fileName); /** *

See QDir::match(QStringList,QString)

*/ public native static boolean match(java.util.Collection filters, java.lang.String fileName); public native static io.qt.core.QStringList nameFiltersFromString(java.lang.String nameFilter); /** *

See QDir::root()

*/ public native static io.qt.core.QDir root(); /** *

See QDir::rootPath()

*/ public native static java.lang.String rootPath(); /** *

See QDir::searchPaths(QString)

*/ public native static io.qt.core.QStringList searchPaths(java.lang.String prefix); /** *

See QDir::separator()

*/ public native static char separator(); /** *

See QDir::setCurrent(QString)

*/ public native static boolean setCurrent(java.lang.String path); /** *

See QDir::setSearchPaths(QString,QStringList)

*/ public native static void setSearchPaths(java.lang.String prefix, java.util.Collection searchPaths); /** *

See QDir::temp()

*/ public native static io.qt.core.QDir temp(); /** *

See QDir::tempPath()

*/ public native static java.lang.String tempPath(); /** *

See QDir::toNativeSeparators(QString)

*/ public native static java.lang.String toNativeSeparators(java.lang.String pathName); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QDir(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QDir) { return operator_equal((io.qt.core.QDir) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Overloaded function for {@link #entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)} * with sort = new io.qt.core.QDir.SortFlags(-1).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(io.qt.core.QDir.Filter... filters) { return entryInfoList(new io.qt.core.QDir.Filters(filters), new io.qt.core.QDir.SortFlags(-1)); } /** *

Overloaded function for {@link #entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)} * with sort = new io.qt.core.QDir.SortFlags(-1).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryList(io.qt.core.QDir.Filter... filters) { return entryList(new io.qt.core.QDir.Filters(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 sort = new io.qt.core.QDir.SortFlags(-1).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryList(java.util.Collection nameFilters, io.qt.core.QDir.Filter... filters) { return entryList(nameFilters, new io.qt.core.QDir.Filters(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 sort = new io.qt.core.QDir.SortFlags(-1).

*/ @io.qt.QtUninvokable public final io.qt.core.QList entryInfoList(java.util.Collection nameFilters, io.qt.core.QDir.Filter... filters) { return entryInfoList(nameFilters, new io.qt.core.QDir.Filters(filters), new io.qt.core.QDir.SortFlags(-1)); } @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QDir clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QDir clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy