WebLoadRequest

Since: BlackBerry 10.0.0

#include <bb/cascades/WebLoadRequest>

A utility class for the loadingChanged() signal.

This class contains information about a requested load of a webpage, such as the URL and current loading status (started, finished, failed).

Here's a simple QML example demonstrating the use of a WebLoadRequest:
onLoadingChanged: {
    if (loadRequest.status == WebLoadStatus.Started) {
        statusLabel.setText("Load started.")
    }
    else if (loadRequest.status == WebLoadStatus.Succeeded) {
        statusLabel.setText("Load finished.")
    }
    else if (loadRequest.status == WebLoadStatus.Failed) {
        statusLabel.setText("Load failed.")
    }
}


Overview

Properties Index

Public Functions Index

WebLoadRequest (const QUrl &url, bb::cascades::WebLoadStatus::Type status, QObject *parent=0)
~WebLoadRequest ()
bb::cascades::WebLoadStatus::Typestatus () const
QUrlurl () const

Properties

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

The current status of the ongoing load.

See also:

bb::cascades::WebLoadStatus::Type.

Since:

BlackBerry 10.0.0

QUrl url[read-only]

The URL of the load request.

Since:

BlackBerry 10.0.0

Public Functions

WebLoadRequest (

Constructs a WebLoadRequest from a URL, status, and optional parent.

WebLoadRequests are created internally and passed as a parameter to the WebView::loadingChanged() signal.

Since:

BlackBerry 10.0.0

~WebLoadRequest ()

Destructor.

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

The current status of the ongoing load.

Since:

BlackBerry 10.0.0

QUrl url ()

The URL of the load request.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus