6.99. sibl_gui.components.addons.onlineUpdater.downloadManager

downloadManager.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the DownloadManager class.

Others:

6.99.1. Module Attributes

sibl_gui.components.addons.onlineUpdater.downloadManager.LOGGER
sibl_gui.components.addons.onlineUpdater.downloadManager.UI_FILE

6.99.2. Classes

class sibl_gui.components.addons.onlineUpdater.downloadManager.DownloadManager(parent, networkAccessManager, downloadDirectory, requests=None, *args, **kwargs)[source]

Bases: foundations.ui.common.QWidget

This class defines the Application download manager.
Once initialized with a QNetworkAccessManager instance, a download directory and a list of requests ( List of online resources / files ), this class can proceed of the download of those requests using the DownloadManager.startDownload() method.
Parameters:
  • parent – Object parent. ( QObject )
  • networkAccessManager – Network access manager. ( QNetworkAccessManager )
  • downloadDirectory – Download directory. ( String )
  • requests – Download requests. ( List )
  • *args – Arguments. ( * )
  • **kwargs – Keywords arguments. ( ** )
downloadFinished

This signal is emited by the DownloadManager class when a download is finished. ( pyqtSignal )

container[source]

This method is the property for self.__container attribute.

Returns:self.__container. ( QObject )
networkAccessManager[source]

This method is the property for self.__networkAccessManager attribute.

Returns:self.__networkAccessManager. ( QNetworkAccessManager )
downloadDirectory[source]

This method is the property for self.__downloadDirectory attribute.

Returns:self.__downloadDirectory. ( String )
uiResourcesDirectory[source]

This method is the property for self.__uiResourcesDirectory attribute.

Returns:self.__uiResourcesDirectory. ( String )
uiLogoImage[source]

This method is the property for self.__uiLogoImage attribute.

Returns:self.__uiLogoImage. ( String )
requests[source]

This method is the property for self.__requests attribute.

Returns:self.__requests. ( List )
downloads[source]

This method is the property for self.__downloads attribute.

Returns:self.__downloads. ( Dictionary )
currentRequest[source]

This method is the property for self.__currentRequest attribute.

Returns:self.__currentRequest. ( QNetworkReply )
currentFile[source]

This method is the property for self.__currentFile attribute.

Returns:self.__currentFile. ( QFile )
currentFilePath[source]

This method is the property for self.__currentFilePath attribute.

Returns:self.__currentFilePath. ( String )
downloadStatus[source]

This method is the property for self.__downloadStatus attribute.

Returns:self.__downloadStatus. ( QObject )
closeEvent(event)[source]

This method reimplements the QWidget.closeEvent() method.

Parameters:event – QEvent. ( QEvent )
startDownload()[source]

This method triggers the download.

Returns:Method success. ( Boolean )
abortDownload()[source]

This method aborts the current download.

Returns:Method success. ( Boolean )