libktorrent  2.2.0
Public Member Functions | Protected Attributes | List of all members
bt::TrackerInterface Class Reference

#include <trackerinterface.h>

Inheritance diagram for bt::TrackerInterface:
Inheritance graph
[legend]

Public Member Functions

 TrackerInterface (const QUrl &url)
 
Uint32 getInterval () const
 
int getNumLeechers () const
 Get the number of leechers.
 
int getNumSeeders () const
 Get the number of seeders.
 
int getTotalTimesDownloaded () const
 Get the number of times the torrent was downloaded.
 
bool hasWarning () const
 Is there any warnings.
 
bool isEnabled () const
 Is the tracker enabled.
 
bool isStarted () const
 See if a start request succeeded.
 
virtual void reset ()
 Reset the tracker.
 
void setEnabled (bool on)
 Enable or disable the tracker.
 
void setInterval (Uint32 i)
 Set the interval.
 
bool timeOut () const
 Is tracker timed out.
 
Uint32 timeToNextUpdate () const
 Get the time in seconds to the next tracker update.
 
TrackerStatus trackerStatus () const
 Get the tracker status.
 
QString trackerStatusString () const
 Get a string of the current tracker status.
 
QUrl trackerURL () const
 get the tracker url
 

Protected Attributes

bool enabled
 
QString error
 
Uint32 interval
 
int leechers
 
QDateTime request_time
 
int seeders
 
bool started
 
TrackerStatus status
 
bool time_out
 
int total_downloaded
 
QUrl url
 
QString warning
 

Detailed Description

Interface class for trackers to be used in plugins

Definition at line 56 of file trackerinterface.h.

Member Function Documentation

◆ getInterval()

Uint32 bt::TrackerInterface::getInterval ( ) const
inline

Get the update interval in ms

Returns
interval

Definition at line 84 of file trackerinterface.h.


The documentation for this class was generated from the following file: