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

kget

bt::DataChecker

bt::DataChecker Class Reference

#include <datachecker.h>

Inheritance diagram for bt::DataChecker:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson

Checks which data is downloaded, given a torrent and a file or directory containing files of the torrent.

Definition at line 41 of file datachecker.h.


Public Member Functions

virtual void check (const QString &path, const Torrent &tor, const QString &dnddir, const BitSet &status)=0
 DataChecker ()
DataCheckerListener * getListener ()
const BitSet & getResult () const
void setListener (DataCheckerListener *l)
virtual ~DataChecker ()

Protected Attributes

Uint32 downloaded
Uint32 failed
Uint32 found
DataCheckerListener * listener
Uint32 not_downloaded
BitSet result

Constructor & Destructor Documentation

bt::DataChecker::DataChecker (  ) 

Definition at line 24 of file datachecker.cpp.

bt::DataChecker::~DataChecker (  )  [virtual]

Definition at line 30 of file datachecker.cpp.


Member Function Documentation

virtual void bt::DataChecker::check ( const QString &  path,
const Torrent &  tor,
const QString &  dnddir,
const BitSet &  status 
) [pure virtual]

Check to see which chunks have been downloaded of a torrent, and which chunks fail.

The corresponding bitsets should be filled with this information. If anything goes wrong and Error should be thrown.

Parameters:
path path to the file or dir (this needs to end with the name suggestion of the torrent)
tor The torrent
dnddir DND dir, optional argument if we know this
status Current status of the torrent

Implemented in bt::MultiDataChecker, and bt::SingleDataChecker.

DataCheckerListener* bt::DataChecker::getListener (  )  [inline]

Get the listener.

Definition at line 67 of file datachecker.h.

const BitSet& bt::DataChecker::getResult (  )  const [inline]

Get the BitSet representing all the downloaded chunks and which is the result of the data check.

Definition at line 64 of file datachecker.h.

void bt::DataChecker::setListener ( DataCheckerListener *  l  )  [inline]

Set the listener.

Definition at line 48 of file datachecker.h.


Member Data Documentation

Uint32 bt::DataChecker::downloaded [protected]

Definition at line 70 of file datachecker.h.

Uint32 bt::DataChecker::failed [protected]

Definition at line 70 of file datachecker.h.

Uint32 bt::DataChecker::found [protected]

Definition at line 70 of file datachecker.h.

DataCheckerListener* bt::DataChecker::listener [protected]

Definition at line 71 of file datachecker.h.

Uint32 bt::DataChecker::not_downloaded [protected]

Definition at line 70 of file datachecker.h.

BitSet bt::DataChecker::result [protected]

Definition at line 69 of file datachecker.h.


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