libyui-qt  2.47.1.1
YQDownloadProgress Class Reference
Inheritance diagram for YQDownloadProgress:
Collaboration diagram for YQDownloadProgress:

Public Slots

void pollFileSize (void)
 Slot for polling and displaying the file size.
 

Public Member Functions

 YQDownloadProgress (YWidget *parent, const std::string &label, const std::string &filename, YFileSize_t expectedSize)
 Constructor.
 
virtual ~YQDownloadProgress ()
 Destructor.
 
virtual void setLabel (const std::string &label)
 Set the label (the text above the progress bar). More...
 
virtual void setFilename (const std::string &filename)
 Set the name of a new file to monitor. More...
 
virtual void setExpectedSize (YFileSize_t expectedSize)
 Change the expected file size. More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 

Protected Attributes

YQWidgetCaption_caption
 
QProgressBar * _qt_progressBar
 
QTimer * _timer
 

Detailed Description

Definition at line 36 of file YQDownloadProgress.h.

Member Function Documentation

int YQDownloadProgress::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 127 of file YQDownloadProgress.cc.

int YQDownloadProgress::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 120 of file YQDownloadProgress.cc.

void YQDownloadProgress::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 111 of file YQDownloadProgress.cc.

void YQDownloadProgress::setExpectedSize ( YFileSize_t  expectedSize)
virtual

Change the expected file size.

Reimplemented from YDownloadProgress.

Definition at line 96 of file YQDownloadProgress.cc.

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

Set the name of a new file to monitor.

Reimplemented from YDownloadProgress.

Definition at line 88 of file YQDownloadProgress.cc.

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

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

Reimplemented from YDownloadProgress.

Definition at line 80 of file YQDownloadProgress.cc.

Here is the call graph for this function:

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 134 of file YQDownloadProgress.cc.


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