summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineprofile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.h')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h
index 79e83c377..5ad999c00 100644
--- a/src/webenginewidgets/api/qwebengineprofile.h
+++ b/src/webenginewidgets/api/qwebengineprofile.h
@@ -46,12 +46,15 @@
#include <QtCore/qscopedpointer.h>
#include <QtCore/qstring.h>
+#include <functional>
+
QT_BEGIN_NAMESPACE
class QObject;
class QUrl;
class QWebEngineCookieStore;
class QWebEngineDownloadItem;
+class QWebEngineNotification;
class QWebEnginePage;
class QWebEnginePagePrivate;
class QWebEngineProfilePrivate;
@@ -137,6 +140,9 @@ public:
QString downloadPath() const;
void setDownloadPath(const QString &path);
+ void setNotificationPresenter(const std::function<void(const QWebEngineNotification &)> &notificationPresenter);
+ void setNotificationPresenter(std::function<void(const QWebEngineNotification &)> &&notificationPresenter);
+
static QWebEngineProfile *defaultProfile();
Q_SIGNALS: