20 #ifndef BT_DATACHECKERJOB_H
21 #define BT_DATACHECKERJOB_H
23 #include <torrent/job.h>
24 #include <util/resourcemanager.h>
28 class DataCheckerThread;
32 class KTORRENT_EXPORT DataCheckerJob :
public bt::Job,
public Resource
36 DataCheckerJob(
bool auto_import,TorrentControl* tc, bt::Uint32 from, bt::Uint32 to);
37 ~DataCheckerJob()
override;
39 void start()
override;
40 void kill(
bool quietly =
true)
override;
41 TorrentStatus torrentStatus()
const override {
return CHECKING_DATA;}
44 bool isAutoImport()
const {
return auto_import;}
47 bool isStopped()
const {
return killed;}
50 bt::Uint32 firstChunk()
const {
return from;}
53 bt::Uint32 lastChunk()
const {
return to;}
56 void threadFinished();
57 void progress(quint32 num, quint32 total);
58 void status(quint32 num_failed, quint32 num_found, quint32 num_downloaded, quint32 num_not_downloaded);
61 void acquired()
override;
74 #endif // BT_DATACHECKERJOB_H