• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::ChunkSelector

bt::ChunkSelector Class Reference

#include <chunkselector.h>

Inheritance diagram for bt::ChunkSelector:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson

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.

void bt::ChunkSelector::reincluded ( Uint32  from,
Uint32  to 
) [virtual]

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.

bool bt::ChunkSelector::selectRange ( Uint32 &  from,
Uint32 &  to 
) [virtual]

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:
  • chunkselector.h
  • chunkselector.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal