#include <YDownloadProgress.h>
Inheritance diagram for YDownloadProgress:

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 |
| YDownloadProgress::YDownloadProgress | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label, | |||
| const YCPString & | filename, | |||
| int | expectedSize | |||
| ) |
Constructor
| virtual char* YDownloadProgress::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
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 ).
YCPString YDownloadProgress::_label [private] |
YCPString YDownloadProgress::_filename [private] |
int YDownloadProgress::_expectedSize [private] |
1.5.0