jigdo API
Last update by Admin on 2010-05-23
Job::MakeImageDl::JigdoDownload Class Reference
Private class of MakeImageDl: Object extending a SingleUrl and used to retrieve the data of the .jigdo file. More...
#include <jigdodownload.hh>
Inheritance diagram for Job::MakeImageDl::JigdoDownload:

Public Member Functions | |
JigdoDownload (MakeImageDl *m, JigdoDownload *p, const string &jigdoUrl, ConfigFile::iterator destPos) | |
virtual | ~JigdoDownload () |
void | run () |
Behaviour as above. | |
virtual IOPtr< DataSource::IO > & | io () |
Access the correct io member, i.e. | |
virtual const IOPtr < DataSource::IO > & | io () const |
Detailed Description
Private class of MakeImageDl: Object extending a SingleUrl and used to retrieve the data of the .jigdo file.NB: The underlying Download's io pointer is set up to point to this object. Once this receives the calls, this object passes them on to its own io pointer, which will point to the corresponding front-end object, e.g. a GtkSingleUrl. This sandwiching is in contrast to "normal" single-file downloads, where the Download directly calls the GtkSingleUrl.
Constructor & Destructor Documentation
MakeImageDl::JigdoDownload::JigdoDownload | ( | MakeImageDl * | m, | |
JigdoDownload * | p, | |||
const string & | jigdoUrl, | |||
ConfigFile::iterator | destPos | |||
) |
- Parameters:
-
m Master which owns us p Parent JigdoDownload which [Include]d us, or null jigdoUrl Where to download .jigdo data destPos Where in config file to insert downloaded data
MakeImageDl::JigdoDownload::~JigdoDownload | ( | ) | [virtual] |
References Job::DataSource::io, and Job::MakeImageDl::io.
Member Function Documentation
void MakeImageDl::JigdoDownload::run | ( | ) | [virtual] |
Behaviour as above.
Defaults if not called before run() is false, i.e. don't add "Pragma: no-cache" header.
- Parameters:
-
pragmaNoCache If true, perform a "reload", discarding anything cached e.g. in a proxy. Start download or resume it All following bytes are written to destStream as well as passed to the IO object. We seek to the correct position each time when writing, so several parallel downloads for the same destStream are possible.
Reimplemented from Job::SingleUrl.
References Job::SingleUrl::run().
IOPtr< DataSource::IO > & MakeImageDl::JigdoDownload::io | ( | ) | [virtual] |
Access the correct io member, i.e.
for the derived class.
const IOPtr< DataSource::IO > & MakeImageDl::JigdoDownload::io | ( | ) | const [virtual] |
The documentation for this class was generated from the following files:
- job/jigdodownload.hh
- job/jigdodownload.cc
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
