diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/chunkdownload.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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/chunkdownload.h')
-rw-r--r-- | libktorrent/torrent/chunkdownload.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/libktorrent/torrent/chunkdownload.h b/libktorrent/torrent/chunkdownload.h index 4119a5b..c1960f0 100644 --- a/libktorrent/torrent/chunkdownload.h +++ b/libktorrent/torrent/chunkdownload.h @@ -21,8 +21,8 @@ #define BTCHUNKDOWNLOAD_H #include <set> -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> #include <util/timer.h> #include <util/ptrmap.h> #include <util/sha1hashgen.h> @@ -41,7 +41,7 @@ namespace bt class Peer; class Request; class PeerDownloader; - class DownloadStatus; + class DownloadtqStatus; struct ChunkDownloadHeader { @@ -59,9 +59,10 @@ namespace bt * * This class handles the download of one Chunk. */ - class ChunkDownload : public QObject,public kt::ChunkDownloadInterface + class ChunkDownload : public TQObject,public kt::ChunkDownloadInterface { Q_OBJECT + TQ_OBJECT public: /** * Constructor, set the chunk and the PeerManager. @@ -90,7 +91,7 @@ namespace bt const Peer* getCurrentPeer() const; /// Get the PeerID of the current peer - QString getCurrentPeerID() const; + TQString getCurrentPeerID() const; /// Get the download speed Uint32 getDownloadSpeed() const; @@ -152,7 +153,7 @@ namespace bt bool getOnlyDownloader(Uint32 & pid); /// See if a PeerDownloader is assigned to this chunk - bool containsPeer(PeerDownloader *pd) {return pdown.contains(pd);} + bool containsPeer(PeerDownloader *pd) {return pdown.tqcontains(pd);} /// See if the download is choked (i.e. all downloaders are choked) bool isChoked() const; @@ -185,14 +186,14 @@ namespace bt private: BitSet pieces; - QValueList<Uint32> piece_queue; + TQValueList<Uint32> piece_queue; Chunk* chunk; Uint32 num; Uint32 num_downloaded; Uint32 last_size; Timer timer; - QPtrList<PeerDownloader> pdown; - PtrMap<Uint32,DownloadStatus> dstatus; + TQPtrList<PeerDownloader> pdown; + PtrMap<Uint32,DownloadtqStatus> dstatus; std::set<Uint32> piece_providers; |