X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.h;h=4f621ce86097009c2b680d668285f35c1b3b69d3;hb=3ea5ede1fd0721bea6813f36388ba6387bdbfcfe;hp=3077681ca86030a7717883e52cc74c1d909ee18f;hpb=e715eca23297fb10dcf70e4c8bb2712413d16e3d;p=PrivacyBrowserPC.git diff --git a/src/widgets/PrivacyWebEngineView.h b/src/widgets/PrivacyWebEngineView.h index 3077681..4f621ce 100644 --- a/src/widgets/PrivacyWebEngineView.h +++ b/src/widgets/PrivacyWebEngineView.h @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 Soren Stoutner . + * Copyright 2022-2024 Soren Stoutner . * * This file is part of Privacy Browser PC . * @@ -20,6 +20,9 @@ #ifndef PRIVACYWEBENGINEVIEW_H #define PRIVACYWEBENGINEVIEW_H +// KDE framework headers. +#include + // Qt toolkit headers. #include #include @@ -33,7 +36,7 @@ class PrivacyWebEngineView : public QWebEngineView public: // The default constructor. - explicit PrivacyWebEngineView(); + explicit PrivacyWebEngineView(QWidget *parentWidgetPointer = nullptr); // The public variables. std::list *cookieListPointer = new std::list; @@ -65,9 +68,12 @@ private Q_SLOTS: // The private slots. void applyDomainSettingsWithoutReloading(const QString &hostname); void displayHttpPingDialog(const QString &httpPingUrl) const; + void handleAuthenticationRequest(const QUrl &requestUrl, QAuthenticator *authenticatorPointer); private: // The private variables. + KLineEdit *passwordLineEditPointer; + KLineEdit *usernameLineEditPointer; QWebEngineProfile *webEngineProfilePointer; QWebEngineSettings *webEngineSettingsPointer;