diff options
Diffstat (limited to 'konq-plugins/fsview/scan.h')
-rw-r--r-- | konq-plugins/fsview/scan.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/konq-plugins/fsview/scan.h b/konq-plugins/fsview/scan.h index 38b015c..ca4ce4f 100644 --- a/konq-plugins/fsview/scan.h +++ b/konq-plugins/fsview/scan.h @@ -23,9 +23,9 @@ #ifndef FSDIR_H #define FSDIR_H -#include <qptrlist.h> -#include <qvaluevector.h> -#include <qfile.h> +#include <tqptrlist.h> +#include <tqvaluevector.h> +#include <tqfile.h> /* Use KDE_lstat and KIO::fileoffset_t for 64-bit sizes */ #include <klargefile.h> @@ -37,14 +37,14 @@ class ScanFile; class ScanItem { public: - ScanItem(const QString& p, ScanDir* d) + ScanItem(const TQString& p, ScanDir* d) { absPath = p; dir = d; } - QString absPath; + TQString absPath; ScanDir* dir; }; -typedef QPtrList<ScanItem> ScanItemList; +typedef TQPtrList<ScanItem> ScanItemList; /** @@ -83,13 +83,13 @@ class ScanManager { public: ScanManager(); - ScanManager(const QString& path); + ScanManager(const TQString& path); ~ScanManager(); /** Set the top path for scanning * The ScanDir object created gets attribute data. */ - ScanDir* setTop(const QString& path, int data = 0); + ScanDir* setTop(const TQString& path, int data = 0); ScanDir* top() { return _topDir; } bool scanRunning(); @@ -131,10 +131,10 @@ class ScanFile { public: ScanFile(); - ScanFile(const QString& n, KIO::fileoffset_t s); + ScanFile(const TQString& n, KIO::fileoffset_t s); ~ScanFile(); - const QString& name() { return _name; } + const TQString& name() { return _name; } KIO::fileoffset_t size() { return _size; } /* set listener to get callbacks from this ScanDir */ @@ -142,13 +142,13 @@ class ScanFile ScanListener* listener() { return _listener; } private: - QString _name; + TQString _name; KIO::fileoffset_t _size; ScanListener* _listener; }; -typedef QValueVector<ScanFile> ScanFileVector; -typedef QValueVector<ScanDir> ScanDirVector; +typedef TQValueVector<ScanFile> ScanFileVector; +typedef TQValueVector<ScanDir> ScanDirVector; /** * A directory to scan. @@ -159,7 +159,7 @@ class ScanDir { public: ScanDir(); - ScanDir(const QString& n, ScanManager* m, + ScanDir(const TQString& n, ScanManager* m, ScanDir* p = 0, int data = 0); ~ScanDir(); @@ -180,7 +180,7 @@ class ScanDir void setupChildRescan(); /* Absolute path. Warning: Slow, loops to top parent. */ - QString path(); + TQString path(); /* get integer data attribute */ int data() { return _data; } @@ -188,7 +188,7 @@ class ScanDir ScanFileVector& files() { return _files; } ScanDirVector& dirs() { return _dirs; } - const QString& name() { return _name; } + const TQString& name() { return _name; } KIO::fileoffset_t size() { update(); return _size; } unsigned int fileCount() { update(); return _fileCount; } unsigned int dirCount() { update(); return _dirCount; } @@ -217,7 +217,7 @@ class ScanDir ScanFileVector _files; ScanDirVector _dirs; - QString _name; + TQString _name; bool _dirty; /* needs a call to update() */ KIO::fileoffset_t _size, _fileSize; unsigned int _fileCount, _dirCount; |