Loading...
Searching...
No Matches
HTMLPage.h
Go to the documentation of this file.
#ifndef BALL_VIEW_WIDGETS_HTMLPAGE_H
#define BALL_VIEW_WIDGETS_HTMLPAGE_H
#include <BALL/COMMON/global.h>
#include <QtCore/QHash>
#include <QtWebEngineWidgets/QWebEnginePage>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT HTMLPage: public QWebEnginePage
{
Q_OBJECT
public:
HTMLPage(QObject* parent = 0, bool ignore_ssl_errors = false);
HTMLPage(QWebEngineProfile* profile, QObject* parent = 0, bool ignore_ssl_errors = false);
~HTMLPage() override = default;
protected:
bool acceptNavigationRequest(const QUrl& url, NavigationType type, bool isMainFrame) override;
bool certificateError(const QWebEngineCertificateError& /* certificateError */) override;
void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& /* sourceID */) override;
virtual void executeLink(const QUrl& url);
private:
bool ignore_ssl_errors_;
};
}
}
#endif // BALL_VIEW_WIDGETS_HTMLPAGE_H
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::HTMLPage::~HTMLPage
~HTMLPage() override=default
BALL::VIEW::HTMLPage::javaScriptConsoleMessage
void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &) override
BALL::VIEW::HTMLPage::certificateError
bool certificateError(const QWebEngineCertificateError &) override
BALL::VIEW::HTMLPage::acceptNavigationRequest
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override
BALL::VIEW::HTMLPage::HTMLPage
HTMLPage(QWebEngineProfile *profile, QObject *parent=0, bool ignore_ssl_errors=false)
BALL::VIEW::HTMLPage::HTMLPage
HTMLPage(QObject *parent=0, bool ignore_ssl_errors=false)
BALL::VIEW::HTMLPage::executeLink
virtual void executeLink(const QUrl &url)
QObject
QWebEnginePage
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13