diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:32:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:32:56 -0600 |
commit | f96f74ffa7040e64ae3352e08c810c383c8a0ba2 (patch) | |
tree | 8f4cdf2f66860234f9ae889cd483b44150affb2c /libktorrent/torrent/downloader.cpp | |
parent | 0ad9f974f4ad92a3f1458a76d4df26d843efeab7 (diff) | |
download | ktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.tar.gz ktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'libktorrent/torrent/downloader.cpp')
-rw-r--r-- | libktorrent/torrent/downloader.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libktorrent/torrent/downloader.cpp b/libktorrent/torrent/downloader.cpp index a63163e..582fa7e 100644 --- a/libktorrent/torrent/downloader.cpp +++ b/libktorrent/torrent/downloader.cpp @@ -87,7 +87,7 @@ namespace bt } // if the chunk is not in memory, reload it - if (cd->getChunk()->gettqStatus() == Chunk::ON_DISK) + if (cd->getChunk()->getStatus() == Chunk::ON_DISK) { cman.prepareChunk(cd->getChunk(),true); } @@ -119,7 +119,7 @@ namespace bt downloaded += p.getLength(); // save to disk again, if it is idle - if (cd->isIdle() && cd->getChunk()->gettqStatus() == Chunk::MMAPPED) + if (cd->isIdle() && cd->getChunk()->getStatus() == Chunk::MMAPPED) { cman.saveChunk(cd->getChunk()->getIndex(),false); } @@ -160,7 +160,7 @@ namespace bt if (cd->isIdle()) // idle chunks do not need to be in memory { Chunk* c = cd->getChunk(); - if (c->gettqStatus() == Chunk::MMAPPED) + if (c->getStatus() == Chunk::MMAPPED) { cman.saveChunk(cd->getChunk()->getIndex(),false); } @@ -169,7 +169,7 @@ namespace bt { cd->releaseAllPDs(); Chunk* c = cd->getChunk(); - if (c->gettqStatus() == Chunk::MMAPPED) + if (c->getStatus() == Chunk::MMAPPED) { cman.saveChunk(cd->getChunk()->getIndex(),false); } @@ -277,7 +277,7 @@ namespace bt if (sel) { // if it is on disk, reload it - if (sel->getChunk()->gettqStatus() == Chunk::ON_DISK) + if (sel->getChunk()->getStatus() == Chunk::ON_DISK) cman.prepareChunk(sel->getChunk(),true); sel->assignPeer(pd); @@ -341,7 +341,7 @@ namespace bt if (cdmin) { // if it is on disk, reload it - if (cdmin->getChunk()->gettqStatus() == Chunk::ON_DISK) + if (cdmin->getChunk()->getStatus() == Chunk::ON_DISK) { cman.prepareChunk(cdmin->getChunk(),true); } @@ -438,10 +438,10 @@ namespace bt { Uint32 ch = i->first; Chunk* c = i->second->getChunk(); - if (c->gettqStatus() == Chunk::MMAPPED) + if (c->getStatus() == Chunk::MMAPPED) cman.saveChunk(ch,false); - c->settqStatus(Chunk::NOT_DOWNLOADED); + c->setStatus(Chunk::NOT_DOWNLOADED); } current_chunks.clear(); } |