kget
bt::DataChecker Class Reference
#include <datachecker.h>

Detailed Description
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] |
| 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] |
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:
KDE 4.2 API Reference