jigdo API

Job::DataSource Class Reference

Interface for objects returning data from the network or from disk. More...

#include <datasource.hh>

Inheritance diagram for Job::DataSource:

NoCopy Job::CachedUrl Job::SingleUrl Job::MakeImageDl::JigdoDownload

List of all members.


Public Member Functions

 DataSource ()
virtual ~DataSource ()
virtual void run ()=0
 Start delivering data.
virtual bool paused () const =0
 Is the data stream currently paused?
virtual void pause ()=0
 Pause the data stream.
virtual void cont ()=0
 Continue after pause().
virtual const Progressprogress () const =0
 Return the internal progress object.
virtual const string & location () const =0
 Return the URL used to download the data, or its filename on disc.

Public Attributes

IOSource< IOio

Classes

class  IO
 User interaction for DataSource. More...

Detailed Description

Interface for objects returning data from the network or from disk.

Implemented by SingleUrl and CachedUrl. MakeImageDl::dataSourceFor() is the function which examines the local jigdo download's temporary directory and creates a SingleUrl/CachedUrl as appropriate before putting it inside a MakeImageDl::Child.


Constructor & Destructor Documentation

Job::DataSource::DataSource (  )  [inline]

virtual Job::DataSource::~DataSource (  )  [inline, virtual]


Member Function Documentation

virtual void Job::DataSource::run (  )  [pure virtual]

Start delivering data.

Implemented in Job::CachedUrl, Job::MakeImageDl::JigdoDownload, and Job::SingleUrl.

Referenced by Job::MakeImageDl::MakeImageDl().

virtual bool Job::DataSource::paused (  )  const [pure virtual]

Is the data stream currently paused?

Implemented in Job::CachedUrl, and Job::SingleUrl.

virtual void Job::DataSource::pause (  )  [pure virtual]

Pause the data stream.

Implemented in Job::CachedUrl, and Job::SingleUrl.

Referenced by GtkSingleUrl::pause().

virtual void Job::DataSource::cont (  )  [pure virtual]

Continue after pause().

Implemented in Job::CachedUrl, and Job::SingleUrl.

Referenced by GtkSingleUrl::cont().

virtual const Progress* Job::DataSource::progress (  )  const [pure virtual]

virtual const string& Job::DataSource::location (  )  const [pure virtual]

Return the URL used to download the data, or its filename on disc.

Implemented in Job::CachedUrl, and Job::SingleUrl.

Referenced by Job::MakeImageDl::childFailed().


Member Data Documentation


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

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