Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/trackerslist.h
Show All 22 Lines | |||||
23 | #include <QUrl> | 23 | #include <QUrl> | ||
24 | #include <ktorrent_export.h> | 24 | #include <ktorrent_export.h> | ||
25 | 25 | | |||
26 | namespace bt | 26 | namespace bt | ||
27 | { | 27 | { | ||
28 | struct TrackerTier; | 28 | struct TrackerTier; | ||
29 | class TrackerInterface; | 29 | class TrackerInterface; | ||
30 | 30 | | |||
31 | struct TrackersStatusInfo { | ||||
32 | int trackers_count; | ||||
33 | int errors; | ||||
34 | int timeout_errors; | ||||
35 | int warnings; | ||||
36 | }; | ||||
37 | | ||||
31 | /** | 38 | /** | ||
32 | * @author Ivan Vasić <ivasic@gmail.com> | 39 | * @author Ivan Vasić <ivasic@gmail.com> | ||
33 | * | 40 | * | ||
34 | * This interface is used to provide access to AnnounceList object which holds a list of available trackers for a torrent. | 41 | * This interface is used to provide access to AnnounceList object which holds a list of available trackers for a torrent. | ||
35 | */ | 42 | */ | ||
36 | class KTORRENT_EXPORT TrackersList | 43 | class KTORRENT_EXPORT TrackersList | ||
37 | { | 44 | { | ||
38 | public: | 45 | public: | ||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | |||||
108 | */ | 115 | */ | ||
109 | void merge(const bt::TrackerTier* first); | 116 | void merge(const bt::TrackerTier* first); | ||
110 | 117 | | |||
111 | /** | 118 | /** | ||
112 | * Returns true if no tracker is reachable | 119 | * Returns true if no tracker is reachable | ||
113 | */ | 120 | */ | ||
114 | virtual bool noTrackersReachable() const = 0; | 121 | virtual bool noTrackersReachable() const = 0; | ||
115 | 122 | | |||
123 | /** | ||||
124 | * Returns true if any tracker has time out error | ||||
125 | */ | ||||
126 | virtual TrackersStatusInfo getTrackersStatusInfo() const = 0; | ||||
116 | }; | 127 | }; | ||
117 | 128 | | |||
118 | } | 129 | } | ||
119 | 130 | | |||
120 | #endif | 131 | #endif |