Rename Local Storage to DOM Storage. https://redmine.stoutner.com/issues/852
[PrivacyBrowserPC.git] / src / views / BrowserView.h
index ae1c06ae3bc0b997f2168877eec9368ba6f8db07..031496600d74c36a90589bc956a8ea5d15d5db59 100644 (file)
 #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>
@@ -45,8 +48,9 @@ public:
     // The public functions.
     void applyOnTheFlyZoomFactor(const double &zoomFactor);
     void loadInitialWebsite();
+    void toggleCookies();
+    void toggleDomStorage() const;
     void toggleJavaScript() const;
-    void toggleLocalStorage() const;
 
     // The public static variables.
     static QString webEngineDefaultUserAgent;
@@ -60,10 +64,11 @@ signals:
     void linkHovered(const QString &linkUrl) const;
     void showProgressBar(const int &progress) const;
     void updateBackAction(const bool &isEnabled) const;
+    void updateCookiesAction(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;
-    void updateLocalStorageAction(const bool &isEnabled) const;
     void updateSearchEngineActions(const QString &searchEngine) const;
     void updateUrlLineEdit(const QUrl &newUrl) const;
     void updateUserAgentActions(const QString &userAgent) const;
@@ -100,6 +105,8 @@ private Q_SLOTS:
 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;