Permalink
Browse files

Added 'Tracker::can_scrape()'.

  • Loading branch information...
1 parent c94483b commit d870ae66042360c4c90983632a3a2e7f47a7af13 @rakshasa committed Apr 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/torrent/tracker.h
View
@@ -80,9 +80,11 @@ class LIBTORRENT_EXPORT Tracker {
bool is_extra_tracker() const { return (m_flags & flag_extra_tracker); }
bool is_in_use() const { return is_enabled() && m_success_counter != 0; }
+ bool can_scrape() const { return (m_flags & flag_can_scrape); }
+
virtual bool is_busy() const = 0;
bool is_busy_not_scrape() const { return m_latest_event != EVENT_SCRAPE && is_busy(); }
- virtual bool is_usable() const { return is_enabled(); }
+ virtual bool is_usable() const { return is_enabled(); }
bool can_request_state() const;

0 comments on commit d870ae6

Please sign in to comment.