#include <trackerslist.h>
- Author
- Ivan Vasić ivasi.nosp@m.c@gm.nosp@m.ail.c.nosp@m.om
This interface is used to provide access to AnnounceList object which holds a list of available trackers for a torrent.
Definition at line 54 of file trackerslist.h.
◆ addTracker()
| virtual TrackerInterface* bt::TrackersList::addTracker |
( |
const QUrl & |
url, |
|
|
bool |
custom = true, |
|
|
int |
tier = 1 |
|
) |
| |
|
pure virtual |
Adds a tracker URL to the list.
- Parameters
-
| url | The URL |
| custom | Is it a custom tracker |
| tier | Which tier (or priority) the tracker has, tier 1 are the main trackers, tier 2 are backups ... |
- Returns
- The Tracker
Implemented in bt::TrackerManager.
◆ canRemoveTracker()
◆ getCurrentTracker()
Get the current tracker (for non private torrents this returns 0, seeing that all trackers are used at the same time)
Implemented in bt::TrackerManager.
◆ getTrackers()
◆ merge()
Merge an other tracker list.
- Parameters
-
◆ noTrackersReachable()
| virtual bool bt::TrackersList::noTrackersReachable |
( |
| ) |
const |
|
pure virtual |
◆ removeTracker() [1/2]
| virtual bool bt::TrackersList::removeTracker |
( |
const QUrl & |
url | ) |
|
|
pure virtual |
◆ removeTracker() [2/2]
◆ restoreDefault()
| virtual void bt::TrackersList::restoreDefault |
( |
| ) |
|
|
pure virtual |
◆ setCurrentTracker() [1/2]
| virtual void bt::TrackersList::setCurrentTracker |
( |
const QUrl & |
url | ) |
|
|
pure virtual |
Sets the current tracker and does the announce. For non private torrents, this does nothing.
- Parameters
-
Implemented in bt::TrackerManager.
◆ setCurrentTracker() [2/2]
Sets the current tracker and does the announce. For non private torrents, this does nothing.
- Parameters
-
Implemented in bt::TrackerManager.
◆ setTrackerEnabled()
| virtual void bt::TrackersList::setTrackerEnabled |
( |
const QUrl & |
url, |
|
|
bool |
on |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: