jigdo API

GtkMakeImage Class Reference

Frontend for Job::MakeImageDl. More...

#include <gtk-makeimage.hh>

Inheritance diagram for GtkMakeImage:

JobLine Job::MakeImageDl::IO NoCopy

List of all members.


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]


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]

Is the job currently paused?

Implements JobLine.

void GtkMakeImage::pause (  )  [virtual]

Pause the job.

Implements JobLine.

void GtkMakeImage::cont (  )  [virtual]

Continue executing the job.

Implements JobLine.

void GtkMakeImage::stop (  )  [virtual]

Stop executing the job.

Implements JobLine.

void GtkMakeImage::percentDone ( uint64 *  cur,
uint64 *  total 
) [virtual]

When called, must fill in current nr of bytes downloaded and total nr of bytes.

Implements JobLine.

void GtkMakeImage::callRegularly ( TickHandler  handler  )  [inline]

void GtkMakeImage::callRegularlyLater ( const int  milliSec,
TickHandler  handler 
) [inline]

void GtkMakeImage::on_startButton_clicked (  ) 

References debug.

Referenced by on_jigdo_startButton_clicked().

void GtkMakeImage::on_pauseButton_clicked (  ) 

References debug.

Referenced by on_jigdo_pauseButton_clicked().

void GtkMakeImage::on_stopButton_clicked (  ) 

References debug.

Referenced by on_jigdo_stopButton_clicked().

void GtkMakeImage::on_restartButton_clicked (  ) 

References debug.

Referenced by on_jigdo_restartButton_clicked().

void GtkMakeImage::on_closeButton_clicked (  ) 


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

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