]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/CookiesDialog.h
Add a durable cookies dialog.
[PrivacyBrowserPC.git] / src / dialogs / CookiesDialog.h
index f34beca66ad7b95153b93030472a7649f6069e69..36a7d722fc722cc6a25bbd50eaf981d4d2e67eb6 100644 (file)
@@ -47,26 +47,30 @@ signals:
 
 private Q_SLOTS:
     // The private slots.
-    void addCookieFromDialog(const QNetworkCookie &cookie) const;
+    void addCookieFromDialog(const QNetworkCookie &cookie, const bool &isDurable) const;
+    void deleteCookieFromDatabase(const QNetworkCookie &cookie) const;
     void deleteCookieFromDialog(const QNetworkCookie &cookie) const;
     void showAddCookieDialog() const;
     void showDeleteAllMessageBox() const;
     void showDeleteCookieMessageBox() const;
+    void showDurableCookiesDialog() const;
     void showEditCookieDialog() const;
     void updateUi() const;
 
 private:
     // The private variables.
-    QItemSelectionModel *treeViewSelectionModelPointer;
     QPushButton *addCookieButtonPointer;
     std::list<QNetworkCookie> *cookieListPointer;
     QPushButton *deleteAllButtonPointer;
     QPushButton *deleteCookieButtonPointer;
+    QPushButton *durableCookiesButtonPointer;
     QPushButton *editCookieButtonPointer;
-    QStandardItemModel *standardItemModelPointer;
+    QStandardItemModel *treeModelPointer;
+    QItemSelectionModel *treeSelectionModelPointer;
     QTreeView *treeViewPointer;
 
     // The private functions.
-    void deleteCookie(const QModelIndex &modelIndex) const;
+    void deleteCookie(const QModelIndex &modelIndex, const bool &deleteDurableCookies) const;
+    void deleteDomain(const QModelIndex &modelIndex, const bool &deleteDurableCookies) const;
 };
 #endif