diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2014-12-11 19:57:58 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-01-12 16:34:58 +0100 |
commit | e6a74159cebdbfec575f40469c216c90ee8651c1 (patch) | |
tree | 331f7a51b9d0c77568bb2744fbd8155733424374 /src/webengine/api/qquickwebengineprofile_p.h | |
parent | 4557ccd9785f53abc11460211c84db3e564b364f (diff) |
Add QML download API
This patch exposes downloadStarted and downloadFinished
signals on the WebEngineProfile to notify about downloads.
The WebEngineDownloadItem exposes a subset of Chromium's
content::DownloadItem functionality.
For now we expose minimal requirements to be able to control
downloads in QML but this can be extended in the future.
This patch also adds a DownloadView to quicktestbrowser
to demonstrate the usage of the new API.
[ChangeLog][QtWebEngineQML] Add QtQuick download API
Change-Id: I8d8f0daf02c4e0151000427fc2a4b37d28b9db52
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineprofile_p.h')
-rw-r--r-- | src/webengine/api/qquickwebengineprofile_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineprofile_p.h b/src/webengine/api/qquickwebengineprofile_p.h index 936573e8f..b8d7c8652 100644 --- a/src/webengine/api/qquickwebengineprofile_p.h +++ b/src/webengine/api/qquickwebengineprofile_p.h @@ -45,6 +45,7 @@ QT_BEGIN_NAMESPACE +class QQuickWebEngineDownloadItem; class QQuickWebEngineProfilePrivate; class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineProfile : public QObject { @@ -110,6 +111,9 @@ signals: void persistentCookiesPolicyChanged(); void httpCacheMaxSizeChanged(); + void downloadStarted(QQuickWebEngineDownloadItem *download); + void downloadFinished(QQuickWebEngineDownloadItem *download); + private: Q_DECLARE_PRIVATE(QQuickWebEngineProfile); QQuickWebEngineProfile(QQuickWebEngineProfilePrivate *); |