summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebenginedownloaditem_p_p.h
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2015-02-03 16:26:44 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2015-02-06 12:02:52 +0000
commit22f4a67e434703b400ad9ee669f673144e5f33dc (patch)
treeb66fd7c669309712466487724206126db4f88787 /src/webengine/api/qquickwebenginedownloaditem_p_p.h
parentdd450a1006c6975014f95dcb93395e961945c4f2 (diff)
Update QML download API to match widgets and add documentation
Rename the download signal to downloadRequested and only start a download if it has been explicitly accepted by the user, else cancel it by default. Replace the downloadPercentage property with totalBytes and receivedBytes to also give the user information about download size. Additionally this patch adds missing documentation. Change-Id: I9d895386cf033f2efffe3ebac6f08f94c6fe0c19 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com> Reviewed-by: Jocelyn Turcotte <jturcotte@woboq.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginedownloaditem_p_p.h')
-rw-r--r--src/webengine/api/qquickwebenginedownloaditem_p_p.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webengine/api/qquickwebenginedownloaditem_p_p.h b/src/webengine/api/qquickwebenginedownloaditem_p_p.h
index 6b724b4c9..0250a8faa 100644
--- a/src/webengine/api/qquickwebenginedownloaditem_p_p.h
+++ b/src/webengine/api/qquickwebenginedownloaditem_p_p.h
@@ -53,13 +53,14 @@ public:
QQuickWebEngineDownloadItemPrivate(QQuickWebEngineProfilePrivate *p);
~QQuickWebEngineDownloadItemPrivate();
- bool downloadStarted;
quint32 downloadId;
QQuickWebEngineDownloadItem::DownloadState downloadState;
- int downloadProgress;
+ qint64 totalBytes;
+ qint64 receivedBytes;
QString downloadPath;
- void update(QQuickWebEngineDownloadItem::DownloadState state, int progress);
+ void update(const BrowserContextAdapterClient::DownloadItemInfo &info);
+ void updateState(QQuickWebEngineDownloadItem::DownloadState newState);
};
QT_END_NAMESPACE