]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Change the cookie implementation to a QTreeView.
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index 6995efc026a6b270c285ac6b64f5cddfea0b0c35..a35e060c12bc6dfb32a9fcddff63d12f4164134c 100644 (file)
@@ -31,6 +31,9 @@
 #include <QLabel>
 #include <QProgressBar>
 
+// C++ headers.
+#include <forward_list>
+
 class BrowserWindow : public KXmlGuiWindow
 {
     // Include the Q_OBJECT macro.
@@ -45,7 +48,7 @@ public:
 
 private Q_SLOTS:
     // The private slots.
-    void addCookie(const QNetworkCookie &newCookie) const;
+    void addCookieToList(const QNetworkCookie &newCookie) const;
     void addOrEditDomainSettings() const;
     void back() const;
     void clearUrlLineEditFocus() const;
@@ -57,6 +60,7 @@ private Q_SLOTS:
     void openCookiesDialog();
     void openDomainSettings() const;
     void refresh() const;
+    void removeCookieFromList(const QNetworkCookie &cookie) const;
     void settingsConfigure();
     void showProgressBar(const int &progress) const;
     void toggleJavaScript() const;
@@ -75,7 +79,7 @@ private:
     // The private variables.
     BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
-    QList<QNetworkCookie> *cookieListPointer;
+    std::forward_list<QNetworkCookie> *cookieListPointer;
     QString currentDomainSettingsDomain;
     QUrl currentUrl;
     double currentZoomFactor;