Gui::Dialog::DownloadManager Class Reference

#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)
 
QNetworkAccessManagernetworkAccessManager ()
 
QUrl redirectUrl (const QUrl &) const
 
RemovePolicy removePolicy () const
 
void setRemovePolicy (RemovePolicy policy)
 

Static Public Member Functions

static DownloadManagergetInstance ()
 

Properties

RemovePolicy removePolicy
 

Friends

class DownloadModel
 

Member Enumeration Documentation

◆ RemovePolicy

Enumerator
Never 
Exit 
SuccessFullDownload 

Member Function Documentation

◆ activeDownloads()

int DownloadManager::activeDownloads ( ) const

◆ cleanup

◆ closeEvent()

void DownloadManager::closeEvent ( QCloseEvent *  e)

◆ download [1/2]

void DownloadManager::download ( const QNetworkRequest &  request,
bool  requestFileName = false 
)
slot

◆ download [2/2]

void Gui::Dialog::DownloadManager::download ( const QUrl &  url,
bool  requestFileName = false 
)
slot

◆ getInstance()

◆ handleUnsupportedContent

void DownloadManager::handleUnsupportedContent ( QNetworkReply *  reply,
bool  requestFileName = false 
)
slot

Referenced by download().

◆ networkAccessManager()

QNetworkAccessManager * Gui::Dialog::DownloadManager::networkAccessManager ( )

◆ redirectUrl()

QUrl DownloadManager::redirectUrl ( const QUrl &  url) const

References redirectUrl().

Referenced by Gui::MainWindow::loadUrls(), and redirectUrl().

◆ removePolicy()

DownloadManager::RemovePolicy DownloadManager::removePolicy ( ) const

◆ setRemovePolicy()

void DownloadManager::setRemovePolicy ( RemovePolicy  policy)

Friends And Related Function Documentation

◆ DownloadModel

friend class DownloadModel
friend

Property Documentation

◆ removePolicy

RemovePolicy Gui::Dialog::DownloadManager::removePolicy
readwrite

The documentation for this class was generated from the following files: