174 int sortSpec,
int filterSpec )
324 bool acceptAbsPath )
const 331 fileName[0] !=
'/') )
352 bool acceptAbsPath )
const 359 fileName[0] !=
'/') )
379 #if defined(_OS_FATFS_) || defined(_OS_OS2EMX_) 380 for (
int i=0; i<(
int)n.
length(); i++ ) {
440 if ( dirName.
find(
'/') >= 0
740 int filterSpec,
int sortSpec )
const 800 int filterSpec,
int sortSpec )
const 918 #if defined(CHECK_NULL) 919 qWarning(
"QDir::remove: Empty or null file name" );
942 #if defined(CHECK_NULL) 943 qWarning(
"QDir::exists: Empty or null file name" );
962 #if defined(_OS_UNIX_) 964 #elif defined (_OS_FATFS_) 966 #elif defined (_OS_MAC_) 1016 int i = filter.
find( sep, 0 );
1017 if ( i == -1 && filter.
find(
' ', 0 ) != -1 )
1024 for ( ; it != lst.
end(); ++it ) {
1039 bool matched =
FALSE;
1040 for ( ; sit != filters.
end(); ++sit ) {
1042 if ( regexp.match( fileName.
data() ) != -1 ) {
1061 return match( lst, fileName );
1087 bool addedSeparator;
1089 addedSeparator =
TRUE;
1092 addedSeparator =
FALSE;
1095 int ePos,
pos, upLevel;
1097 pos = ePos = name.
length();
1101 while ( pos && (pos = name.
findRev(
'/',--pos)) != -1 ) {
1102 len = ePos - pos - 1;
1103 if ( len == 2 && name.
at(pos + 1) ==
'.' 1104 && name.
at(pos + 2) ==
'.' ) {
1107 if ( len != 0 && (len != 1 || name.
at(pos + 1) !=
'.') ) {
1110 + name.
mid(pos + 1, len) + newPath;
1117 if ( addedSeparator ) {
1127 #if defined(_OS_FATFS_) || defined(_OS_OS2EMX_) 1128 if ( name[0] ==
'/' ) {
1129 if ( name[1] ==
'/' )
1130 newPath.
insert( 0,
'/' );
1132 newPath = name.
left(2) + newPath;
1141 #if defined(Q_C_CALLBACKS) 1187 r = (
int)((
char*)n1 - (
char*)n2);
1196 #if defined(Q_C_CALLBACKS)
Traverses directory structures and contents in a platform-independent way.
static void slashify(QString &)
int qt_cmp_si(const void *n1, const void *n2)
static QString cleanDirPath(const QString &dirPath)
QString operator[](int) const
QString nameFilter() const
static bool match(const QStringList &filters, const QString &fileName)
virtual bool remove(const QString &fileName, bool acceptAbsPath=TRUE)
The QRegExp class provides pattern matching using regular expressions or wildcards.
static QString homeDirPath()
virtual void setPath(const QString &path)
virtual QString dirName() const
QString mid(uint index, uint len=0xffffffff) const
ChannelGroupService::Name Name
static bool isRelativePath(const QString &path)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
void qWarning(const char *msg,...)
virtual bool isRoot() const
static QString fromLatin1(const char *, int len=-1)
The QChar class provides a light-weight Unicode character.
virtual QString absPath() const
QString & remove(uint index, uint len)
int compare(const QString &s) const
virtual void convertToAbs()
virtual bool isRelative() const
const char * data() const
static QString convertSeparators(const QString &pathName)
virtual void setFilter(int filterSpec)
int secsTo(const QDateTime &) const
QString left(uint len) const
virtual bool readDirEntries(const QString &nameFilter, int FilterSpec, int SortSpec)
static QString currentDirPath()
static QString rootDirPath()
void append(const type *d)
QDir & operator=(const QDir &)
static QCString encodeName(const QString &fileName)
int findRev(QChar c, int index=-1, bool cs=TRUE) const
virtual bool cd(const QString &dirName, bool acceptAbsPath=TRUE)
QString stripWhiteSpace() const
virtual QString absFilePath(const QString &fileName, bool acceptAbsPath=TRUE) const
QDateTime lastModified() const
int find(QChar c, int index=0, bool cs=TRUE) const
virtual void setSorting(int sortSpec)
virtual const QFileInfoList * entryInfoList(int filterSpec=DefaultFilter, int sortSpec=DefaultSort) const
virtual QString path() const
virtual QString filePath(const QString &fileName, bool acceptAbsPath=TRUE) const
virtual QStrList encodedEntryList(int filterSpec=DefaultFilter, int sortSpec=DefaultSort) const
virtual void setNameFilter(const QString &nameFilter)
The QFileInfo class provides system-independent file information.
static QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries=FALSE)
virtual bool operator==(const QDir &) const
def filters(nticks=9600, tick=0.5 *units.us, npitches=3000, pitch=1.0)
virtual QStringList entryList(int filterSpec=DefaultFilter, int sortSpec=DefaultSort) const
QStringList qt_makeFilterList(const QString &filter)
QString & insert(uint index, const QString &)
virtual void setMatchAllDirs(bool)
virtual bool exists() const
QString right(uint len) const