Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::DownloadTask Struct Reference

The DownloadTask struct contains the information necessary to download a file from a URL.

#include <>>

Collaboration diagram for Qx::DownloadTask:
[legend]

Public Attributes

QString checksum
 
QString dest
 
QUrl target
 

Friends

QX_NETWORK_EXPORT bool operator== (const DownloadTask &lhs, const DownloadTask &rhs) noexcept=default
 
QX_NETWORK_EXPORT size_t qHash (const DownloadTask &key, size_t seed) noexcept
 

Friends And Related Symbol Documentation

◆ operator==

bool Qx::DownloadTask::operator== ( const DownloadTask & lhs,
const DownloadTask & rhs )
friend

Returns true if the target and destination of lhs are the same as in rhs; otherwise returns false

◆ qHash

QX_NETWORK_EXPORT size_t qHash ( const DownloadTask & key,
size_t seed )
friend

Hashes the download task key with the initial seed.

Member Data Documentation

◆ checksum

QString Qx::DownloadTask::checksum

An optional checksum in hexadecimal format to compare the completed file against. An empty string disables verification.

◆ dest

QString Qx::DownloadTask::dest

The full local path to download the file to.

◆ target

QUrl Qx::DownloadTask::target

The full URL of file to download from a remote server.


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