X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.h;h=5548ec422dc56a567443c881f591621dedf255ea;hb=3108332092c1c2807f1e13c417c487fd07aed177;hp=8a049576438953b23d72852889b97354c17d17b5;hpb=8292f934246cb283e1b0c32f4388c674f275c7aa;p=PrivacyBrowserPC.git diff --git a/src/widgets/PrivacyWebEngineView.h b/src/widgets/PrivacyWebEngineView.h index 8a04957..5548ec4 100644 --- a/src/widgets/PrivacyWebEngineView.h +++ b/src/widgets/PrivacyWebEngineView.h @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Soren Stoutner . + * Copyright 2022-2023 Soren Stoutner . * * This file is part of Privacy Browser PC . * @@ -22,6 +22,7 @@ // Qt toolkit headers. #include +#include #include class PrivacyWebEngineView : public QWebEngineView @@ -36,19 +37,39 @@ public: // The public variables. std::list *cookieListPointer = new std::list; QString domainSettingsName = QStringLiteral(""); + bool findCaseSensitive = false; + QString findString = QStringLiteral(""); + QWebEngineFindTextResult findTextResult = QWebEngineFindTextResult(); + int loadProgressInt = -1; bool localStorageEnabled = false; + // The public functions. + void applyDomainSettings(const QString &hostname, const bool reloadWebsite); + signals: // The signals. + void displayHttpPingBlockedDialog(const QString &httpPingUrl) const; void updateCookiesAction(const int numberOfCookies) const; + void updateUi(const PrivacyWebEngineView *privacyWebEngineViewPointer) const; public Q_SLOTS: // The public slots. void addCookieToList(const QNetworkCookie &cookie) const; void removeCookieFromList(const QNetworkCookie &cookie) const; +private Q_SLOTS: + // The private slots. + void applyDomainSettingsWithoutReloading(const QString &hostname); + void displayHttpPingDialog(const QString &httpPingUrl) const; + +private: + // The private variables. + QWebEngineProfile *webEngineProfilePointer; + QWebEngineSettings *webEngineSettingsPointer; + protected: // The protected functions. + void contextMenuEvent(QContextMenuEvent *contextMenuEvent) override; QWebEngineView* createWindow(QWebEnginePage::WebWindowType webWindowType) override; }; #endif