#include <multidatachecker.h>
|
| MultiDataChecker (bt::Uint32 from, bt::Uint32 to) |
|
void | check (const QString &path, const Torrent &tor, const QString &dnddir, const BitSet ¤t_status) override |
|
| DataChecker (bt::Uint32 from, bt::Uint32 to) |
|
const BitSet & | getResult () const |
|
void | stop () |
| Stop an ongoing check.
|
|
|
void | progress (quint32 num, quint32 total) |
|
void | status (quint32 num_failed, quint32 num_found, quint32 num_downloaded, quint32 num_not_downloaded) |
|
Uint32 | downloaded |
|
Uint32 | failed |
|
Uint32 | found |
|
bt::Uint32 | from |
|
bool | need_to_stop |
|
Uint32 | not_downloaded |
|
BitSet | result |
|
bt::Uint32 | to |
|
- Author
- Joris Guisson
Definition at line 52 of file multidatachecker.h.
◆ check()
void bt::MultiDataChecker::check |
( |
const QString & |
path, |
|
|
const Torrent & |
tor, |
|
|
const QString & |
dnddir, |
|
|
const BitSet & |
current_status |
|
) |
| |
|
overridevirtual |
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 |
current_status | Current status of the torrent |
Implements bt::DataChecker.
The documentation for this class was generated from the following file: