#include <datasource.hh>

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 Progress * | progress () 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< IO > | io |
Classes | |
| class | IO |
| User interaction for DataSource. More... | |
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.
| Job::DataSource::DataSource | ( | ) | [inline] |
| virtual Job::DataSource::~DataSource | ( | ) | [inline, virtual] |
| 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] |
| 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] |
Return the internal progress object.
Implemented in Job::CachedUrl, and Job::SingleUrl.
Referenced by GtkSingleUrl::on_closeButton_clicked(), GtkSingleUrl::on_restartButton_clicked(), GtkSingleUrl::on_startButton_clicked(), and GtkSingleUrl::percentDone().
| 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().
1.5.6