summaryrefslogtreecommitdiffstats
path: root/konq-plugins/fsview/scan.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/fsview/scan.h
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/fsview/scan.h')
-rw-r--r--konq-plugins/fsview/scan.h34
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;