aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-03-30 09:52:43 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-03-30 09:52:43 +0200
commit3e21d6afa724b48ba39d9edbc6a40ff8b2f95a0f (patch)
tree5a64b946ce1913d8e6a949b400531b9daac4f1e3 /src/webengine/webpage.h
parentMore informative SSL error message (diff)
downloadsmolbote-3e21d6afa724b48ba39d9edbc6a40ff8b2f95a0f.tar.xz
Page feature permission request dialog
Diffstat (limited to 'src/webengine/webpage.h')
-rw-r--r--src/webengine/webpage.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/webengine/webpage.h b/src/webengine/webpage.h
index 674f278..92c5925 100644
--- a/src/webengine/webpage.h
+++ b/src/webengine/webpage.h
@@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-3.0
*/
-#ifndef WEBPAGE_H
-#define WEBPAGE_H
+#ifndef SMOLBOTE_WEBPAGE_H
+#define SMOLBOTE_WEBPAGE_H
#include <QWebEnginePage>
@@ -18,7 +18,10 @@ public:
explicit WebPage(QWebEngineProfile *profile, QObject *parent = nullptr);
protected:
- bool certificateError(const QWebEngineCertificateError &certificateError);
+ bool certificateError(const QWebEngineCertificateError &certificateError) override;
+
+private slots:
+ void featurePermissionDialog(const QUrl &securityOrigin, QWebEnginePage::Feature feature);
};
-#endif // WEBPAGE_H
+#endif // SMOLBOTE_WEBPAGE_H