DownloadRenderer

The DownloadRenderer class provides a dialog for saving a remote URL to a local file. More...

Publicly inherits QWidget.

Public Methods

DownloadRenderer( const Url& remote );

Public Slots

voiddata( const char* bytes, int length );
voidendOfData( );
voidstartOfData( Request* req, QString mediaType, QString mediaSubtype, int totalSize );
voidstatus( QString msg );
voidurlChanged( const Url& url );

Protected Methods

voidresizeEvent( QResizeEvent* e );

Private Data Members

FILE*_fp;
QLabel*_localLabel;
QLabel*_localValue;
TransferLogo*_logo;
ProgressBar*_progress;
QLabel*_remoteLabel;
QLabel*_remoteValue;
Request*_request;
QFrame*_separator;
QLabel*_status;
QPushButton*_stop;
int_totalRead;
int_totalSize;

Detailed Documentation

The DownloadRenderer class provides a dialog for saving a remote URL to a local file.

The dialog shows the remote source and local destination, an animated transfer icon, and a progress bar. The transfer can be aborted at any time if the user presses the "Stop" button.

Public Methods Documentation

DownloadRenderer ( const Url& remote );

Popup a QFileDlg to get a local file name, and create a request for the remote URL.


Return to Index.
Automatically generated on Aug 11 23:32