jigdo API
GtkMakeImage Class Reference
Frontend for Job::MakeImageDl. More...
#include <gtk-makeimage.hh>

Public Types | |
typedef void(GtkMakeImage::* | TickHandler )() |
Public Member Functions | |
GtkMakeImage (const string &uriStr, const string &destDir) | |
virtual | ~GtkMakeImage () |
virtual bool | run () |
Start/restart this job. | |
virtual void | selectRow () |
Called when the JobLine's line is selected in the list. | |
virtual bool | paused () const |
Is the job currently paused? | |
virtual void | pause () |
Pause the job. | |
virtual void | cont () |
Continue executing the job. | |
virtual void | stop () |
Stop executing the job. | |
virtual void | percentDone (uint64 *cur, uint64 *total) |
When called, must fill in current nr of bytes downloaded and total nr of bytes. | |
void | callRegularly (TickHandler handler) |
void | callRegularlyLater (const int milliSec, TickHandler handler) |
void | on_startButton_clicked () |
void | on_pauseButton_clicked () |
void | on_stopButton_clicked () |
void | on_restartButton_clicked () |
void | on_closeButton_clicked () |
Detailed Description
Frontend for Job::MakeImageDl.Member Typedef Documentation
typedef void(GtkMakeImage::* GtkMakeImage::TickHandler)() |
Reimplemented from JobLine.
Constructor & Destructor Documentation
GtkMakeImage::GtkMakeImage | ( | const string & | uriStr, | |
const string & | destDir | |||
) |
GtkMakeImage::~GtkMakeImage | ( | ) | [virtual] |
References debug, JobList::get(), JobLine::jobList(), Job::MakeImageDl::killAllChildren(), JobLine::row(), and x.
Member Function Documentation
bool GtkMakeImage::run | ( | ) | [virtual] |
Start/restart this job.
When called, must also create GUI elements for this Job in row number row() of GtkTreeView jobList()->view(). Is called after Job is added to the list, and when it is restarted (if at all). Child classes should provide an implementation.
- Returns:
- SUCCESS if everything OK, FAILURE if this object has deleted itself.
Implements JobLine.
References _, JobList::COLUMN_OBJECT, JobList::COLUMN_STATUS, Job::MakeImageDl::jigdoUri(), JobLine::jobList(), JobLine::row(), and Job::MakeImageDl::run().
Referenced by JobLine::create().
void GtkMakeImage::selectRow | ( | ) | [virtual] |
Called when the JobLine's line is selected in the list.
Implements JobLine.
References JobLine::jobList(), setNotebookPage(), JobList::setWindowOwner(), and GUI::window.
bool GtkMakeImage::paused | ( | ) | const [virtual] |
void GtkMakeImage::pause | ( | ) | [virtual] |
void GtkMakeImage::cont | ( | ) | [virtual] |
void GtkMakeImage::stop | ( | ) | [virtual] |
void GtkMakeImage::percentDone | ( | uint64 * | cur, | |
uint64 * | total | |||
) | [virtual] |
void GtkMakeImage::callRegularly | ( | TickHandler | handler | ) | [inline] |
References JobLine::callRegularly().
void GtkMakeImage::callRegularlyLater | ( | const int | milliSec, | |
TickHandler | handler | |||
) | [inline] |
References JobLine::callRegularlyLater().
void GtkMakeImage::on_startButton_clicked | ( | ) |
void GtkMakeImage::on_pauseButton_clicked | ( | ) |
void GtkMakeImage::on_stopButton_clicked | ( | ) |
void GtkMakeImage::on_restartButton_clicked | ( | ) |
void GtkMakeImage::on_closeButton_clicked | ( | ) |
References JobLine::jobList(), setNotebookPage(), and GUI::window.
Referenced by on_jigdo_closeButton_clicked().
The documentation for this class was generated from the following files:
- gtk/gtk-makeimage.hh
- gtk/gtk-makeimage.cc
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
