#include <cached-url.hh>

Public Member Functions | |
| CachedUrl (const string &filename, uint64 prio) | |
| Create object, but don't start outputting data yet - use run() to do that. | |
| virtual | ~CachedUrl () |
| virtual void | run () |
| Start delivering data. | |
| virtual bool | paused () const |
| Is the download currently paused? From DataSource. | |
| virtual void | pause () |
| Pause the download. | |
| virtual void | cont () |
| Continue downloading. | |
| virtual const Progress * | progress () const |
| Return the internal progress object. | |
| virtual const string & | location () const |
| Return the URL used to download the data. | |
Friends | |
| struct | Cmp |
Classes | |
| struct | Cmp |
| CachedUrl::CachedUrl | ( | const string & | filename, | |
| uint64 | prio | |||
| ) |
Create object, but don't start outputting data yet - use run() to do that.
| filename | File to spool from | |
| prio | "Priority" - if >1 CachedUrls are running, the ones with lower prio get spooled first. |
References Assert, and Progress::setDataSize().
| CachedUrl::~CachedUrl | ( | ) | [virtual] |
| void CachedUrl::run | ( | ) | [virtual] |
Start delivering data.
Implements Job::DataSource.
References cont(), Progress::dataSize(), debug, Job::DataSource::io, and IOSOURCE_SEND.
| bool CachedUrl::paused | ( | ) | const [virtual] |
| void CachedUrl::pause | ( | ) | [virtual] |
| void CachedUrl::cont | ( | ) | [virtual] |
Continue downloading.
From DataSource.
Implements Job::DataSource.
References debug.
Referenced by run().
| const Progress * CachedUrl::progress | ( | ) | const [virtual] |
| const string & CachedUrl::location | ( | ) | const [virtual] |
friend struct Cmp [friend] |
1.5.6