#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 |
|
Constructor |
|
Implements the ChangeWidget() UI command. string Label the label above the progress indicator string Filename file name with full path of the file to poll integer ExpectedSize expected final size of the file in bytes Reimplemented from YWidget. |
|
Returns the current size of the file that is being downloaded. Returns 0 if this file doesn't exist ( yet ). |
|
|
|
|
|
|
|
Implements the QueryWidget() UI command. Reimplemented from YWidget. |
|
Change the expected size of the file being downloaded. Overwrite this, but call YDownloadProgress::setExpectedSize() at the end of your own method. |
|
Change the filename. Overwrite this, but call YDownloadProgress::setFilename() at the end of your own method. |
|
Change the label above the progress indicator. Overwrite this, but call YDownloadProgress::setLabel at the end of your own method. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
|
|
|
|
|