]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Add local storage domain settings.
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index a35e060c12bc6dfb32a9fcddff63d12f4164134c..0239a4e07bc85e70773ca9fa7768490e2d7044c8 100644 (file)
@@ -32,7 +32,7 @@
 #include <QProgressBar>
 
 // C++ headers.
 #include <QProgressBar>
 
 // C++ headers.
-#include <forward_list>
+#include <list>
 
 class BrowserWindow : public KXmlGuiWindow
 {
 
 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 removeCookieFromList(const QNetworkCookie &cookie) const;
     void settingsConfigure();
     void showProgressBar(const int &progress) const;
+    void toggleDomStorage() const;
     void toggleJavaScript() const;
     void toggleLocalStorage() const;
     void toggleJavaScript() const;
     void toggleLocalStorage() const;
+    void updateDomStorageAction(const bool &isEnabled) const;
     void updateDomainSettingsIndicator(const bool &status, const QString &domainSettingsDomain);
     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 updateLocalStorageAction(const bool &isEnabled);
     void updateSearchEngineActions(const QString &searchEngine) const;
     void updateUserAgentActions(const QString &userAgent) const;
     void updateZoomFactorAction(const double &zoomFactor);
     void updateSearchEngineActions(const QString &searchEngine) const;
     void updateUserAgentActions(const QString &userAgent) const;
     void updateZoomFactorAction(const double &zoomFactor);
@@ -79,13 +81,17 @@ private:
     // The private variables.
     BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
     // The private variables.
     BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
-    std::forward_list<QNetworkCookie> *cookieListPointer;
+    std::list<QNetworkCookie> *cookieListPointer;
+    QAction *cookiesActionPointer;
     QString currentDomainSettingsDomain;
     QUrl currentUrl;
     double currentZoomFactor;
     QString currentDomainSettingsDomain;
     QUrl currentUrl;
     double currentZoomFactor;
+    QAction *domStorageActionPointer;
     QPalette domainSettingsPalette;
     QAction *javaScriptActionPointer;
     QPalette domainSettingsPalette;
     QAction *javaScriptActionPointer;
+    bool javaScriptEnabled;
     QAction *localStorageActionPointer;
     QAction *localStorageActionPointer;
+    bool localStorageEnabled;
     QPalette noDomainSettingsPalette;
     QProgressBar *progressBarPointer;
     QLabel *searchEngineLabelPointer;
     QPalette noDomainSettingsPalette;
     QProgressBar *progressBarPointer;
     QLabel *searchEngineLabelPointer;