YDownloadProgress Class Reference

Implementation of the Slider widget. More...

#include <YDownloadProgress.h>

Inheritance diagram for YDownloadProgress:

YWidget List of all members.

Public Member Functions

 YDownloadProgress (const YWidgetOpt &opt, const YCPString &label, const YCPString &filename, int expectedSize)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newValue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setLabel (const YCPString &label)
virtual void setFilename (const YCPString &newFilename)
virtual void setExpectedSize (int newExpectedSize)
YCPString label ()
YCPString filename ()
int expectedSize ()
long currentFileSize ()

Private Attributes

YCPString _label
YCPString _filename
int _expectedSize

Detailed Description

Implementation of the Slider widget.


Constructor & Destructor Documentation

YDownloadProgress::YDownloadProgress const YWidgetOpt opt,
const YCPString label,
const YCPString filename,
int  expectedSize
 

Constructor


Member Function Documentation

YCPValue YDownloadProgress::changeWidget const YCPSymbol property,
const YCPValue newValue
[virtual]
 

Implements the ChangeWidget() UI command.

Reimplemented from YWidget.

long YDownloadProgress::currentFileSize  ) 
 

Returns the current size of the file that is being downloaded. Returns 0 if this file doesn't exist ( yet ).

int YDownloadProgress::expectedSize  )  [inline]
 

YCPString YDownloadProgress::filename void   )  [inline]
 

YCPString YDownloadProgress::label  )  [inline]
 

YCPValue YDownloadProgress::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the QueryWidget() UI command.

Reimplemented from YWidget.

void YDownloadProgress::setExpectedSize int  newExpectedSize  )  [virtual]
 

Change the expected size of the file being downloaded.

Overwrite this, but call YDownloadProgress::setExpectedSize() at the end of your own method.

void YDownloadProgress::setFilename const YCPString newFilename  )  [virtual]
 

Change the filename.

Overwrite this, but call YDownloadProgress::setFilename() at the end of your own method.

void YDownloadProgress::setLabel const YCPString label  )  [virtual]
 

Change the label above the progress indicator.

Overwrite this, but call YDownloadProgress::setLabel at the end of your own method.

virtual char* YDownloadProgress::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

int YDownloadProgress::_expectedSize [private]
 

YCPString YDownloadProgress::_filename [private]
 

YCPString YDownloadProgress::_label [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6