summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebengineprofile.cpp
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2023-07-26 09:37:11 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2023-08-17 20:26:43 +0200
commit37430020d373304f812fa822651cf2a0ccf636d3 (patch)
treea4c6b84fbb12a9c56d0ee9b91ce5192eb7514e56 /src/core/api/qwebengineprofile.cpp
parentb18818d918ed9f2d9775d1786ef641dfa30aadf6 (diff)
Add clearHttpCacheCompleted signal to profile
[ChangeLog][QtWebEngineQuick][WebEngineProfile] Added clearHttpCacheCompleted signal. [ChangeLog][QtWebEngineCore][QWebEngineProfile] Added clearHttpCacheCompleted signal. Fixes: QTBUG-89670 Fixes: QTBUG-111541 Change-Id: If93a99f7171c516ef75a3c8004da9ae621705a1a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/api/qwebengineprofile.cpp')
-rw-r--r--src/core/api/qwebengineprofile.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/api/qwebengineprofile.cpp b/src/core/api/qwebengineprofile.cpp
index df447de33..0330ad951 100644
--- a/src/core/api/qwebengineprofile.cpp
+++ b/src/core/api/qwebengineprofile.cpp
@@ -131,6 +131,16 @@ void QWebEngineProfilePrivate::showNotification(QSharedPointer<QtWebEngineCore::
\sa QWebEngineDownloadRequest, QWebEnginePage::download()
*/
+/*!
+ \fn QWebEngineProfile::clearHttpCacheCompleted()
+
+ \since 6.7
+
+ This signal is emitted when the clearHttpCache() operation is completed.
+
+ \sa QWebEngineProfile::clearHttpCache()
+*/
+
QWebEngineProfilePrivate::QWebEngineProfilePrivate(ProfileAdapter* profileAdapter)
: m_settings(new QWebEngineSettings())
, m_profileAdapter(profileAdapter)
@@ -244,6 +254,12 @@ void QWebEngineProfilePrivate::downloadUpdated(const DownloadItemInfo &info)
download->d_func()->update(info);
}
+void QWebEngineProfilePrivate::clearHttpCacheCompleted()
+{
+ Q_Q(QWebEngineProfile);
+ Q_EMIT q->clearHttpCacheCompleted();
+}
+
void QWebEngineProfilePrivate::addWebContentsAdapterClient(QtWebEngineCore::WebContentsAdapterClient *adapter)
{
Q_ASSERT(m_profileAdapter);
@@ -832,6 +848,12 @@ void QWebEngineProfile::removeAllUrlSchemeHandlers()
\since 5.7
Removes the profile's cache entries.
+
+ \note Make sure that you do not start new navigation or any operation on the profile while
+ the clear operation is in progress. The clearHttpCacheCompleted() signal notifies about the
+ completion.
+
+ \sa QWebEngineProfile::clearHttpCacheCompleted()
*/
void QWebEngineProfile::clearHttpCache()
{