#include <juce_URL.h>
Inherited by juce::FallbackDownloadTask.
Represents a download task.
Returned by downloadToFile() to allow querying and controlling the download task.
Definition at line 499 of file juce_URL.h.
◆ Listener
◆ ~DownloadTask()
juce::URL::DownloadTask::~DownloadTask |
( |
| ) |
|
|
virtual |
Releases the resources of the download task, unregisters the listener and cancels the download if necessary.
Definition at line 135 of file juce_URL.cpp.
◆ DownloadTask()
juce::URL::DownloadTask::DownloadTask |
( |
| ) |
|
|
protected |
◆ getLengthDownloaded()
int64 juce::URL::DownloadTask::getLengthDownloaded |
( |
| ) |
const |
|
inline |
Returns the number of bytes that have been downloaded so far.
Definition at line 516 of file juce_URL.h.
◆ getTargetLocation()
File juce::URL::DownloadTask::getTargetLocation |
( |
| ) |
const |
|
inline |
◆ getTotalLength()
int64 juce::URL::DownloadTask::getTotalLength |
( |
| ) |
const |
|
inline |
Returns the total length of the download task.
This may return -1 if the length was not returned by the server.
Definition at line 513 of file juce_URL.h.
◆ hadError()
bool juce::URL::DownloadTask::hadError |
( |
| ) |
const |
|
inline |
Returns true if there was an error.
Definition at line 530 of file juce_URL.h.
◆ isFinished()
bool juce::URL::DownloadTask::isFinished |
( |
| ) |
const |
|
inline |
Returns true if the download finished or there was an error.
Definition at line 519 of file juce_URL.h.
◆ statusCode()
int juce::URL::DownloadTask::statusCode |
( |
| ) |
const |
|
inline |
Returns the status code of the server's response.
This will only be valid after the download has finished.
- See also
- isFinished
Definition at line 527 of file juce_URL.h.
◆ contentLength
int64 juce::URL::DownloadTask::contentLength = -1 |
|
protected |
◆ downloaded
int64 juce::URL::DownloadTask::downloaded = 0 |
|
protected |
◆ error
bool juce::URL::DownloadTask::error = false |
|
protected |
◆ finished
bool juce::URL::DownloadTask::finished = false |
|
protected |
◆ httpCode
int juce::URL::DownloadTask::httpCode = -1 |
|
protected |
◆ targetLocation
File juce::URL::DownloadTask::targetLocation |
|
protected |
The documentation for this class was generated from the following files: