summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/cachefile.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/cachefile.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/cachefile.h')
-rw-r--r--libktorrent/torrent/cachefile.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libktorrent/torrent/cachefile.h b/libktorrent/torrent/cachefile.h
index 9c4ebc6..749f46a 100644
--- a/libktorrent/torrent/cachefile.h
+++ b/libktorrent/torrent/cachefile.h
@@ -20,9 +20,9 @@
#ifndef BTCACHEFILE_H
#define BTCACHEFILE_H
-#include <qmap.h>
-#include <qmutex.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqmutex.h>
+#include <tqstring.h>
#include <util/constants.h>
namespace bt
@@ -68,10 +68,10 @@ namespace bt
* @param size Max size of the file
* @throw Error when something goes wrong
*/
- void open(const QString & path,Uint64 size);
+ void open(const TQString & path,Uint64 size);
/// Change the path of the file
- void changePath(const QString & npath);
+ void changePath(const TQString & npath);
/**
* Map a part of the file into memory, will expand the file
@@ -130,7 +130,7 @@ namespace bt
int fd;
bool read_only;
Uint64 max_size,file_size;
- QString path;
+ TQString path;
struct Entry
{
MMappeable* thing;
@@ -140,8 +140,8 @@ namespace bt
Uint32 diff;
Mode mode;
};
- QMap<void*,Entry> mappings; // mappings where offset wasn't a multiple of 4K
- mutable QMutex mutex;
+ TQMap<void*,Entry> mappings; // mappings where offset wasn't a multiple of 4K
+ mutable TQMutex mutex;
};
}