#include <DownloadManager.h>
Public Types | |
enum RemovePolicy { Never, Exit, SuccessFullDownload } | |
Public Slots | |
void cleanup () | |
void download (const QNetworkRequest &request, bool requestFileName=false) | |
void download (const QUrl &url, bool requestFileName=false) | |
void handleUnsupportedContent (QNetworkReply *reply, bool requestFileName=false) | |
Public Member Functions | |
int activeDownloads () const | |
void closeEvent (QCloseEvent *e) | |
QNetworkAccessManager * networkAccessManager () | |
QUrl redirectUrl (const QUrl &) const | |
RemovePolicy removePolicy () const | |
void setRemovePolicy (RemovePolicy policy) | |
Static Public Member Functions | |
static DownloadManager * getInstance () | |
Properties | |
RemovePolicy removePolicy | |
Friends | |
class DownloadModel | |
Member Enumeration Documentation
◆ RemovePolicy
Member Function Documentation
◆ activeDownloads()
int DownloadManager::activeDownloads | ( | ) | const |
◆ cleanup
|
slot |
References Gui::Dialog::DownloadModel::removeRows().
Referenced by PathScripts.PathDressupPathBoundaryGui.TaskPanel::abort(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel::abort(), PathScripts.PathDressupPathBoundaryGui.TaskPanel::accept(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel::accept(), PathScripts.PathJobGui.TaskPanel::accept(), PathScripts.PathOpGui.TaskPanel::accept(), PathScripts.PathDressupPathBoundaryGui.TaskPanel::reject(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel::reject(), PathScripts.PathJobGui.TaskPanel::reject(), and PathScripts.PathOpGui.TaskPanel::reject().
◆ closeEvent()
void DownloadManager::closeEvent | ( | QCloseEvent * | e | ) |
◆ download [1/2]
|
slot |
◆ download [2/2]
|
slot |
Referenced by addonmanager_workers.InstallWorker::run().
◆ getInstance()
|
static |
◆ handleUnsupportedContent
|
slot |
Referenced by download().
◆ networkAccessManager()
QNetworkAccessManager* Gui::Dialog::DownloadManager::networkAccessManager | ( | ) |
◆ redirectUrl()
QUrl DownloadManager::redirectUrl | ( | const QUrl & | url | ) | const |
Referenced by Gui::MainWindow::loadUrls().
◆ removePolicy()
RemovePolicy Gui::Dialog::DownloadManager::removePolicy | ( | ) | const |
◆ setRemovePolicy()
void DownloadManager::setRemovePolicy | ( | RemovePolicy | policy | ) |
Friends And Related Function Documentation
◆ DownloadModel
|
friend |
Property Documentation
◆ removePolicy
|
readwrite |
The documentation for this class was generated from the following files:
- src/Gui/DownloadManager.h
- src/Gui/DownloadManager.cpp