#ifndef BROWSERVIEW_H
#define BROWSERVIEW_H
+// Application headers.
+#include "structs/PrivacyWebEngine.h"
+
// KDE Framework headers.
#include <KLineEdit>
-// Qt framework headers.
+// Qt toolkit headers.
#include <QPushButton>
#include <QWebEngineHistory>
#include <QWebEngineProfile>
// The public functions.
void applyOnTheFlyZoomFactor(const double &zoomFactor);
void loadInitialWebsite();
+ void toggleDomStorage() const;
void toggleJavaScript() const;
- void toggleLocalStorage() const;
+ void toggleLocalStorage();
// The public static variables.
static QString webEngineDefaultUserAgent;
signals:
// The signals.
void addCookie(const QNetworkCookie &cookie) const;
+ void removeCookie(const QNetworkCookie &cookie) const;
void clearUrlLineEditFocus() const;
void hideProgressBar() const;
void linkHovered(const QString &linkUrl) const;
void showProgressBar(const int &progress) const;
void updateBackAction(const bool &isEnabled) const;
+ void updateDomStorageAction(const bool &isEnabled) const;
void updateDomainSettingsIndicator(const bool &status, const QString &domainSettingsDomain) const;
void updateForwardAction(const bool &isEnabled) const;
void updateJavaScriptAction(const bool &isEnabled) const;
public Q_SLOTS:
// The public slots.
+ void addCookieToStore(QNetworkCookie cookie) const;
void applyApplicationSettings();
void applyDomainSettingsAndReload();
void applyDomainSettingsWithoutReloading(const QString &hostname);
void applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const;
void back() const;
void deleteAllCookies() const;
+ void deleteCookieFromStore(const QNetworkCookie &cookie) const;
void forward() const;
void home() const;
void loadUrlFromLineEdit(QString url) const;
private Q_SLOTS:
// The private slots.
void cookieAdded(const QNetworkCookie &cookie) const;
+ void cookieRemoved(const QNetworkCookie &cookie) const;
void loadFinished() const;
void loadProgress(const int &progress) const;
void loadStarted() const;
private:
// The private variables.
double currentZoomFactor; // This can be removed once <https://redmine.stoutner.com/issues/799> has been resolved.
+ PrivacyWebEngine *currentPrivacyWebEnginePointer;
+ QList<PrivacyWebEngine*> *privacyWebEngineListPointer;
QString searchEngineUrl;
QWebEngineCookieStore *webEngineCookieStorePointer;
QWebEngineHistory *webEngineHistoryPointer;