summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/preallocationthread.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/preallocationthread.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/torrent/preallocationthread.h')
-rw-r--r--libktorrent/torrent/preallocationthread.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/libktorrent/torrent/preallocationthread.h b/libktorrent/torrent/preallocationthread.h
index 31bd668..581017d 100644
--- a/libktorrent/torrent/preallocationthread.h
+++ b/libktorrent/torrent/preallocationthread.h
@@ -20,10 +20,10 @@
#ifndef BTPREALLOCATIONTHREAD_H
#define BTPREALLOCATIONTHREAD_H
-#include <qstring.h>
-#include <qthread.h>
-#include <qmap.h>
-#include <qmutex.h>
+#include <tqstring.h>
+#include <tqthread.h>
+#include <tqmap.h>
+#include <tqmutex.h>
#include <util/constants.h>
@@ -37,13 +37,13 @@ namespace bt
*
* Thread to preallocate diskspace
*/
- class PreallocationThread : public QThread
+ class PreallocationThread : public TQThread
{
ChunkManager* cman;
bool stopped,not_finished,done;
- QString error_msg;
+ TQString error_msg;
Uint64 bytes_written;
- mutable QMutex mutex;
+ mutable TQMutex mutex;
public:
PreallocationThread(ChunkManager* cman);
virtual ~PreallocationThread();
@@ -60,7 +60,7 @@ namespace bt
* Set an error message, also calls stop
* @param msg The message
*/
- void setErrorMsg(const QString & msg);
+ void setErrorMsg(const TQString & msg);
/// See if the thread has been stopped
bool isStopped() const;
@@ -69,7 +69,7 @@ namespace bt
bool errorHappened() const;
/// Get the error_msg
- const QString & errorMessage() const {return error_msg;}
+ const TQString & errorMessage() const {return error_msg;}
/// nb Number of bytes have been written
void written(Uint64 nb);
@@ -86,7 +86,7 @@ namespace bt
/// See if the thread was done
bool isDone() const;
private:
- bool expand(const QString & path,Uint64 max_size);
+ bool expand(const TQString & path,Uint64 max_size);
};
}