25 #include <ktorrent_export.h>
26 #include "torrentstats.h"
28 class KJobTrackerInterface;
37 class KTORRENT_EXPORT
Job :
public KIO::Job
47 void start()
override;
48 virtual void kill(
bool quietly=
true);
70 static KJobTrackerInterface* tracker;
TorrentControl * torrent()
Get the torrent associated with this job.
virtual TorrentStatus torrentStatus() const
Return the status of the torrent during the job (default implementation returns INVALID_STATUS)
bool stopTorrent() const
Do we need to stop the torrent when the job is running.
void setTorrent(TorrentControl *t)
Set the torrent associated with this job.
static void setJobTracker(KJobTrackerInterface *trk)
Set the job tracker.
Controls just about everything.
void registerWithTracker()
Register the job with the tracker.