HttpDownloader Class

(KDUpdater::HttpDownloader)

The HttpDownloader class is used to download files over FTP, HTTP, or HTTPS. More...

Header: #include <HttpDownloader>
Inherits: KDUpdater::FileDownloader

Public Functions

HttpDownloader(QObject *parent = 0)
virtual ~HttpDownloader()

Reimplemented Public Functions

virtual bool canDownload() const override
virtual KDUpdater::HttpDownloader *clone(QObject *parent = 0) const override
virtual QString downloadedFileName() const override
virtual bool isDownloaded() const override
virtual void setDownloadedFileName(const QString &name) override

Public Slots

virtual void cancelDownload() override

Static Public Members

const QMetaObject staticMetaObject

Reimplemented Protected Functions

virtual void onError() override
virtual void onSuccess() override
virtual void timerEvent(QTimerEvent *event) override

Additional Inherited Members

Detailed Description

The HttpDownloader class is used to download files over FTP, HTTP, or HTTPS.

HTTPS is supported if Qt is built with SSL.

Member Function Documentation

HttpDownloader::HttpDownloader(QObject *parent = 0)

Default constructs an instance of HttpDownloader.

[virtual] HttpDownloader::~HttpDownloader()

Destroys the instance of HttpDownloader. The destructor is virtual.

[override virtual] bool HttpDownloader::canDownload() const

[override virtual slot] void HttpDownloader::cancelDownload()

[override virtual] KDUpdater::HttpDownloader *HttpDownloader::clone(QObject *parent = 0) const

[override virtual] QString HttpDownloader::downloadedFileName() const

See also setDownloadedFileName().

[override virtual] bool HttpDownloader::isDownloaded() const

[override virtual protected] void HttpDownloader::onError()

[override virtual protected] void HttpDownloader::onSuccess()

[override virtual] void HttpDownloader::setDownloadedFileName(const QString &name)

See also downloadedFileName().

[override virtual protected] void HttpDownloader::timerEvent(QTimerEvent *event)