From d340be4b27b9067c0057b20f6bd0228f03c994c6 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 17 Jun 2018 19:50:56 +0200 Subject: WebProfile: cache a list of cookies ProfileView: delete selected items rather than current item Browser: store profiles in QMap instead of QHash --- lib/web/webprofile.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/web/webprofile.h') diff --git a/lib/web/webprofile.h b/lib/web/webprofile.h index 9e9fd3e..279e6bf 100644 --- a/lib/web/webprofile.h +++ b/lib/web/webprofile.h @@ -13,6 +13,8 @@ #include #include #include +#include +#include class WebProfile : public QWebEngineProfile { @@ -60,6 +62,11 @@ public: return m_configPath; } + const QVector cookies() const + { + return qAsConst(m_cookies); + } + // search url QString search() const; void setSearch(const QString &url); @@ -103,6 +110,8 @@ private: QString m_search = QString("about:blank"); QUrl m_homepage = QUrl("about:blank"); QUrl m_newtab = QUrl("about:blank"); + + QVector m_cookies; }; WebProfile* loadProfile(const QString &name, const QHash &defaults, const QString &path = QString(), QObject *parent = nullptr); -- cgit v1.2.1