]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Rename Local Storage to DOM Storage. https://redmine.stoutner.com/issues/852
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index a35e060c12bc6dfb32a9fcddff63d12f4164134c..c66a528ce7679d39372480278f8cfb5ccf2391a0 100644 (file)
@@ -32,7 +32,7 @@
 #include <QProgressBar>
 
 // C++ headers.
-#include <forward_list>
+#include <list>
 
 class BrowserWindow : public KXmlGuiWindow
 {
@@ -63,11 +63,13 @@ private Q_SLOTS:
     void removeCookieFromList(const QNetworkCookie &cookie) const;
     void settingsConfigure();
     void showProgressBar(const int &progress) const;
+    void toggleCookies() const;
+    void toggleDomStorage() const;
     void toggleJavaScript() const;
-    void toggleLocalStorage() const;
+    void updateCookiesAction(const bool &isEnabled);
+    void updateDomStorageAction(const bool &isEnabled) const;
     void updateDomainSettingsIndicator(const bool &status, const QString &domainSettingsDomain);
-    void updateJavaScriptAction(const bool &isEnabled) const;
-    void updateLocalStorageAction(const bool &isEnabled) const;
+    void updateJavaScriptAction(const bool &isEnabled);
     void updateSearchEngineActions(const QString &searchEngine) const;
     void updateUserAgentActions(const QString &userAgent) const;
     void updateZoomFactorAction(const double &zoomFactor);
@@ -79,14 +81,18 @@ private:
     // The private variables.
     BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
-    std::forward_list<QNetworkCookie> *cookieListPointer;
+    std::list<QNetworkCookie> *cookieListPointer;
+    QAction *cookiesActionPointer;
+    bool cookiesEnabled;
     QString currentDomainSettingsDomain;
     QUrl currentUrl;
     double currentZoomFactor;
+    QAction *domStorageActionPointer;
     QPalette domainSettingsPalette;
     QAction *javaScriptActionPointer;
-    QAction *localStorageActionPointer;
+    bool javaScriptEnabled;
     QPalette noDomainSettingsPalette;
+    QAction *onTheFlyCookiesActionPointer;
     QProgressBar *progressBarPointer;
     QLabel *searchEngineLabelPointer;
     QAction *searchEngineMojeekActionPointer;