Page Contents

Topics

Classes

QLDownloader Class

#include <QLayers/qldownloader.h>

Inherits: QObject

Public Functions

QLDownloader(QObject* parent = nullptr)
QNetworkReply* download(const QUrl& file_url)
QNetworkReply* download(const QUrl& file_url, const QDir& directory)

Detailed Description

A QLDownloader is a QObject that provides a mechanism for downloading files from the Internet.

Member Function Documentation

QLDownloader(QObject* parent = nullptr)

Constructs a downloader object.

QNetworkReply* download(const QUrl& file_url)

Downloads the file located at file_url. Returns a pointer to a QNetworkReply response.

QNetworkReply* download(const QUrl& file_url, const QDir& directory)

Downloads the file located at file_url to the specfied directory on the system. Returns a pointer to a QNetworkReply response.