21 #ifndef BTCHUNKSELECTORINTERFACE_H
22 #define BTCHUNKSELECTORINTERFACE_H
24 #include <util/constants.h>
25 #include <ktorrent_export.h>
33 class PieceDownloader;
40 class KTORRENT_EXPORT ChunkSelectorInterface
43 ChunkSelectorInterface();
44 virtual ~ChunkSelectorInterface();
53 virtual void init(ChunkManager* cman,Downloader* downer,PeerManager* pman);
61 virtual bool select(PieceDownloader* pd,Uint32 & chunk) = 0;
70 virtual bool selectRange(Uint32 & from,Uint32 & to,Uint32 max_len);
78 virtual void dataChecked(
const BitSet & ok_chunks, Uint32 from, Uint32 to) = 0;
86 virtual void reincluded(Uint32 from, Uint32 to)= 0;
93 virtual void reinsert(Uint32 chunk) = 0;