summaryrefslogtreecommitdiffstats
path: root/konq-plugins/fsview/scan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/fsview/scan.cpp')
-rw-r--r--konq-plugins/fsview/scan.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/konq-plugins/fsview/scan.cpp b/konq-plugins/fsview/scan.cpp
index ed691e3..1d3d06a 100644
--- a/konq-plugins/fsview/scan.cpp
+++ b/konq-plugins/fsview/scan.cpp
@@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdir.h>
-#include <qstringlist.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -34,7 +34,7 @@ ScanManager::ScanManager()
_listener = 0;
}
-ScanManager::ScanManager(const QString& path)
+ScanManager::ScanManager(const TQString& path)
{
_topDir = 0;
_listener = 0;
@@ -52,7 +52,7 @@ void ScanManager::setListener(ScanListener* l)
_listener = l;
}
-ScanDir* ScanManager::setTop(const QString& path, int data)
+ScanDir* ScanManager::setTop(const TQString& path, int data)
{
stopScan();
if (_topDir) {
@@ -120,7 +120,7 @@ ScanFile::ScanFile()
_listener = 0;
}
-ScanFile::ScanFile(const QString& n, KIO::fileoffset_t s)
+ScanFile::ScanFile(const TQString& n, KIO::fileoffset_t s)
{
_name = n;
_size = s;
@@ -145,7 +145,7 @@ ScanDir::ScanDir()
_data = 0;
}
-ScanDir::ScanDir(const QString& n, ScanManager* m,
+ScanDir::ScanDir(const TQString& n, ScanManager* m,
ScanDir* p, int data)
: _name(n)
{
@@ -168,10 +168,10 @@ void ScanDir::setListener(ScanListener* l)
_listener = l;
}
-QString ScanDir::path()
+TQString ScanDir::path()
{
if (_parent) {
- QString p = _parent->path();
+ TQString p = _parent->path();
if (!p.endsWith("/")) p += "/";
return p + _name;
}
@@ -231,30 +231,30 @@ int ScanDir::scan(ScanItem* si, ScanItemList& list, int data)
return 0;
}
- QDir d(si->absPath);
- QStringList fileList = d.entryList( QDir::Files |
- QDir::Hidden | QDir::NoSymLinks );
+ TQDir d(si->absPath);
+ TQStringList fileList = d.entryList( TQDir::Files |
+ TQDir::Hidden | TQDir::NoSymLinks );
if (fileList.count()>0) {
KDE_struct_stat buff;
_files.reserve(fileList.count());
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = fileList.begin(); it != fileList.end(); ++it ) {
- KDE_lstat( QFile::encodeName(si->absPath + "/" + (*it)), &buff );
+ KDE_lstat( TQFile::encodeName(si->absPath + "/" + (*it)), &buff );
_files.append( ScanFile(*it, buff.st_size) );
_fileSize += buff.st_size;
}
}
- QStringList dirList = d.entryList( QDir::Dirs |
- QDir::Hidden | QDir::NoSymLinks );
+ TQStringList dirList = d.entryList( TQDir::Dirs |
+ TQDir::Hidden | TQDir::NoSymLinks );
if (dirList.count()>2) {
_dirs.reserve(dirList.count()-2);
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for (it = dirList.begin(); it != dirList.end(); ++it ) {
if ( ((*it) == "..") || ((*it) == ".") ) continue;
_dirs.append( ScanDir(*it, _manager, this, data) );