- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Access to directory structures and their contents
Java wrapper for Qt class QDir
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQDir::Filter
static final class
QFlags
type for enumQDir.Filter
static enum
Java wrapper for Qt enumQDir::SortFlag
static final class
QFlags
type for enumQDir.SortFlag
-
Constructor Summary
ConstructorDescriptionQDir()
Overloaded constructor forQDir(java.lang.String)
withpath = (String)null
.SeeQDir::
QDir(QDir) Overloaded constructor forQDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)
QDir
(String path, String nameFilter, QDir.SortFlags sort) Overloaded constructor forQDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)
withfilter = new io.qt.core.QDir.Filters(7)
.QDir
(String path, String nameFilter, QDir.SortFlags sort, QDir.Filter ... filter) Overloaded constructor forQDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)
.QDir
(String path, String nameFilter, QDir.SortFlags sort, QDir.Filters filter) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
absoluteFilePath
(String fileName) final String
static void
addSearchPath
(String prefix, String path) final void
final void
final String
at
(int arg__1) Delegate forget(int)
.final String
final boolean
final boolean
cdUp()
SeeQDir::
cdUp() static String
clone()
Creates and returns a copy of this object.final int
count()
static QDir
current()
SeeQDir::
current() static String
final String
dirName()
drives()
SeeQDir::
drives() Overloaded function forentryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
entryInfoList
(QDir.Filter ... filters) Overloaded function forentryInfoList(QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
.entryInfoList
(QDir.Filters filters) Overloaded function forentryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
.entryInfoList
(QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function forentryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
.entryInfoList
(QDir.Filters filters, QDir.SortFlags sort) entryInfoList
(Collection<String> nameFilters) Overloaded function forentryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
entryInfoList
(Collection<String> nameFilters, QDir.Filters filters) Overloaded function forentryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
.entryInfoList
(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function forentryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
.entryInfoList
(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlags sort) entryInfoList
(Collection<String> nameFilters, QDir.Filter ... filters) Overloaded function forentryInfoList(java.util.Collection, QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
.final QStringList
Overloaded function forentryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
final QStringList
entryList
(QDir.Filter ... filters) Overloaded function forentryList(QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
.final QStringList
entryList
(QDir.Filters filters) Overloaded function forentryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
.final QStringList
entryList
(QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function forentryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
.final QStringList
entryList
(QDir.Filters filters, QDir.SortFlags sort) final QStringList
entryList
(Collection<String> nameFilters) Overloaded function forentryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
final QStringList
entryList
(Collection<String> nameFilters, QDir.Filters filters) Overloaded function forentryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
.final QStringList
entryList
(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function forentryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
.final QStringList
entryList
(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlags sort) final QStringList
entryList
(Collection<String> nameFilters, QDir.Filter ... filters) Overloaded function forentryList(java.util.Collection, QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
.final boolean
final boolean
Overloaded function forequals(io.qt.core.QDir)
.boolean
final boolean
exists()
final boolean
final String
final QDir.Filters
filter()
static String
fromNativeSeparators
(String pathName) final String
get
(int arg__1) int
hashCode()
Returns the objects's hash code computed byqHash(QDir)
.static QDir
home()
SeeQDir::
home() static String
homePath()
SeeQDir::
homePath() final boolean
static boolean
isAbsolutePath
(String path) final boolean
isEmpty()
Overloaded function forisEmpty(io.qt.core.QDir.Filters)
withfilters = new io.qt.core.QDir.Filters(24583)
.final boolean
isEmpty
(QDir.Filter ... filters) Overloaded function forisEmpty(io.qt.core.QDir.Filters)
.final boolean
isEmpty
(QDir.Filters filters) final boolean
final boolean
static boolean
isRelativePath
(String path) final boolean
isRoot()
static char
final boolean
static boolean
static boolean
match
(Collection<String> filters, String fileName) final boolean
final boolean
final QStringList
static QStringList
nameFiltersFromString
(String nameFilter) SeeQDir::
nameFiltersFromString(QString) final String
path()
final void
refresh()
final String
relativeFilePath
(String fileName) final boolean
final boolean
final boolean
final boolean
final boolean
static QDir
root()
SeeQDir::
root() static String
rootPath()
SeeQDir::
rootPath() static QStringList
searchPaths
(String prefix) static char
static boolean
setCurrent
(String path) final void
setFilter
(QDir.Filter ... filter) Overloaded function forsetFilter(io.qt.core.QDir.Filters)
.final void
setFilter
(QDir.Filters filter) final void
setNameFilters
(Collection<String> nameFilters) final void
static void
setSearchPaths
(String prefix, Collection<String> searchPaths) final void
setSorting
(QDir.SortFlag ... sort) Overloaded function forsetSorting(io.qt.core.QDir.SortFlags)
.final void
setSorting
(QDir.SortFlags sort) final QDir.SortFlags
sorting()
final void
static QDir
temp()
SeeQDir::
temp() static String
tempPath()
SeeQDir::
tempPath() static String
toNativeSeparators
(String pathName) toString()
Seeoperator<<(QDebug,
QDir) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QDir
See
QDir::
QDir(QDir) - Parameters:
arg__1
-
-
QDir
- Parameters:
path
-
-
QDir
- Parameters:
path
-nameFilter
-sort
-filter
-
-
QDir
public QDir()Overloaded constructor for
QDir(java.lang.String)
withpath = (String)null
. -
QDir
Overloaded constructor for
QDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)
withfilter = new io.qt.core.QDir.Filters(7)
. -
QDir
Overloaded constructor for
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)
-
QDir
Overloaded constructor for
QDir(java.lang.String, java.lang.String, io.qt.core.QDir.SortFlags, io.qt.core.QDir.Filters)
.
-
-
Method Details
-
absoluteFilePath
- Parameters:
fileName
-- Returns:
-
absolutePath
- Returns:
-
canonicalPath
- Returns:
-
cd
- Parameters:
dirName
-- Returns:
-
cdUp
See
QDir::
cdUp() - Returns:
-
count
- Returns:
-
dirName
- Returns:
-
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(QDir.Filters filters, QDir.SortFlags sort) - Parameters:
filters
-sort
-- Returns:
-
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlags sort) - Parameters:
nameFilters
-filters
-sort
-- Returns:
-
entryList
- Parameters:
filters
-sort
-- Returns:
-
entryList
@QtUninvokable public final QStringList entryList(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlags sort) - Parameters:
nameFilters
-filters
-sort
-- Returns:
-
exists
- Returns:
-
exists
- Parameters:
name
-- Returns:
-
filePath
- Parameters:
fileName
-- Returns:
-
filter
- Returns:
-
isAbsolute
- Returns:
-
isEmpty
- Parameters:
filters
-- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
isReadable
- Returns:
-
isRelative
- Returns:
-
isRoot
- Returns:
-
makeAbsolute
- Returns:
-
mkdir
- Parameters:
dirName
-- Returns:
-
mkpath
- Parameters:
dirPath
-- Returns:
-
nameFilters
- Returns:
-
assign
- Parameters:
arg__1
-
-
assign
- Parameters:
path
-
-
equals
- Parameters:
dir
-- Returns:
-
get
- Parameters:
arg__1
-- Returns:
-
path
- Returns:
-
refresh
-
relativeFilePath
- Parameters:
fileName
-- Returns:
-
remove
- Parameters:
fileName
-- Returns:
-
removeRecursively
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
rename
- Parameters:
oldName
-newName
-- Returns:
-
rmdir
- Parameters:
dirName
-- Returns:
-
rmpath
- Parameters:
dirPath
-- Returns:
-
setFilter
- Parameters:
filter
-
-
setNameFilters
- Parameters:
nameFilters
-
-
setPath
- Parameters:
path
-
-
setSorting
- Parameters:
sort
-
-
sorting
- Returns:
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.0.
-
addSearchPath
- Parameters:
prefix
-path
-- Since:
- This function was introduced in Qt 4.3.
-
cleanPath
- Parameters:
path
-- Returns:
-
current
See
QDir::
current() - Returns:
-
currentPath
- Returns:
-
drives
See
QDir::
drives() - Returns:
-
fromNativeSeparators
- Parameters:
pathName
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
home
See
QDir::
home() - Returns:
-
homePath
See
QDir::
homePath() - Returns:
-
isAbsolutePath
- Parameters:
path
-- Returns:
-
isRelativePath
- Parameters:
path
-- Returns:
-
listSeparator
public static char listSeparator()- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
match
- Parameters:
filter
-fileName
-- Returns:
-
match
- Parameters:
filters
-fileName
-- Returns:
-
nameFiltersFromString
See
QDir::
nameFiltersFromString(QString) - Parameters:
nameFilter
-- Returns:
-
root
See
QDir::
root() - Returns:
-
rootPath
See
QDir::
rootPath() - Returns:
-
searchPaths
- Parameters:
prefix
-- Returns:
- Since:
- This function was introduced in Qt 4.3.
-
separator
public static char separator()- Returns:
-
setCurrent
- Parameters:
path
-- Returns:
-
setSearchPaths
- Parameters:
prefix
-searchPaths
-- Since:
- This function was introduced in Qt 4.3.
-
temp
See
QDir::
temp() - Returns:
-
tempPath
See
QDir::
tempPath() - Returns:
-
toNativeSeparators
- Parameters:
pathName
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QDir)
. -
entryInfoList
Overloaded function for
entryInfoList(QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
. -
entryList
Overloaded function for
entryList(QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
. -
entryList
@QtUninvokable public final QStringList entryList(Collection<String> nameFilters, QDir.Filter ... filters) Overloaded function for
entryList(java.util.Collection, QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
. -
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(Collection<String> nameFilters, QDir.Filter ... filters) Overloaded function for
entryInfoList(java.util.Collection, QDir.Filters, QDir.SortFlags)
withsort = new QDir.SortFlags(-1)
. -
toString
See
operator<<(QDebug,
QDir) -
clone
Creates and returns a copy of this object.
See
QDir::
QDir(QDir) -
entryInfoList
Overloaded function for
entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
. -
entryInfoList
Overloaded function for
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)
-
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function for
entryInfoList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
. -
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(Collection<String> nameFilters, QDir.Filters filters) Overloaded function for
entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
. -
entryInfoList
Overloaded function for
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)
-
entryInfoList
@QtUninvokable public final QList<QFileInfo> entryInfoList(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function for
entryInfoList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
. -
entryList
Overloaded function for
entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
. -
entryList
Overloaded function for
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)
-
entryList
Overloaded function for
entryList(io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
. -
entryList
@QtUninvokable public final QStringList entryList(Collection<String> nameFilters, QDir.Filters filters) Overloaded function for
entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
withsort = new io.qt.core.QDir.SortFlags(-1)
. -
entryList
Overloaded function for
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)
-
entryList
@QtUninvokable public final QStringList entryList(Collection<String> nameFilters, QDir.Filters filters, QDir.SortFlag ... sort) Overloaded function for
entryList(java.util.Collection, io.qt.core.QDir.Filters, io.qt.core.QDir.SortFlags)
. -
isEmpty
Overloaded function for
isEmpty(io.qt.core.QDir.Filters)
withfilters = new io.qt.core.QDir.Filters(24583)
. -
isEmpty
Overloaded function for
isEmpty(io.qt.core.QDir.Filters)
. -
equals
Overloaded function for
equals(io.qt.core.QDir)
. -
at
Delegate for
get(int)
. -
setFilter
Overloaded function for
setFilter(io.qt.core.QDir.Filters)
. -
setSorting
Overloaded function for
setSorting(io.qt.core.QDir.SortFlags)
.
-