20 #ifndef BTMOVEDATAFILESJOB_H
21 #define BTMOVEDATAFILESJOB_H
23 #include <torrent/job.h>
24 #include <util/resourcemanager.h>
28 class TorrentFileInterface;
52 void addMove(
const QString & src,
const QString & dst);
54 void start()
override;
55 void kill(
bool quietly =
true)
override;
58 const QMap<TorrentFileInterface*,QString> &
fileMap()
const {
return file_map;}
61 void onJobDone(KJob* j);
62 void onRecoveryJobDone(KJob* j);
63 void onTransferred(KJob *job, KJob::Unit unit, qulonglong amount);
64 void onSpeed(KJob* job,
unsigned long speed);
67 void recover(
bool delete_active);
69 void acquired()
override;
74 QString active_src,active_dst;
75 QMap<QString,QString> todo;
76 QMap<QString,QString> success;
77 int running_recovery_jobs;
78 QMap<TorrentFileInterface*,QString> file_map;
80 bt::Uint64 bytes_moved;
81 bt::Uint64 total_bytes;
82 bt::Uint64 bytes_moved_current_file;