]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Add the currently selected User Agent and Search Engine to the text of the parent...
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index a35e060c12bc6dfb32a9fcddff63d12f4164134c..9e5ecfe2858c09def25dd2c5ee5429841216faef 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 toggleDomStorage() const;
     void toggleJavaScript() const;
     void toggleLocalStorage() const;
+    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 updateLocalStorageAction(const bool &isEnabled);
     void updateSearchEngineActions(const QString &searchEngine) const;
     void updateUserAgentActions(const QString &userAgent) const;
     void updateZoomFactorAction(const double &zoomFactor);
@@ -79,16 +81,21 @@ private:
     // The private variables.
     BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
-    std::forward_list<QNetworkCookie> *cookieListPointer;
+    std::list<QNetworkCookie> *cookieListPointer;
+    QAction *cookiesActionPointer;
     QString currentDomainSettingsDomain;
     QUrl currentUrl;
     double currentZoomFactor;
+    QAction *domStorageActionPointer;
     QPalette domainSettingsPalette;
     QAction *javaScriptActionPointer;
+    bool javaScriptEnabled;
     QAction *localStorageActionPointer;
+    bool localStorageEnabled;
     QPalette noDomainSettingsPalette;
     QProgressBar *progressBarPointer;
     QLabel *searchEngineLabelPointer;
+    QAction *searchEngineMenuActionPointer;
     QAction *searchEngineMojeekActionPointer;
     QAction *searchEngineMonoclesActionPointer;
     QAction *searchEngineMetagerActionPointer;
@@ -97,6 +104,7 @@ private:
     QAction *searchEngineYahooActionPointer;
     QAction *searchEngineCustomActionPointer;
     QLabel *userAgentLabelPointer;
+    QAction *userAgentMenuActionPointer;
     QAction *userAgentPrivacyBrowserActionPointer;
     QAction *userAgentWebEngineDefaultActionPointer;
     QAction *userAgentFirefoxLinuxActionPointer;