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

kget

BTChunkSelector Class Reference

#include <btchunkselector.h>

Inheritance diagram for BTChunkSelector:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 29 of file btchunkselector.h.


Public Member Functions

 BTChunkSelector (bt::ChunkManager &cman, bt::Downloader &downer, bt::PeerManager &pman)
virtual void dataChecked (const bt::BitSet &ok_chunks)
virtual void exclude (bt::Uint32 chunk)
virtual void excludeAll ()
virtual void reincluded (bt::Uint32 from, bt::Uint32 to)
virtual void reinsert (bt::Uint32 chunk)
virtual bool select (bt::PieceDownloader *pd, bt::Uint32 &chunk)
 ~BTChunkSelector ()

Constructor & Destructor Documentation

BTChunkSelector::BTChunkSelector ( bt::ChunkManager &  cman,
bt::Downloader &  downer,
bt::PeerManager &  pman 
)

Definition at line 61 of file btchunkselector.cpp.

BTChunkSelector::~BTChunkSelector (  ) 

Definition at line 80 of file btchunkselector.cpp.


Member Function Documentation

void BTChunkSelector::dataChecked ( const bt::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 229 of file btchunkselector.cpp.

void BTChunkSelector::exclude ( bt::Uint32  chunk  )  [virtual]

Definition at line 279 of file btchunkselector.cpp.

void BTChunkSelector::excludeAll (  )  [virtual]

Definition at line 274 of file btchunkselector.cpp.

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

A range of chunks has been reincluded.

This is called when a user reselects a file for download.

Parameters:
from The first chunk
to The last chunk

Implements bt::ChunkSelectorInterface.

Definition at line 247 of file btchunkselector.cpp.

void BTChunkSelector::reinsert ( bt::Uint32  chunk  )  [virtual]

Reinsert a chunk.

This is called when a chunk is corrupted or downloading it failed (hash doesn't match) The selector should make sure that this is added again

Parameters:
chunk The chunk

Implements bt::ChunkSelectorInterface.

Definition at line 267 of file btchunkselector.cpp.

bool BTChunkSelector::select ( bt::PieceDownloader *  pd,
bt::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 100 of file btchunkselector.cpp.


The documentation for this class was generated from the following files:
  • btchunkselector.h
  • btchunkselector.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