libyui-qt
Loading...
Searching...
No Matches
YQDownloadProgress Class Reference
Inheritance diagram for YQDownloadProgress:
Collaboration diagram for YQDownloadProgress:

Public Slots

void pollFileSize (void)
 

Public Member Functions

 YQDownloadProgress (YWidget *parent, const std::string &label, const std::string &filename, YFileSize_t expectedSize)
 
virtual ~YQDownloadProgress ()
 
virtual void setLabel (const std::string &label)
 
virtual void setFilename (const std::string &filename)
 
virtual void setExpectedSize (YFileSize_t expectedSize)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 

Protected Attributes

YQWidgetCaption_caption
 
QProgressBar * _qt_progressBar
 
QTimer * _timer
 

Constructor & Destructor Documentation

◆ YQDownloadProgress()

YQDownloadProgress::YQDownloadProgress ( YWidget * parent,
const std::string & label,
const std::string & filename,
YFileSize_t expectedSize )

Constructor.

◆ ~YQDownloadProgress()

YQDownloadProgress::~YQDownloadProgress ( )
virtual

Destructor.

Member Function Documentation

◆ pollFileSize

void YQDownloadProgress::pollFileSize ( void )
slot

Slot for polling and displaying the file size.

◆ preferredHeight()

int YQDownloadProgress::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQDownloadProgress::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQDownloadProgress::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setExpectedSize()

void YQDownloadProgress::setExpectedSize ( YFileSize_t expectedSize)
virtual

Change the expected file size.

Reimplemented from YDownloadProgress.

◆ setFilename()

void YQDownloadProgress::setFilename ( const std::string & filename)
virtual

Set the name of a new file to monitor.

Reimplemented from YDownloadProgress.

◆ setLabel()

void YQDownloadProgress::setLabel ( const std::string & label)
virtual

Set the label (the text above the progress bar).

Reimplemented from YDownloadProgress.

◆ setSize()

void YQDownloadProgress::setSize ( int newWidth,
int newHeight )
virtual

Set the new size of the widget.

Reimplemented from YWidget.


The documentation for this class was generated from the following files: