kget
BTTransfer Class Reference
#include <bttransfer.h>

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
Here we define the Bittorrent specific flags.
- Enumerator:
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] |
| void BTTransfer::stop | ( | ) | [virtual] |
| int BTTransfer::elapsedTime | ( | ) | const [virtual] |
| int BTTransfer::remainingTime | ( | ) | const [virtual] |
| 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 |
| float BTTransfer::processedSize | ( | ) | const |
| 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 |
| 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 |
| void BTTransfer::setPort | ( | int | port | ) |
| 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] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference