OxideQDownloadRequest Class

Request to download a resource More...

Header: #include <oxideqdownloadrequest.h>
Instantiated By: DownloadRequest

Public Functions

OxideQDownloadRequest(const OxideQDownloadRequest & other)
~OxideQDownloadRequest()
QStringList cookies() const
QString referrer() const
QString suggestedFilename() const
QUrl url() const
QString userAgent() const
bool operator!=(const OxideQDownloadRequest & other) const
OxideQDownloadRequest operator=(const OxideQDownloadRequest & other)
bool operator==(const OxideQDownloadRequest & other) const

Detailed Description

Request to download a resource

OxideQDownloadRequest represents a request to download a remote resource. url specifies the location of the remote resource to download.

The application is responsible for performing the actual download.

Note: This API does not make it possible to download URLs that point to resources inside the web engine (eg, blob: or filesystem URLs).

Member Function Documentation

OxideQDownloadRequest::OxideQDownloadRequest(const OxideQDownloadRequest & other)

Copy constructs a download request from other.

OxideQDownloadRequest::~OxideQDownloadRequest()

Destroys the download request.

QStringList OxideQDownloadRequest::cookies() const

Returns a list of cookies that the application should use when downloading the specified resource. The format of each cookie is a string that can be added to the Cookie header in a HTTP request.

QString OxideQDownloadRequest::referrer() const

Returns the spec of the referrer URL that the application should specify when downloading the resource.

QString OxideQDownloadRequest::suggestedFilename() const

The suggested name of the destination file. This corresponds to the value of the download attribute if this download request is triggered from a HTML anchor element, or the value of the filename attribute if the download request is triggered by a response with a Content-Disposition: attachment header.

QUrl OxideQDownloadRequest::url() const

Returns the url of the resource to download.

QString OxideQDownloadRequest::userAgent() const

Returns the user agent string that the application should use when downloading the specified resource.

bool OxideQDownloadRequest::operator!=(const OxideQDownloadRequest & other) const

Returns true if this download request not equal other.

OxideQDownloadRequest OxideQDownloadRequest::operator=(const OxideQDownloadRequest & other)

Assigns other to this download request.

bool OxideQDownloadRequest::operator==(const OxideQDownloadRequest & other) const

Returns true if this download request equals other. A download request will only be equal to one that it was copied from.