QSimpleUpdater
A simple auto-updater system for Qt applications
Public Slots | Signals | Public Member Functions | List of all members
Downloader Class Reference
Inheritance diagram for Downloader:

Public Slots

void startDownload (const QUrl &url)
 
void setUseCustomInstallProcedures (const bool &custom)
 

Signals

void downloadFinished (const QString &url, const QString &filepath)
 

Public Member Functions

 Downloader (QWidget *parent=0)
 
bool useCustomInstallProcedures () const
 

Member Function Documentation

void Downloader::downloadFinished ( const QString &  url,
const QString &  filepath 
)
signal

Emitted when the download has finished. You can use this to implement your own procedures to install the downloaded updates.

Referenced by startDownload().

void Downloader::setUseCustomInstallProcedures ( const bool &  custom)
slot

If custom is set to true, then the Downloader will not attempt to open or install the downloaded updates. This can be useful if you want to implement your own install procedures using the downloadFinished() signal.

Referenced by Updater::setUseCustomInstallProcedures().

void Downloader::startDownload ( const QUrl &  url)
slot

Begins downloading the update

References downloadFinished(), and useCustomInstallProcedures().

Referenced by Updater::setModuleVersion().

bool Downloader::useCustomInstallProcedures ( ) const

Returns true if the downloader will not attempt to install the downloaded file.

This can be useful if you want to use the downloadFinished() signal to implement your own install procedures.

Referenced by startDownload(), and Updater::useCustomInstallProcedures().


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