24 #include <util/sha1hash.h>
25 #include <interfaces/peersource.h>
26 #include <interfaces/trackerinterface.h>
27 #include <peer/peerid.h>
28 #include <ktorrent_export.h>
44 virtual Uint64 bytesDownloaded()
const = 0;
45 virtual Uint64 bytesUploaded()
const = 0;
46 virtual Uint64 bytesLeft()
const = 0;
47 virtual const SHA1Hash & infoHash()
const = 0;
48 virtual bool isPartialSeed()
const = 0;
110 void manualUpdate()
override = 0;
144 QTimer reannounce_timer;
145 Uint64 bytes_downloaded_at_start;
146 Uint64 bytes_uploaded_at_start;
static QString getCustomIP()
Get the custom ip to use, null if none is set.
void resetTrackerStats()
Reset the tracker stats.
virtual Uint32 failureCount() const =0
void failed(const QString &err)
Emit the failure signal, and set the error.
void handleFailure()
Handle a failure.
void requestFailed(const QString &failure_reason)
int getTier() const
Get the trackers tier.
Uint64 bytesUploaded() const
Calculates the bytes uploaded to send with the request.
static void setCustomIP(const QString &str)
Uint64 bytesDownloaded() const
Calculates the bytes downloaded to send with the request.
QUrl trackerURL() const
get the tracker url