aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/profileview.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-16 13:55:35 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-16 13:55:35 +0200
commitb27e55b0bbba9a1678159abe44280e173374f971 (patch)
treea7a5bb75ad9b4dc3fc31b39b5ab2fe860b55a27e /plugins/ProfileEditor/forms/profileview.h
parentAdd extra-cmake-modules to make depends (diff)
downloadsmolbote-b27e55b0bbba9a1678159abe44280e173374f971.tar.xz
Sort .profile by time
Remove ProfileInterface::setProfiles ProfileView: Add General tab ProfileView: some cleanup ProfileView: Add Cookies tab
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.h')
-rw-r--r--plugins/ProfileEditor/forms/profileview.h17
1 files changed, 12 insertions, 5 deletions
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 <QWidget>
-#include <QWebEngineProfile>
+#include <QNetworkCookie>
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