#include <webseed.h>
|
bool | enabled |
|
QString | status |
|
Uint64 | total_downloaded |
|
QUrl | url |
|
bool | user |
|
- Author
- Joris Guisson Class which handles downloading from a webseed
Definition at line 47 of file webseed.h.
◆ cancel()
void bt::WebSeed::cancel |
( |
| ) |
|
Cancel the current download and kill the connection
◆ chunkDownloaded()
void bt::WebSeed::chunkDownloaded |
( |
Uint32 |
chunk | ) |
|
A chunk has been downloaded.
- Parameters
-
◆ chunkDownloadFinished
◆ chunkDownloadStarted
◆ chunkReady
void bt::WebSeed::chunkReady |
( |
Chunk * |
c | ) |
|
|
signal |
Emitted when a chunk is downloaded
- Parameters
-
◆ download()
void bt::WebSeed::download |
( |
Uint32 |
first, |
|
|
Uint32 |
last |
|
) |
| |
Download a range of chunks
- Parameters
-
first | The first chunk |
last | The last chunk |
◆ finished
void bt::WebSeed::finished |
( |
| ) |
|
|
signal |
Emitted when a range has been fully downloaded
◆ onExcluded()
void bt::WebSeed::onExcluded |
( |
Uint32 |
from, |
|
|
Uint32 |
to |
|
) |
| |
A range has been excluded, if we are fully downloading in this range, reset.
- Parameters
-
from | Start of range |
to | End of range |
◆ reset
void bt::WebSeed::reset |
( |
| ) |
|
|
slot |
Reset the webseed (kills the connection)
◆ setGroupIDs()
void bt::WebSeed::setGroupIDs |
( |
Uint32 |
up, |
|
|
Uint32 |
down |
|
) |
| |
Set the group ID's of the http connection (for speed limits)
- Parameters
-
up | Upload group id |
down | Download group id |
◆ setProxy()
static void bt::WebSeed::setProxy |
( |
const QString & |
host, |
|
|
bt::Uint16 |
port |
|
) |
| |
|
static |
Set the proxy to use for all WebSeeds
- Parameters
-
host | Hostname or IP address of the proxy |
port | Port number of the proxy |
◆ setProxyEnabled()
static void bt::WebSeed::setProxyEnabled |
( |
bool |
on | ) |
|
|
static |
Whether or not to enable or disable the use of a proxy. When the proxy is disabled, we will use the KDE proxy settings.
- Parameters
-
◆ update()
Uint32 bt::WebSeed::update |
( |
| ) |
|
Check if the connection has received some data and handle it.
- Returns
- The number of bytes downloaded
The documentation for this class was generated from the following file: