jigdo API

Job::MakeImageDl::Child Class Reference

Each Child object stands for one DataSource (i.e. SingleUrl/CachedUrl) which the MakeImageDl starts as a "child download" of itself. More...

#include <makeimagedl.hh>

Inheritance diagram for Job::MakeImageDl::Child:

NoCopy Job::MakeImageDl::ChildListBase Job::DataSource::IO IListBase Job::IO IListBase

List of all members.


Public Member Functions

 ~Child ()
MakeImageDlmaster () const
DataSourcesource () const
void deleteSource ()
 Delete source object; subsequently, source()==0.
 Child (MakeImageDl *m, ChildList *listHead, DataSource *src, const MD5 *expectedContent)
 Only to be called by MakeImageDl and its helper classes (JigdoIO).

Friends

class MakeImageDl

Detailed Description

Each Child object stands for one DataSource (i.e. SingleUrl/CachedUrl) which the MakeImageDl starts as a "child download" of itself.

The Child maintains a private pointer to a DataSource. It also listens to what happens to the DataSource and informs the parent MakeImageDl e.g. of succeeded downloads.

Used to store additional information which the MakeImageDl needs, e.g. the filename in the cache.

The ctor and dtor automatically add/remove the Child in its master MakeImageDl's list of children. Careful, this class derives twice from IListBase, once via ChildListBase, once via Job::DataSource::IO.


Constructor & Destructor Documentation

Job::MakeImageDl::Child::~Child (  )  [inline]

References deleteSource(), and Paranoid.

Job::MakeImageDl::Child::Child ( MakeImageDl m,
ChildList listHead,
DataSource src,
const MD5 expectedContent 
) [inline]

Only to be called by MakeImageDl and its helper classes (JigdoIO).

Returns:
The JigdoIO or similar owned by this object. null after init
Parameters:
m Master MakeImageDl
listHead Pointer to master->children
src SingleUrl or other source of downloaded data
expectedContent null if no md5sum known, or non-null ptr to expected checksum; is copied away.

References Paranoid, and IList< T >::push_back().


Member Function Documentation

MakeImageDl* Job::MakeImageDl::Child::master (  )  const [inline]

Returns:
The MakeImageDl which owns this object.

Referenced by Job::JigdoIO::master().

Job::DataSource * Job::MakeImageDl::Child::source (  )  const [inline]

void Job::MakeImageDl::Child::deleteSource (  )  [inline]

Delete source object; subsequently, source()==0.

Referenced by ~Child().


Friends And Related Function Documentation

friend class MakeImageDl [friend]


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

Generated on Tue Sep 23 14:27:43 2008 for jigdo by  doxygen 1.5.6