• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

BTTransfer Class Reference

#include <bttransfer.h>

Inheritance diagram for BTTransfer:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 19 of file bttransfer.h.


Public Types

enum  BTTransferChange {
  Tc_ChunksTotal = 0x00010000, Tc_ChunksDownloaded = 0x00020000, Tc_ChunksExcluded = 0x00040000, Tc_ChunksLeft = 0x00080000,
  Tc_SeedsConnected = 0x00160000, Tc_SeedsDisconnected = 0x00320000, Tc_LeechesConnected = 0x00640000, Tc_LeechesDisconnected = 0x01280000,
  Tc_DlRate = 0x02560000, Tc_UlRate = 0x05120000, Tc_UlLimit = 0x07860000, Tc_DlLimit = 0x09840000,
  Tc_SessionBytesDownloaded = 0x10240000, Tc_SessionBytesUploaded = 0x20480000, Tc_TrackersList = 0x40960000
}

Public Member Functions

 BTTransfer (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
 ~BTTransfer ()
void start ()
void stop ()
int elapsedTime () const
int remainingTime () const
bool isResumable () const
int chunksTotal () const
int chunksDownloaded () const
int chunksExcluded () const
int chunksLeft () const
int seedsConnected () const
int seedsDisconnected () const
int leechesConnected () const
int leechesDisconnected () const
int dlRate () const
int ulRate () const
float totalSize () const
float processedSize () const
int sessionBytesDownloaded () const
int sessionBytesUploaded () const
KUrl::List trackersList () const
bt::TorrentControl * torrentControl ()
int ulLimit () const
int dlLimit () const
int percent () const
void setPort (int port)
void setTrafficLimits (int ulLimit, int dlLimit)
void setMaxShareRatio (float ratio)
void addTracker (QString url)
void save (const QDomElement &element)
bool ready ()

Protected Member Functions

void load (const QDomElement &e)

Member Enumeration Documentation

enum BTTransfer::BTTransferChange

Here we define the Bittorrent specific flags.

Enumerator:
Tc_ChunksTotal 
Tc_ChunksDownloaded 
Tc_ChunksExcluded 
Tc_ChunksLeft 
Tc_SeedsConnected 
Tc_SeedsDisconnected 
Tc_LeechesConnected 
Tc_LeechesDisconnected 
Tc_DlRate 
Tc_UlRate 
Tc_UlLimit 
Tc_DlLimit 
Tc_SessionBytesDownloaded 
Tc_SessionBytesUploaded 
Tc_TrackersList 

Definition at line 27 of file bttransfer.h.


Constructor & Destructor Documentation

BTTransfer::BTTransfer ( TransferGroup *  parent,
TransferFactory *  factory,
Scheduler *  scheduler,
const KUrl &  src,
const KUrl &  dest,
const QDomElement *  e = 0 
)

Definition at line 40 of file bttransfer.cpp.

BTTransfer::~BTTransfer (  ) 

Definition at line 60 of file bttransfer.cpp.


Member Function Documentation

void BTTransfer::start (  )  [virtual]

Implements Job.

Definition at line 74 of file bttransfer.cpp.

void BTTransfer::stop (  )  [virtual]

Implements Job.

Definition at line 97 of file bttransfer.cpp.

int BTTransfer::elapsedTime (  )  const [virtual]

Implements Job.

Definition at line 479 of file bttransfer.cpp.

int BTTransfer::remainingTime (  )  const [virtual]

Implements Job.

Definition at line 488 of file bttransfer.cpp.

bool BTTransfer::isResumable (  )  const [virtual]

Reimplemented functions from Transfer-Class (transfer.cpp).

Implements Job.

Definition at line 68 of file bttransfer.cpp.

int BTTransfer::chunksTotal (  )  const

Definition at line 407 of file bttransfer.cpp.

int BTTransfer::chunksDownloaded (  )  const

Definition at line 416 of file bttransfer.cpp.

int BTTransfer::chunksExcluded (  )  const

Definition at line 425 of file bttransfer.cpp.

int BTTransfer::chunksLeft (  )  const

Definition at line 434 of file bttransfer.cpp.

int BTTransfer::seedsConnected (  )  const

Definition at line 443 of file bttransfer.cpp.

int BTTransfer::seedsDisconnected (  )  const

Definition at line 452 of file bttransfer.cpp.

int BTTransfer::leechesConnected (  )  const

Definition at line 461 of file bttransfer.cpp.

int BTTransfer::leechesDisconnected (  )  const

Definition at line 470 of file bttransfer.cpp.

int BTTransfer::dlRate (  )  const

Definition at line 353 of file bttransfer.cpp.

int BTTransfer::ulRate (  )  const

Definition at line 362 of file bttransfer.cpp.

float BTTransfer::totalSize (  )  const

Reimplemented from Transfer.

Definition at line 371 of file bttransfer.cpp.

float BTTransfer::processedSize (  )  const

Reimplemented from Transfer.

Definition at line 380 of file bttransfer.cpp.

int BTTransfer::sessionBytesDownloaded (  )  const

Definition at line 389 of file bttransfer.cpp.

int BTTransfer::sessionBytesUploaded (  )  const

Definition at line 398 of file bttransfer.cpp.

KUrl::List BTTransfer::trackersList (  )  const

Property-Functions.

Definition at line 343 of file bttransfer.cpp.

bt::TorrentControl * BTTransfer::torrentControl (  ) 

Definition at line 515 of file bttransfer.cpp.

int BTTransfer::ulLimit (  )  const

Definition at line 497 of file bttransfer.cpp.

int BTTransfer::dlLimit (  )  const

Definition at line 506 of file bttransfer.cpp.

int BTTransfer::percent (  )  const

Reimplemented from Transfer.

Definition at line 521 of file bttransfer.cpp.

void BTTransfer::setPort ( int  port  ) 

Public functions of BTTransfer.

Definition at line 166 of file bttransfer.cpp.

void BTTransfer::setTrafficLimits ( int  ulLimit,
int  dlLimit 
)

Definition at line 172 of file bttransfer.cpp.

void BTTransfer::setMaxShareRatio ( float  ratio  ) 

Definition at line 183 of file bttransfer.cpp.

void BTTransfer::addTracker ( QString  url  ) 

Definition at line 192 of file bttransfer.cpp.

void BTTransfer::save ( const QDomElement &  element  )  [virtual]

Saves this transfer to the given QDomNode.

Parameters:
n The pointer to the QDomNode where the transfer will be saved
Returns:
The created QDomElement

Reimplemented from Transfer.

Definition at line 152 of file bttransfer.cpp.

bool BTTransfer::ready (  ) 

Definition at line 530 of file bttransfer.cpp.

void BTTransfer::load ( const QDomElement &  e  )  [protected, virtual]

Reimplemented from Transfer.

Definition at line 124 of file bttransfer.cpp.


The documentation for this class was generated from the following files:
  • bttransfer.h
  • bttransfer.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal