BALL  1.5.0
HTMLPage.h
Go to the documentation of this file.
1 #ifndef BALL_VIEW_WIDGETS_HTMLPAGE_H
2 #define BALL_VIEW_WIDGETS_HTMLPAGE_H
3 
4 #include <BALL/COMMON/global.h>
5 
6 #include <QtCore/QHash>
7 #include <QtWebEngineWidgets/QWebEnginePage>
8 
9 namespace 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
global.h
BALL::VIEW::HTMLPage::certificateError
bool certificateError(const QWebEngineCertificateError &) override
BALL::VIEW::HTMLPage::executeLink
virtual void executeLink(const QUrl &url)
BALL::VIEW::HTMLPage::~HTMLPage
~HTMLPage() override=default
BALL::VIEW::HTMLPage
Definition: HTMLPage.h:14
BALL
Definition: constants.h:13
BALL::VIEW::HTMLPage::javaScriptConsoleMessage
void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &) override
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::HTMLPage::HTMLPage
HTMLPage(QWebEngineProfile *profile, QObject *parent=0, bool ignore_ssl_errors=false)
QWebEnginePage
QObject
BALL::VIEW::HTMLPage::HTMLPage
HTMLPage(QObject *parent=0, bool ignore_ssl_errors=false)
BALL::VIEW::HTMLPage::acceptNavigationRequest
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override