diff options
author | Viktor Engelmann <viktor.engelmann@qt.io> | 2016-12-19 15:58:04 +0100 |
---|---|---|
committer | Viktor Engelmann <viktor.engelmann@qt.io> | 2017-01-12 13:42:48 +0000 |
commit | 0a578ce16b0ea5eadae32d0055b45f56f36eefa4 (patch) | |
tree | 24ef4e345f42e66986882713ce6cd3a687de85ce /src/core/browser_context_adapter_client.h | |
parent | 479ca165d3df610a135f9129cb3cecb0a7c7e069 (diff) |
Add methods for textual description of DownloadInterruptReason
A method was added to get a textual description of a
Q(Quick)WebEngineDownloadItem::DownloadInterruptReason.
Basically returns the same description from the QDoc entry, but
shortened where that was to long.
Also moved the ASSERT_ENUMS_MATCHes from
download_manager_delegate_qt.cpp to the newly created
browser_context_adapter_client.cpp.
Task-number: QTBUG-56839
Change-Id: I17c68987b7f12fcaeb71fd27f7ebb35c0ac87bac
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/browser_context_adapter_client.h')
-rw-r--r-- | src/core/browser_context_adapter_client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/browser_context_adapter_client.h b/src/core/browser_context_adapter_client.h index 1eabbe7a0..e1fd02f96 100644 --- a/src/core/browser_context_adapter_client.h +++ b/src/core/browser_context_adapter_client.h @@ -76,6 +76,7 @@ public: SavePage }; + // Keep in sync with content::DownloadInterruptReason enum DownloadInterruptReason { NoReason = 0, FileFailed = 1, @@ -125,6 +126,7 @@ public: virtual void downloadRequested(DownloadItemInfo &info) = 0; virtual void downloadUpdated(const DownloadItemInfo &info) = 0; + static QString downloadInterruptReasonToString(DownloadInterruptReason reason); }; } // namespace |