WebDownloadRequest

Since: BlackBerry 10.0.0

#include <bb/cascades/WebDownloadRequest>

A request to download a file.


Overview

QML properties

absoluteFilePath: QString
status: bb::cascades::WebLoadStatus::Type [read-only]
url: QUrl

Public Functions Index

WebDownloadRequest ()
WebDownloadRequest (const QUrl &url, QObject *parent=0)
virtual ~WebDownloadRequest ()
QStringabsoluteFilePath () const
bb::cascades::WebLoadStatus::Typestatus () const
QUrlurl () const

Public Slots Index

voidsetAbsoluteFilePath (const QString &absoluteFilePath)

Signals Index

voidabsoluteFilePathChanged (const QString &newAbsoluteFilePath)
voidfailed ()
voidstarted ()
voidstatusChanged (WebLoadStatus::Type newStatus)
voidsucceeded ()

Properties

QString absoluteFilePath

The path to download the file to.

Since:

BlackBerry 10.0.0

bb::cascades::WebLoadStatus::Type status[read-only]

The download status.

Since:

BlackBerry 10.0.0

QUrl url

The URL to download.

Since:

BlackBerry 10.0.0

Public Functions

WebDownloadRequest ()

Used for QML support only.

Since:

BlackBerry 10.0.0

WebDownloadRequest (

Constructs a new WebDownloadRequest for the provided URL.

Parameters
url

The URL to download.

parent

Optional parent for this object.

Since:

BlackBerry 10.0.0

virtual~WebDownloadRequest ()

Destructor.

QString absoluteFilePath ()

Retrieves the path to save the downloaded file to.

Return:

The path to save the downloaded file to.

Since:

BlackBerry 10.0.0

bb::cascades::WebLoadStatus::Type status ()

Retrieves the current status of this WebDownloadRequest.

Return:

The current download status.

Since:

BlackBerry 10.0.0

QUrl url ()

Retrieves the URL to download in this WebDownloadRequest.

Return:

url The URL to download.

Since:

BlackBerry 10.0.0

Public Slots

void setAbsoluteFilePath (

Sets the path to save the downloaded file to.

Parameters
absoluteFilePath

The new path.

Since:

BlackBerry 10.0.0

Signals

void absoluteFilePathChanged (
  • const QString &newAbsoluteFilePath)

Emitted when the path to download the file to changes.

Parameters
newAbsoluteFilePath

The new path.

Since:

BlackBerry 10.0.0

void failed ()

Emitted when download finishes because the download failed.

Since:

BlackBerry 10.0.0

void started ()

Emitted when download starts.

Since:

BlackBerry 10.0.0

void statusChanged (

Emitted when the download status changes.

Parameters
newStatus

The new status.

Since:

BlackBerry 10.0.0

void succeeded ()

Emitted when download finishes and the download was successful.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus