OpenShot Library | libopenshot-audio  0.2.0
juce::URL::DownloadTask::Listener Struct Referenceabstract

Used to receive callbacks for download progress. More...

#include <juce_URL.h>

Public Member Functions

virtual void finished (URL::DownloadTask *task, bool success)=0
 Called when the download has finished. More...
 
virtual void progress (URL::DownloadTask *task, int64 bytesDownloaded, int64 totalLength)
 Called periodically by the OS to indicate download progress. More...
 

Detailed Description

Used to receive callbacks for download progress.

Definition at line 360 of file juce_URL.h.

Member Function Documentation

◆ finished()

virtual void juce::URL::DownloadTask::Listener::finished ( URL::DownloadTask task,
bool  success 
)
pure virtual

Called when the download has finished.

Be aware that this callback may come on an arbitrary thread.

Referenced by juce::FallbackDownloadTask::run().

◆ progress()

void juce::URL::DownloadTask::Listener::progress ( URL::DownloadTask task,
int64  bytesDownloaded,
int64  totalLength 
)
virtual

Called periodically by the OS to indicate download progress.

Beware that this callback may come on an arbitrary thread.

Definition at line 109 of file juce_URL.cpp.

References juce::File::createOutputStream(), and juce::File::deleteFile().

Referenced by juce::FallbackDownloadTask::run().


The documentation for this struct was generated from the following files: