/* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: https://neueland.iserlohn-fortress.net/smolbote.hg * * SPDX-License-Identifier: GPL-3.0 */ #ifndef COOKIESFORM_H #define COOKIESFORM_H #include #include #include namespace Ui { class CookiesForm; } class CookiesForm : public QWidget { Q_OBJECT public: enum DetailsRoles { ValueRole = Qt::UserRole, IsHttpOnlyRole = Qt::UserRole + 1, IsSecureRole = Qt::UserRole + 2, IsSessionCookieRole = Qt::UserRole + 3, PathRole = Qt::UserRole + 4 }; explicit CookiesForm(QWebEngineCookieStore *store, QWidget *parent = 0); ~CookiesForm(); private slots: void addCookie(const QNetworkCookie &cookie); void showDetails(QTreeWidgetItem *current, QTreeWidgetItem *previous); private: Ui::CookiesForm *ui; }; #endif // COOKIESFORM_H