libktorrent
2.2.0
|
#include <singledatachecker.h>
Public Member Functions | |
SingleDataChecker (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. | |
Additional Inherited Members | |
![]() | |
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 |
Data checker for single file torrents.
Definition at line 51 of file singledatachecker.h.
|
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.
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.