diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/tools/headers/qdir.h | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/tools/headers/qdir.h')
-rw-r--r-- | kjsembed/tools/headers/qdir.h | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/kjsembed/tools/headers/qdir.h b/kjsembed/tools/headers/qdir.h index b5e1f5d0..2056828e 100644 --- a/kjsembed/tools/headers/qdir.h +++ b/kjsembed/tools/headers/qdir.h @@ -1,7 +1,7 @@ /**************************************************************************** ** ** -** Definition of QDir class +** Definition of TQDir class ** ** Created : 950427 ** @@ -39,15 +39,15 @@ #define QDIR_H #ifndef QT_H -#include "qglobal.h" -#include "qstrlist.h" -#include "qfileinfo.h" +#include "tqglobal.h" +#include "tqstrlist.h" +#include "tqfileinfo.h" #endif // QT_H #ifndef QT_NO_DIR -typedef QPtrList<QFileInfo> QFileInfoList; -typedef QPtrListIterator<QFileInfo> QFileInfoListIterator; +typedef TQPtrList<TQFileInfo> QFileInfoList; +typedef TQPtrListIterator<TQFileInfo> QFileInfoListIterator; class QStringList; template <class T> class QDeepCopy; @@ -85,34 +85,34 @@ public: IgnoreCase = 0x10, DefaultSort = -1 }; - QDir(); - QDir( const QString &path, const QString &nameFilter = QString::null, + TQDir(); + TQDir( const TQString &path, const TQString &nameFilter = TQString::null, int sortSpec = Name | IgnoreCase, int filterSpec = All ); - QDir( const QDir & ); + TQDir( const TQDir & ); - virtual ~QDir(); + virtual ~TQDir(); - QDir &operator=( const QDir & ); - QDir &operator=( const QString &path ); + TQDir &operator=( const TQDir & ); + TQDir &operator=( const TQString &path ); - virtual void setPath( const QString &path ); - virtual QString path() const; - virtual QString absPath() const; - virtual QString canonicalPath() const; + virtual void setPath( const TQString &path ); + virtual TQString path() const; + virtual TQString absPath() const; + virtual TQString canonicalPath() const; - virtual QString dirName() const; - virtual QString filePath( const QString &fileName, + virtual TQString dirName() const; + virtual TQString filePath( const TQString &fileName, bool acceptAbsPath = TRUE ) const; - virtual QString absFilePath( const QString &fileName, + virtual TQString absFilePath( const TQString &fileName, bool acceptAbsPath = TRUE ) const; - static QString convertSeparators( const QString &pathName ); + static TQString convertSeparators( const TQString &pathName ); - virtual bool cd( const QString &dirName, bool acceptAbsPath = TRUE ); + virtual bool cd( const TQString &dirName, bool acceptAbsPath = TRUE ); virtual bool cdUp(); QString nameFilter() const; - virtual void setNameFilter( const QString &nameFilter ); + virtual void setNameFilter( const TQString &nameFilter ); FilterSpec filter() const; virtual void setFilter( int filterSpec ); SortSpec sorting() const; @@ -124,28 +124,28 @@ public: uint count() const; QString operator[]( int ) const; - virtual QStrList encodedEntryList( int filterSpec = DefaultFilter, + virtual TQStrList encodedEntryList( int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; - virtual QStrList encodedEntryList( const QString &nameFilter, + virtual TQStrList encodedEntryList( const TQString &nameFilter, int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; - virtual QStringList entryList( int filterSpec = DefaultFilter, + virtual TQStringList entryList( int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; - virtual QStringList entryList( const QString &nameFilter, + virtual TQStringList entryList( const TQString &nameFilter, int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; virtual const QFileInfoList *entryInfoList( int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; - virtual const QFileInfoList *entryInfoList( const QString &nameFilter, + virtual const QFileInfoList *entryInfoList( const TQString &nameFilter, int filterSpec = DefaultFilter, int sortSpec = DefaultSort ) const; static const QFileInfoList *drives(); - virtual bool mkdir( const QString &dirName, + virtual bool mkdir( const TQString &dirName, bool acceptAbsPath = TRUE ) const; - virtual bool rmdir( const QString &dirName, + virtual bool rmdir( const TQString &dirName, bool acceptAbsPath = TRUE ) const; virtual bool isReadable() const; @@ -155,45 +155,45 @@ public: virtual bool isRelative() const; virtual void convertToAbs(); - virtual bool operator==( const QDir & ) const; - virtual bool operator!=( const QDir & ) const; + virtual bool operator==( const TQDir & ) const; + virtual bool operator!=( const TQDir & ) const; - virtual bool remove( const QString &fileName, + virtual bool remove( const TQString &fileName, bool acceptAbsPath = TRUE ); - virtual bool rename( const QString &name, const QString &newName, + virtual bool rename( const TQString &name, const TQString &newName, bool acceptAbsPaths = TRUE ); - virtual bool exists( const QString &name, + virtual bool exists( const TQString &name, bool acceptAbsPath = TRUE ); static char separator(); - static bool setCurrent( const QString &path ); - static QDir current(); - static QDir home(); - static QDir root(); - static QString currentDirPath(); - static QString homeDirPath(); - static QString rootDirPath(); - - static bool match( const QStringList &filters, const QString &fileName ); - static bool match( const QString &filter, const QString &fileName ); - static QString cleanDirPath( const QString &dirPath ); - static bool isRelativePath( const QString &path ); + static bool setCurrent( const TQString &path ); + static TQDir current(); + static TQDir home(); + static TQDir root(); + static TQString currentDirPath(); + static TQString homeDirPath(); + static TQString rootDirPath(); + + static bool match( const TQStringList &filters, const TQString &fileName ); + static bool match( const TQString &filter, const TQString &fileName ); + static TQString cleanDirPath( const TQString &dirPath ); + static bool isRelativePath( const TQString &path ); void refresh() const; private: #ifdef Q_OS_MAC typedef struct FSSpec FSSpec; - static FSSpec *make_spec(const QString &); + static FSSpec *make_spec(const TQString &); #endif void init(); - virtual bool readDirEntries( const QString &nameFilter, + virtual bool readDirEntries( const TQString &nameFilter, int FilterSpec, int SortSpec ); - static void slashify( QString & ); + static void slashify( TQString & ); QString dPath; - QStringList *fList; + TQStringList *fList; QFileInfoList *fiList; QString nameFilt; FilterSpec filtS; @@ -202,44 +202,44 @@ private: uint allDirs : 1; void detach(); - friend class QDeepCopy< QDir >; + friend class TQDeepCopy< TQDir >; }; -inline QString QDir::path() const +inline TQString TQDir::path() const { return dPath; } -inline QString QDir::nameFilter() const +inline TQString TQDir::nameFilter() const { return nameFilt; } -inline QDir::FilterSpec QDir::filter() const +inline TQDir::FilterSpec TQDir::filter() const { return filtS; } -inline QDir::SortSpec QDir::sorting() const +inline TQDir::SortSpec TQDir::sorting() const { return sortS; } -inline bool QDir::matchAllDirs() const +inline bool TQDir::matchAllDirs() const { return allDirs; } -inline bool QDir::operator!=( const QDir &d ) const +inline bool TQDir::operator!=( const TQDir &d ) const { return !(*this == d); } struct QDirSortItem { - QString filename_cache; - QFileInfo* item; + TQString filename_cache; + TQFileInfo* item; }; #endif // QT_NO_DIR |