Module implementing a widget controlling a download.
None |
DownloadItem | Class implementing a widget controlling a download. |
None |
Class implementing a widget controlling a download.
DownloadCancelled |
DownloadSuccessful |
Downloading |
None |
DownloadItem | Constructor |
__adjustSize | Private method to adjust the size of the download item. |
__downloadProgress | Private method to show the download progress. |
__finished | Private slot to handle the download finished. |
__getFileName | Private method to get the file name to save to from the user. |
__initialize | Private method to initialize the widget. |
__saveFileName | Private method to calculate a name for the file to download. |
__setDateTime | Private method to set the download date and time. |
__setFileName | Private method to set the file name to save the download into. |
__updateInfoLabel | Private method to update the info label. |
absoluteFilePath | Public method to get the absolute path of the output file. |
bytesReceived | Public method to get the number of bytes received. |
bytesTotal | Public method to get the total number of bytes of the download. |
cancelDownload | Public slot to stop the download. |
canceledFileSelect | Public method to check, if the user canceled the file selection. |
currentSpeed | Public method to get an estimation for the download speed. |
downloadCanceled | Public method to check, if the download was cancelled. |
downloadProgress | Public method to get the download progress. |
downloadedSuccessfully | Public method to check for a successful download. |
downloading | Public method to determine, if a download is in progress. |
fileName | Public method to get the name of the output file. |
getData | Public method to get the relevant download data. |
getInfoData | Public method to get the text of the info label. |
getPageUrl | Public method to get the URL of the download page. |
on_openButton_clicked | Private slot to open the downloaded file. |
on_pauseButton_clicked | Private slot to pause the download. |
on_stopButton_clicked | Private slot to stop the download. |
openFile | Public slot to open the downloaded file. |
openFolder | Public slot to open the folder containing the downloaded file. |
remainingTime | Public method to get an estimation for the remaining time. |
setData | Public method to set the relevant download data. |
setIcon | Public method to set the download icon. |
None |
Constructor
Private method to adjust the size of the download item.
Private method to show the download progress.
Private slot to handle the download finished.
Private method to get the file name to save to from the user.
Private method to initialize the widget.
Private method to calculate a name for the file to download.
Private method to set the download date and time.
Private method to set the file name to save the download into.
Private method to update the info label.
Public method to get the absolute path of the output file.
Public method to get the number of bytes received.
Public method to get the total number of bytes of the download.
Public slot to stop the download.
Public method to check, if the user canceled the file selection.
Public method to get an estimation for the download speed.
Public method to check, if the download was cancelled.
Public method to get the download progress.
Public method to check for a successful download.
Public method to determine, if a download is in progress.
Public method to get the name of the output file.
Public method to get the relevant download data.
Public method to get the text of the info label.
Public method to get the URL of the download page.
Private slot to open the downloaded file.
Private slot to pause the download.
Private slot to stop the download.
Public slot to open the downloaded file.
Public slot to open the folder containing the downloaded file.
Public method to get an estimation for the remaining time.
Public method to set the relevant download data.
Public method to set the download icon.