X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.h;fp=src%2Fwidgets%2FPrivacyWebEngineView.h;h=152c56e84f515c5979df2e26fb8b5b6f316dc40f;hb=8756d450d1d44dd8e840f7e3de7b1d72ca5b7d8e;hp=31319da98c3b8557f972735a0d6cd950b34da82e;hpb=95aa7dff6f4da3aa85775d46600f9be2e2f856eb;p=PrivacyBrowserPC.git diff --git a/src/widgets/PrivacyWebEngineView.h b/src/widgets/PrivacyWebEngineView.h index 31319da..152c56e 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 . * @@ -43,15 +43,28 @@ public: int loadProgressInt = -1; bool localStorageEnabled = false; + // The public functions. + void applyDomainSettings(const QString &hostname, const bool reloadWebsite); + signals: // The signals. 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); + +private: + // The private variables. + QWebEngineProfile *webEngineProfilePointer; + QWebEngineSettings *webEngineSettingsPointer; + protected: // The protected functions. void contextMenuEvent(QContextMenuEvent *contextMenuEvent) override;