From b27e55b0bbba9a1678159abe44280e173374f971 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 16 Jun 2018 13:55:35 +0200 Subject: Sort .profile by time Remove ProfileInterface::setProfiles ProfileView: Add General tab ProfileView: some cleanup ProfileView: Add Cookies tab --- plugins/ProfileEditor/forms/profileview.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'plugins/ProfileEditor/forms/profileview.h') diff --git a/plugins/ProfileEditor/forms/profileview.h b/plugins/ProfileEditor/forms/profileview.h index 6a8e8ab..6aa7c34 100644 --- a/plugins/ProfileEditor/forms/profileview.h +++ b/plugins/ProfileEditor/forms/profileview.h @@ -10,27 +10,34 @@ #define PROFILEDIALOG_H #include -#include +#include namespace Ui { class ProfileView; } +class WebProfile; +class QWebEngineSettings; +class QWebEngineCookieStore; class ProfileView : public QWidget { Q_OBJECT public: - explicit ProfileView(QWebEngineProfile *profile, QWidget *parent = nullptr); + explicit ProfileView(WebProfile *profile, QWidget *parent = nullptr); ~ProfileView() override; -public slots: - void loadProfile(); +private slots: + void loadSettings(QWebEngineSettings *settings); + void loadCookies(QWebEngineCookieStore *store); + + void cookieAdded(const QNetworkCookie &cookie); + void cookieRemoved(const QNetworkCookie &cookie); private: Ui::ProfileView *ui; - QWebEngineProfile *m_profile; + WebProfile *m_profile; }; #endif // PROFILEDIALOG_H -- cgit v1.2.1