libktorrent  2.1.1
Public Member Functions | List of all members
bt::SingleDataChecker Class Reference

#include <singledatachecker.h>

Inheritance diagram for bt::SingleDataChecker:
Inheritance graph
[legend]

Public Member Functions

 SingleDataChecker (bt::Uint32 from, bt::Uint32 to)
 
void check (const QString &path, const Torrent &tor, const QString &dnddir, const BitSet &current_status) override
 
- Public Member Functions inherited from bt::DataChecker
 DataChecker (bt::Uint32 from, bt::Uint32 to)
 
const BitSetgetResult () const
 
void stop ()
 Stop an ongoing check.
 

Additional Inherited Members

- Signals inherited from bt::DataChecker
void progress (quint32 num, quint32 total)
 
void status (quint32 num_failed, quint32 num_found, quint32 num_downloaded, quint32 num_not_downloaded)
 
- Protected Attributes inherited from bt::DataChecker
Uint32 downloaded
 
Uint32 failed
 
Uint32 found
 
bt::Uint32 from
 
bool need_to_stop
 
Uint32 not_downloaded
 
BitSet result
 
bt::Uint32 to
 

Detailed Description

Author
Joris Guisson

Data checker for single file torrents.

Definition at line 51 of file singledatachecker.h.

Member Function Documentation

◆ check()

void bt::SingleDataChecker::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
pathpath to the file or dir (this needs to end with the name suggestion of the torrent)
torThe torrent
dnddirDND dir, optional argument if we know this
current_statusCurrent status of the torrent

Implements bt::DataChecker.


The documentation for this class was generated from the following file: