X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.h;fp=src%2Fwidgets%2FPrivacyWebEngineView.h;h=3869fc34ac2d938f6b150b3bf3be5ff76462f351;hb=0d23ee5e9b43b247cdda0a4cbb73f8b1a70f4500;hp=0000000000000000000000000000000000000000;hpb=e28b208d6f953d24bd05927a16775d103714fd36;p=PrivacyBrowserPC.git diff --git a/src/widgets/PrivacyWebEngineView.h b/src/widgets/PrivacyWebEngineView.h new file mode 100644 index 0000000..3869fc3 --- /dev/null +++ b/src/widgets/PrivacyWebEngineView.h @@ -0,0 +1,50 @@ +/* + * Copyright © 2022 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Privacy Browser PC is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Privacy Browser PC. If not, see . + */ + +#ifndef PRIVACYWEBENGINEVIEW_H +#define PRIVACYWEBENGINEVIEW_H + +// Qt toolkit headers. +#include +#include + +class PrivacyWebEngineView : public QWebEngineView +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The default constructor. + explicit PrivacyWebEngineView(); + + // The public variables. + std::list *cookieListPointer = new std::list; + QString domainSettingsName = QStringLiteral(""); + bool localStorageEnabled = false; + +signals: + // The signals. + void updateCookiesAction(const int numberOfCookies) const; + +public Q_SLOTS: + // The public slots. + void addCookieToList(const QNetworkCookie &cookie) const; + void removeCookieFromList(const QNetworkCookie &cookie) const; +}; +#endif