kget
bt::ChunkSelector Class Reference
#include <chunkselector.h>

Detailed Description
Selects which Chunks to download.
Definition at line 42 of file chunkselector.h.
Public Member Functions | |
| ChunkSelector (ChunkManager &cman, Downloader &downer, PeerManager &pman) | |
| void | dataChecked (const BitSet &ok_chunks) |
| void | reincluded (Uint32 from, Uint32 to) |
| void | reinsert (Uint32 chunk) |
| bool | select (PieceDownloader *pd, Uint32 &chunk) |
| virtual bool | selectRange (Uint32 &from, Uint32 &to) |
| virtual | ~ChunkSelector () |
Constructor & Destructor Documentation
| bt::ChunkSelector::ChunkSelector | ( | ChunkManager & | cman, | |
| Downloader & | downer, | |||
| PeerManager & | pman | |||
| ) |
Definition at line 69 of file chunkselector.cpp.
| bt::ChunkSelector::~ChunkSelector | ( | ) | [virtual] |
Definition at line 88 of file chunkselector.cpp.
Member Function Documentation
| void bt::ChunkSelector::dataChecked | ( | const BitSet & | ok_chunks | ) | [virtual] |
Data has been checked, and these chunks are OK.
- Parameters:
-
ok_chunks The ok_chunks
Implements bt::ChunkSelectorInterface.
Definition at line 237 of file chunkselector.cpp.
A range of chunks has been reincluded.
- Parameters:
-
from The first chunk to The last chunk
Implements bt::ChunkSelectorInterface.
Definition at line 255 of file chunkselector.cpp.
| void bt::ChunkSelector::reinsert | ( | Uint32 | chunk | ) | [virtual] |
Reinsert a chunk.
- Parameters:
-
chunk The chunk
Implements bt::ChunkSelectorInterface.
Definition at line 275 of file chunkselector.cpp.
| bool bt::ChunkSelector::select | ( | PieceDownloader * | pd, | |
| Uint32 & | chunk | |||
| ) | [virtual] |
Select which chunk to download for a PieceDownloader.
- Parameters:
-
pd The PieceDownloader chunk Index of chunk gets stored here
- Returns:
- true upon succes, false otherwise
Implements bt::ChunkSelectorInterface.
Definition at line 107 of file chunkselector.cpp.
Select a range of chunks to download from a webseeder.
- Parameters:
-
from First chunk of the range to Last chunk of the range
- Returns:
- true if everything is OK
Reimplemented from bt::ChunkSelectorInterface.
Definition at line 290 of file chunkselector.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference