#include <DownloadJob.hpp>
Public Member Functions | |
DownloadJob () | |
Default constructor. | |
bool | queueItemToFetch (volatile Cache::Item *_item, juce::String *commTo=0) |
Queue an item to download. | |
virtual juce::ThreadPoolJob::JobStatus | runJob () |
This callback is called when the job is ready to be running. | |
~DownloadJob () | |
And its destructor. |
UZI::DownloadJob::DownloadJob | ( | ) | [inline] |
Default constructor.
UZI::DownloadJob::~DownloadJob | ( | ) | [inline] |
And its destructor.
Typical usage case will release the item in the cache to handle it after the job is done. However, it case the job doesn't finish before being deleted, the item is deleted accordingly.
bool UZI::DownloadJob::queueItemToFetch | ( | volatile Cache::Item * | _item, | |
juce::String * | commTo = 0 | |||
) | [inline] |
Queue an item to download.
juce::ThreadPoolJob::JobStatus UZI::DownloadJob::runJob | ( | ) | [virtual] |
This callback is called when the job is ready to be running.