From 549741018ef5a18d9ad7a51092438d764149b758 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 31 Mar 2017 22:02:59 +0200 Subject: Added cookie widget --- src/forms/cookiesform.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/forms/cookiesform.h (limited to 'src/forms/cookiesform.h') diff --git a/src/forms/cookiesform.h b/src/forms/cookiesform.h new file mode 100644 index 0000000..c395941 --- /dev/null +++ b/src/forms/cookiesform.h @@ -0,0 +1,48 @@ +/** LICENSE ******************************************************************** + ** + ** smolbote: yet another qute browser + ** Copyright (C) 2017 Xian Nox + ** + ** This program is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** (at your option) any later version. + ** + ** This program is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with this program. If not, see . + ** + ******************************************************************************/ + +#ifndef COOKIESFORM_H +#define COOKIESFORM_H + +#include +#include +#include + +namespace Ui { +class CookiesForm; +} + +class CookiesWidget : public QWidget +{ + Q_OBJECT + +public: + explicit CookiesWidget(QWebEngineCookieStore *store, QWidget *parent = 0); + ~CookiesWidget(); + +private slots: + void addCookie(const QNetworkCookie &cookie); + void showDetails(QTreeWidgetItem *current, QTreeWidgetItem *previous); + +private: + Ui::CookiesForm *ui; +}; + +#endif // COOKIESFORM_H -- cgit v1.2.1