|
LMMS
|
#include <juce_URL.h>
Public Types | |
| using | Listener = DownloadTaskListener |
Public Member Functions | |
| virtual | ~DownloadTask () |
| int64 | getTotalLength () const |
| int64 | getLengthDownloaded () const |
| bool | isFinished () const |
| int | statusCode () const |
| bool | hadError () const |
| File | getTargetLocation () const |
Protected Member Functions | |
| DownloadTask () | |
Protected Attributes | |
| int64 | contentLength = -1 |
| int64 | downloaded = 0 |
| bool | finished = false |
| bool | error = false |
| int | httpCode = -1 |
| File | targetLocation |
Static Private Member Functions | |
| static std::unique_ptr< DownloadTask > | createFallbackDownloader (const URL &, const File &, const DownloadTaskOptions &) |
Friends | |
| class | URL |
Represents a download task.
Returned by downloadToFile() to allow querying and controlling the download task.
| using juce::URL::DownloadTask::Listener = DownloadTaskListener |
|
virtual |
Releases the resources of the download task, unregisters the listener and cancels the download if necessary.
|
protected |
|
staticprivate |
|
inline |
Returns the number of bytes that have been downloaded so far.
|
inline |
Returns the target file location that was provided in URL::downloadToFile.
|
inline |
Returns the total length of the download task.
This may return -1 if the length was not returned by the server.
|
inline |
Returns true if there was an error.
|
inline |
Returns true if the download finished or there was an error.
|
inline |
Returns the status code of the server's response.
This will only be valid after the download has finished.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |