26 #ifndef YQDownloadProgress_h 27 #define YQDownloadProgress_h 30 #include <yui/YDownloadProgress.h> 46 const std::string & label,
47 const std::string & filename,
48 YFileSize_t expectedSize );
60 virtual void setLabel(
const std::string & label );
67 virtual void setFilename(
const std::string & filename );
102 virtual void setSize(
int newWidth,
int newHeight );
115 QProgressBar * _qt_progressBar;
120 #endif // YQDownloadProgress_h virtual int preferredWidth()
Preferred width of the widget.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setExpectedSize(YFileSize_t expectedSize)
Change the expected file size.
virtual ~YQDownloadProgress()
Destructor.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
YQDownloadProgress(YWidget *parent, const std::string &label, const std::string &filename, YFileSize_t expectedSize)
Constructor.
virtual void setFilename(const std::string &filename)
Set the name of a new file to monitor.
void pollFileSize(void)
Slot for polling and displaying the file size.
virtual void setLabel(const std::string &label)
Set the label (the text above the progress bar).