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

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

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

Reimplemented from YWidget.

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

Implements the ChangeWidget() UI command.

Reimplemented from YWidget.

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

Implements the QueryWidget() UI command.

Reimplemented from YWidget.

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.

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::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.

YCPString YDownloadProgress::label (  )  [inline]

YCPString YDownloadProgress::filename ( void   )  [inline]

int YDownloadProgress::expectedSize (  )  [inline]

long YDownloadProgress::currentFileSize (  ) 

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


Member Data Documentation

YCPString YDownloadProgress::_label [private]

YCPString YDownloadProgress::_filename [private]

int YDownloadProgress::_expectedSize [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:23 2007 for yast2-core by  doxygen 1.5.0