Async Download.
More...
#include <gin_util.h>
Inherits juce::Thread, and juce::AsyncUpdater.
Async Download.
Doesn't have the main thread pause the URL::downloadToFile has
◆ AsyncDownload() [1/2]
AsyncDownload::AsyncDownload |
( |
juce::String |
url_, |
|
|
std::function< void(AsyncDownload *, const juce::MemoryBlock &, bool)> |
cb_, |
|
|
int |
timeoutMS_ = 0 |
|
) |
| |
◆ AsyncDownload() [2/2]
◆ ~AsyncDownload()
AsyncDownload::~AsyncDownload |
( |
| ) |
|
|
override |
◆ run()
void AsyncDownload::run |
( |
| ) |
|
|
override |
◆ readEntireBinaryStream()
bool AsyncDownload::readEntireBinaryStream |
( |
juce::MemoryBlock & |
destData, |
|
|
bool |
usePostCommand = false |
|
) |
| |
◆ handleAsyncUpdate()
void AsyncDownload::handleAsyncUpdate |
( |
| ) |
|
|
override |
◆ url
juce::URL AsyncDownload::url |
◆ cb
◆ timeoutMS
int AsyncDownload::timeoutMS = 0 |
◆ ok
◆ data
juce::MemoryBlock AsyncDownload::data |
The documentation for this class was generated from the following file: