jigdo API
Last update by Admin on 2010-05-23
Job::MakeImageDl::IO Class Reference
User interaction for MakeImageDl. More...
#include <makeimagedl.hh>
Inheritance diagram for Job::MakeImageDl::IO:

Public Member Functions | |
virtual void | job_deleted ()=0 |
Called by the job when it is deleted or when a different IO object is registered with it. | |
virtual void | job_succeeded ()=0 |
Called when the job has successfully completed its task. | |
virtual void | job_failed (const string &message)=0 |
Called when the job fails. | |
virtual void | job_message (const string &message)=0 |
Informational message. | |
virtual void | makeImageDl_new (Job::DataSource *childDownload, const string &uri, const string &destDesc)=0 |
Called by MakeImageDl after it has started a new download; either the download of the .jigdo file or the .template file, or the download of a part. | |
virtual void | makeImageDl_finished (Job::DataSource *childDownload)=0 |
Usually called when the child has (successfully or not) finished, i.e. | |
virtual void | makeImageDl_haveImageSection ()=0 |
Called as soon as the first [Image] section in the .jigdo data has been parsed. |
Detailed Description
User interaction for MakeImageDl.
Member Function Documentation
virtual void Job::MakeImageDl::IO::job_deleted | ( | ) | [pure virtual] |
virtual void Job::MakeImageDl::IO::job_succeeded | ( | ) | [pure virtual] |
virtual void Job::MakeImageDl::IO::job_failed | ( | const string & | message | ) | [pure virtual] |
Called when the job fails.
The only remaining action after getting this is to delete the job object.
Implements Job::IO.
virtual void Job::MakeImageDl::IO::job_message | ( | const string & | message | ) | [pure virtual] |
virtual void Job::MakeImageDl::IO::makeImageDl_new | ( | Job::DataSource * | childDownload, | |
const string & | uri, | |||
const string & | destDesc | |||
) | [pure virtual] |
Called by MakeImageDl after it has started a new download; either the download of the .jigdo file or the .template file, or the download of a part.
The GTK+ GUI uses this to display the new SingleUrl as a "child" of the MakeImageDl.
- Parameters:
-
uri URL of download that was started childDownload For example a SingleUrl, but could also be an object which just outputs existing cache contents. If the method implementer is interested in displaying progress info for this download, it should call childDownload->io.addListener(). destDesc A descriptive string like "/foo/bar/image, offset 3453", NOT a filename! Supplied for information only, to be displayed to the user.
virtual void Job::MakeImageDl::IO::makeImageDl_finished | ( | Job::DataSource * | childDownload | ) | [pure virtual] |
Usually called when the child has (successfully or not) finished, i.e.
just after yourIo->job_succeeded/failed() was called.
virtual void Job::MakeImageDl::IO::makeImageDl_haveImageSection | ( | ) | [pure virtual] |
Called as soon as the first [Image] section in the .jigdo data has been parsed.
Call MakeImageDl::imageName() etc to get the info from the image section.
The documentation for this class was generated from the following file:
- job/makeimagedl.hh
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
