OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_URL.h>
Inherited by juce::FallbackDownloadTask.
Classes | |
struct | Listener |
Public Member Functions | |
virtual | ~DownloadTask () |
int64 | getTotalLength () const |
int64 | getLengthDownloaded () const |
bool | isFinished () const |
int | statusCode () const |
bool | hadError () const |
File | getTargetLocation () const |
Protected Attributes | |
int64 | contentLength = -1 |
int64 | downloaded = 0 |
bool | finished = false |
bool | error = false |
int | httpCode = -1 |
File | targetLocation |
Represents a download task. Returned by downloadToFile to allow querying and controlling the download task.
Definition at line 364 of file juce_URL.h.
|
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.
|
protected |
Definition at line 134 of file juce_URL.cpp.
|
inline |
Returns the number of bytes that have been downloaded so far.
Definition at line 391 of file juce_URL.h.
|
inline |
Returns the target file location that was provided in URL::downloadToFile.
Definition at line 406 of file juce_URL.h.
|
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 388 of file juce_URL.h.
|
inline |
Returns true if there was an error.
Definition at line 403 of file juce_URL.h.
|
inline |
Returns true if the download finished or there was an error.
Definition at line 394 of file juce_URL.h.
|
inline |
Returns the status code of the server's response. This will only be valid after the download has finished.
Definition at line 400 of file juce_URL.h.
|
protected |
Definition at line 409 of file juce_URL.h.
|
protected |
Definition at line 409 of file juce_URL.h.
Definition at line 410 of file juce_URL.h.
Definition at line 410 of file juce_URL.h.
|
protected |
Definition at line 411 of file juce_URL.h.
|
protected |
Definition at line 412 of file juce_URL.h.