libyui-qt  2.43.5
YQDownloadProgress Class Reference
Collaboration diagram for YQDownloadProgress:

List of all members.

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

Detailed Description

Definition at line 36 of file YQDownloadProgress.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 38 of file YQDownloadProgress.cc.

Here is the call graph for this function:

Destructor.

Definition at line 73 of file YQDownloadProgress.cc.


Member Function Documentation

void YQDownloadProgress::pollFileSize ( void  ) [slot]

Slot for polling and displaying the file size.

Definition at line 104 of file YQDownloadProgress.cc.

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 127 of file YQDownloadProgress.cc.

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:
 All Classes Functions Variables