KVIrc 5.2.4
Developer APIs
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TorrentInterface Class Referenceabstract

#include <TorrentInterface.h>

+ Inheritance diagram for TorrentInterface:

Public Member Functions

virtual bool announce (int i)=0
 
virtual int count ()=0
 
virtual int detect ()=0
 
virtual int fileCount (int i)=0
 
virtual QString fileName (int i, int file)=0
 
virtual QString filePriority (int i, int file)=0
 
QString lastError ()
 
virtual int maxDownloadSpeed ()=0
 
virtual int maxUploadSpeed ()=0
 
virtual QString name (int i)=0
 
virtual bool setFilePriority (int i, int file, const QString &prio)=0
 
virtual bool setMaxDownloadSpeed (int kbytes_per_sec)=0
 
virtual bool setMaxUploadSpeed (int kbytes_per_sec)=0
 
virtual float speedDown ()=0
 
virtual float speedUp ()=0
 
virtual bool start (int i)=0
 
virtual bool startAll ()=0
 
virtual QString state (int i)=0
 
virtual bool stop (int i)=0
 
virtual bool stopAll ()=0
 
 TorrentInterface ()
 
virtual float trafficDown ()=0
 
virtual float trafficUp ()=0
 
 ~TorrentInterface ()
 

Static Public Member Functions

static void select (TorrentInterface *i)
 
static TorrentInterfaceselected ()
 

Protected Attributes

QString m_lastError
 

Static Protected Attributes

static TorrentInterfacem_selected = nullptr
 

Constructor & Destructor Documentation

◆ TorrentInterface()

TorrentInterface::TorrentInterface ( )
inline

◆ ~TorrentInterface()

TorrentInterface::~TorrentInterface ( )
inline

Member Function Documentation

◆ announce()

virtual bool TorrentInterface::announce ( int  i)
pure virtual

◆ count()

virtual int TorrentInterface::count ( )
pure virtual

◆ detect()

virtual int TorrentInterface::detect ( )
pure virtual

◆ fileCount()

virtual int TorrentInterface::fileCount ( int  i)
pure virtual

◆ fileName()

virtual QString TorrentInterface::fileName ( int  i,
int  file 
)
pure virtual

◆ filePriority()

virtual QString TorrentInterface::filePriority ( int  i,
int  file 
)
pure virtual

◆ lastError()

QString TorrentInterface::lastError ( )
inline

References m_lastError.

◆ maxDownloadSpeed()

virtual int TorrentInterface::maxDownloadSpeed ( )
pure virtual

◆ maxUploadSpeed()

virtual int TorrentInterface::maxUploadSpeed ( )
pure virtual

◆ name()

virtual QString TorrentInterface::name ( int  i)
pure virtual

◆ select()

static void TorrentInterface::select ( TorrentInterface i)
inlinestatic

References i, and m_selected.

Referenced by TC_KVS_COMMAND(), TC_KVS_COMMAND(), and torrent_module_init().

◆ selected()

static TorrentInterface * TorrentInterface::selected ( )
inlinestatic

References m_selected.

Referenced by StatusBarApplet::update().

◆ setFilePriority()

virtual bool TorrentInterface::setFilePriority ( int  i,
int  file,
const QString &  prio 
)
pure virtual

◆ setMaxDownloadSpeed()

virtual bool TorrentInterface::setMaxDownloadSpeed ( int  kbytes_per_sec)
pure virtual

◆ setMaxUploadSpeed()

virtual bool TorrentInterface::setMaxUploadSpeed ( int  kbytes_per_sec)
pure virtual

◆ speedDown()

virtual float TorrentInterface::speedDown ( )
pure virtual

◆ speedUp()

virtual float TorrentInterface::speedUp ( )
pure virtual

◆ start()

virtual bool TorrentInterface::start ( int  i)
pure virtual

◆ startAll()

virtual bool TorrentInterface::startAll ( )
pure virtual

◆ state()

virtual QString TorrentInterface::state ( int  i)
pure virtual

◆ stop()

virtual bool TorrentInterface::stop ( int  i)
pure virtual

◆ stopAll()

virtual bool TorrentInterface::stopAll ( )
pure virtual

◆ trafficDown()

virtual float TorrentInterface::trafficDown ( )
pure virtual

◆ trafficUp()

virtual float TorrentInterface::trafficUp ( )
pure virtual

Member Data Documentation

◆ m_lastError

QString TorrentInterface::m_lastError
protected

Referenced by lastError().

◆ m_selected

TorrentInterface * TorrentInterface::m_selected = nullptr
staticprotected

Referenced by select(), and selected().


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