#include <piecedownloader.h>
Interface for all things which want to download pieces from something.
- Author
- Joris Guisson
Definition at line 56 of file piecedownloader.h.
◆ canAddRequest()
virtual bool bt::PieceDownloader::canAddRequest |
( |
| ) |
const |
|
pure virtual |
◆ cancel()
virtual void bt::PieceDownloader::cancel |
( |
const bt::Request & |
req | ) |
|
|
pure virtual |
◆ cancelAll()
virtual void bt::PieceDownloader::cancelAll |
( |
| ) |
|
|
pure virtual |
◆ canDownloadChunk()
virtual bool bt::PieceDownloader::canDownloadChunk |
( |
| ) |
const |
|
pure virtual |
Whether or not we can download another chunk from this.
Implemented in bt::PeerDownloader.
◆ checkTimeouts()
virtual void bt::PieceDownloader::checkTimeouts |
( |
| ) |
|
|
pure virtual |
◆ download()
virtual void bt::PieceDownloader::download |
( |
const bt::Request & |
req | ) |
|
|
pure virtual |
◆ getDownloadRate()
virtual bt::Uint32 bt::PieceDownloader::getDownloadRate |
( |
| ) |
const |
|
pure virtual |
Get the current download rate.
- Returns
- The download rate in bytes/sec
Implemented in bt::PeerDownloader.
◆ getName()
virtual QString bt::PieceDownloader::getName |
( |
| ) |
const |
|
pure virtual |
◆ grab()
int bt::PieceDownloader::grab |
( |
| ) |
|
◆ hasChunk()
virtual bool bt::PieceDownloader::hasChunk |
( |
bt::Uint32 |
| ) |
const |
|
inlinevirtual |
◆ isChoked()
virtual bool bt::PieceDownloader::isChoked |
( |
| ) |
const |
|
inlinevirtual |
◆ rejected
void bt::PieceDownloader::rejected |
( |
const bt::Request & |
req | ) |
|
|
signal |
A request was rejected.
- Parameters
-
◆ release()
void bt::PieceDownloader::release |
( |
| ) |
|
◆ timedout
void bt::PieceDownloader::timedout |
( |
const bt::Request & |
r | ) |
|
|
signal |
Emitted when a request takes longer then 60 seconds to download. The sender of the request will have to request it again. This does not apply for unsent requests. Their timestamps will be updated when they get transmitted.
- Parameters
-
The documentation for this class was generated from the following file: