20 #ifndef BTTRACKERSLIST_H
21 #define BTTRACKERSLIST_H
24 #include <ktorrent_export.h>
29 class TrackerInterface;
36 class KTORRENT_EXPORT TrackersList
40 virtual ~TrackersList();
46 virtual TrackerInterface* getCurrentTracker()
const = 0;
53 virtual void setCurrentTracker(TrackerInterface* t) = 0;
60 virtual void setCurrentTracker(
const QUrl &url) = 0;
65 virtual QList<TrackerInterface*> getTrackers() = 0;
75 virtual TrackerInterface* addTracker(
const QUrl &url,
bool custom =
true,
int tier = 1) = 0;
87 virtual bool removeTracker(
const QUrl &url) = 0;
98 virtual void restoreDefault() = 0;
103 virtual void setTrackerEnabled(
const QUrl &url,
bool on) = 0;
114 virtual bool noTrackersReachable()
const = 0;