org.kde.qt

Class QDir

public class QDir extends Object implements QtSupport

Field Summary
static intAccessMask
static intAll
static intDefaultFilter
static intDefaultSort
static intDirs
static intDirsFirst
static intDrives
static intExecutable
static intFiles
static intHidden
static intIgnoreCase
static intLocaleAware
static intModified
static intName
static intNoSymLinks
static intReadable
static intReversed
static intRWEMask
static intSize
static intSortByMask
static intSystem
static intTime
static intTypeMask
static intUnsorted
static intWritable
Constructor Summary
protected QDir(Class dummy)
QDir()
QDir(String path, String nameFilter, int sortSpec, int filterSpec)
QDir(String path, String nameFilter, int sortSpec)
QDir(String path, String nameFilter)
QDir(String path)
QDir(QDir arg1)
Method Summary
StringabsFilePath(String fileName, boolean acceptAbsPath)
StringabsFilePath(String fileName)
StringabsPath()
StringcanonicalPath()
booleancd(String dirName, boolean acceptAbsPath)
booleancd(String dirName)
booleancdUp()
static StringcleanDirPath(String dirPath)
static StringconvertSeparators(String pathName)
voidconvertToAbs()
intcount()
static QDircurrent()
static StringcurrentDirPath()
StringdirName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
ArrayListencodedEntryList(int filterSpec, int sortSpec)
ArrayListencodedEntryList(int filterSpec)
ArrayListencodedEntryList()
ArrayListencodedEntryList(String nameFilter, int filterSpec, int sortSpec)
ArrayListencodedEntryList(String nameFilter, int filterSpec)
ArrayListencodedEntryList(String nameFilter)
ArrayListentryList(int filterSpec, int sortSpec)
ArrayListentryList(int filterSpec)
ArrayListentryList()
ArrayListentryList(String nameFilter, int filterSpec, int sortSpec)
ArrayListentryList(String nameFilter, int filterSpec)
ArrayListentryList(String nameFilter)
booleanexists()
booleanexists(String name, boolean acceptAbsPath)
booleanexists(String name)
StringfilePath(String fileName, boolean acceptAbsPath)
StringfilePath(String fileName)
intfilter()
protected voidfinalize()
Deletes the wrapped C++ instance
static QDirhome()
static StringhomeDirPath()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisReadable()
booleanisRelative()
static booleanisRelativePath(String path)
booleanisRoot()
static booleanmatch(String[] filters, String fileName)
static booleanmatch(String filter, String fileName)
booleanmatchAllDirs()
booleanmkdir(String dirName, boolean acceptAbsPath)
booleanmkdir(String dirName)
StringnameFilter()
Stringop_at(int arg1)
booleanop_equals(QDir arg1)
booleanop_not_equals(QDir arg1)
Stringpath()
voidrefresh()
booleanremove(String fileName, boolean acceptAbsPath)
booleanremove(String fileName)
booleanrename(String name, String newName, boolean acceptAbsPaths)
booleanrename(String name, String newName)
booleanrmdir(String dirName, boolean acceptAbsPath)
booleanrmdir(String dirName)
static QDirroot()
static StringrootDirPath()
static charseparator()
static booleansetCurrent(String path)
voidsetFilter(int filterSpec)
voidsetMatchAllDirs(boolean arg1)
voidsetNameFilter(String nameFilter)
voidsetPath(String path)
voidsetSorting(int sortSpec)
intsorting()

Field Detail

AccessMask

public static final int AccessMask

All

public static final int All

DefaultFilter

public static final int DefaultFilter

DefaultSort

public static final int DefaultSort

Dirs

public static final int Dirs

DirsFirst

public static final int DirsFirst

Drives

public static final int Drives

Executable

public static final int Executable

Files

public static final int Files

Hidden

public static final int Hidden

IgnoreCase

public static final int IgnoreCase

LocaleAware

public static final int LocaleAware

Modified

public static final int Modified

Name

public static final int Name

NoSymLinks

public static final int NoSymLinks

Readable

public static final int Readable

Reversed

public static final int Reversed

RWEMask

public static final int RWEMask

Size

public static final int Size

SortByMask

public static final int SortByMask

System

public static final int System

Time

public static final int Time

TypeMask

public static final int TypeMask

Unsorted

public static final int Unsorted

Writable

public static final int Writable

Constructor Detail

QDir

protected QDir(Class dummy)

QDir

public QDir()

QDir

public QDir(String path, String nameFilter, int sortSpec, int filterSpec)

QDir

public QDir(String path, String nameFilter, int sortSpec)

QDir

public QDir(String path, String nameFilter)

QDir

public QDir(String path)

QDir

public QDir(QDir arg1)

Method Detail

absFilePath

public String absFilePath(String fileName, boolean acceptAbsPath)

absFilePath

public String absFilePath(String fileName)

absPath

public String absPath()

canonicalPath

public String canonicalPath()

cd

public boolean cd(String dirName, boolean acceptAbsPath)

cd

public boolean cd(String dirName)

cdUp

public boolean cdUp()

cleanDirPath

public static String cleanDirPath(String dirPath)

convertSeparators

public static String convertSeparators(String pathName)

convertToAbs

public void convertToAbs()

count

public int count()

current

public static QDir current()

currentDirPath

public static String currentDirPath()

dirName

public String dirName()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

encodedEntryList

public ArrayList encodedEntryList(int filterSpec, int sortSpec)

encodedEntryList

public ArrayList encodedEntryList(int filterSpec)

encodedEntryList

public ArrayList encodedEntryList()

encodedEntryList

public ArrayList encodedEntryList(String nameFilter, int filterSpec, int sortSpec)

encodedEntryList

public ArrayList encodedEntryList(String nameFilter, int filterSpec)

encodedEntryList

public ArrayList encodedEntryList(String nameFilter)

entryList

public ArrayList entryList(int filterSpec, int sortSpec)

entryList

public ArrayList entryList(int filterSpec)

entryList

public ArrayList entryList()

entryList

public ArrayList entryList(String nameFilter, int filterSpec, int sortSpec)

entryList

public ArrayList entryList(String nameFilter, int filterSpec)

entryList

public ArrayList entryList(String nameFilter)

exists

public boolean exists()

exists

public boolean exists(String name, boolean acceptAbsPath)

exists

public boolean exists(String name)

filePath

public String filePath(String fileName, boolean acceptAbsPath)

filePath

public String filePath(String fileName)

filter

public int filter()

finalize

protected void finalize()
Deletes the wrapped C++ instance

home

public static QDir home()

homeDirPath

public static String homeDirPath()

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isReadable

public boolean isReadable()

isRelative

public boolean isRelative()

isRelativePath

public static boolean isRelativePath(String path)

isRoot

public boolean isRoot()

match

public static boolean match(String[] filters, String fileName)

match

public static boolean match(String filter, String fileName)

matchAllDirs

public boolean matchAllDirs()

mkdir

public boolean mkdir(String dirName, boolean acceptAbsPath)

mkdir

public boolean mkdir(String dirName)

nameFilter

public String nameFilter()

op_at

public String op_at(int arg1)

op_equals

public boolean op_equals(QDir arg1)

op_not_equals

public boolean op_not_equals(QDir arg1)

path

public String path()

refresh

public void refresh()

remove

public boolean remove(String fileName, boolean acceptAbsPath)

remove

public boolean remove(String fileName)

rename

public boolean rename(String name, String newName, boolean acceptAbsPaths)

rename

public boolean rename(String name, String newName)

rmdir

public boolean rmdir(String dirName, boolean acceptAbsPath)

rmdir

public boolean rmdir(String dirName)

root

public static QDir root()

rootDirPath

public static String rootDirPath()

separator

public static char separator()

setCurrent

public static boolean setCurrent(String path)

setFilter

public void setFilter(int filterSpec)

setMatchAllDirs

public void setMatchAllDirs(boolean arg1)

setNameFilter

public void setNameFilter(String nameFilter)

setPath

public void setPath(String path)

setSorting

public void setSorting(int sortSpec)

sorting

public int sorting()