BALL 1.5.0
Loading...
Searching...
No Matches
HTMLPage.h
Go to the documentation of this file.
1#ifndef BALL_VIEW_WIDGETS_HTMLPAGE_H
2#define BALL_VIEW_WIDGETS_HTMLPAGE_H
3
5
6#include <QtCore/QHash>
7#include <QtWebEngineWidgets/QWebEnginePage>
8
9namespace BALL
10{
11 namespace VIEW
12 {
14 {
15 Q_OBJECT
16
17 public:
18 HTMLPage(QObject* parent = 0, bool ignore_ssl_errors = false);
19 HTMLPage(QWebEngineProfile* profile, QObject* parent = 0, bool ignore_ssl_errors = false);
20 ~HTMLPage() override = default;
21
22 protected:
23 bool acceptNavigationRequest(const QUrl& url, NavigationType type, bool isMainFrame) override;
24 bool certificateError(const QWebEngineCertificateError& /* certificateError */) override;
25 void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& /* sourceID */) override;
26
27 virtual void executeLink(const QUrl& url);
28
29 private:
30 bool ignore_ssl_errors_;
31 };
32 }
33}
34#endif // BALL_VIEW_WIDGETS_HTMLPAGE_H
~HTMLPage() override=default
void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &) override
bool certificateError(const QWebEngineCertificateError &) override
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override
HTMLPage(QWebEngineProfile *profile, QObject *parent=0, bool ignore_ssl_errors=false)
HTMLPage(QObject *parent=0, bool ignore_ssl_errors=false)
virtual void executeLink(const QUrl &url)
#define BALL_VIEW_EXPORT