aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/profileview.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.h')
-rw-r--r--plugins/ProfileEditor/forms/profileview.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.h b/plugins/ProfileEditor/forms/profileview.h
index 7f3e738..9b4506a 100644
--- a/plugins/ProfileEditor/forms/profileview.h
+++ b/plugins/ProfileEditor/forms/profileview.h
@@ -12,13 +12,14 @@
#include <QWidget>
#include <QNetworkCookie>
#include <QWebEngineSettings>
+#include <QWebEngineProfile>
+#include <QSettings>
namespace Ui
{
class ProfileView;
}
-class Profile;
class QWebEngineCookieStore;
class QCheckBox;
@@ -27,21 +28,16 @@ class ProfileView : public QWidget
Q_OBJECT
public:
- explicit ProfileView(Profile *profile, QWidget *parent = nullptr);
+ explicit ProfileView(const QString &name, QWebEngineProfile *profile, QSettings *settings, QWidget *parent = nullptr);
~ProfileView() override;
private slots:
- void loadCookies(QWebEngineCookieStore *store);
-
- void headerChanged(const QString &name, const QString &value);
- void headerRemoved(const QString &name);
-
void cookieAdded(const QNetworkCookie &cookie);
void cookieRemoved(const QNetworkCookie &cookie);
private:
Ui::ProfileView *ui;
- Profile *m_profile;
+ QWebEngineProfile *m_profile;
};
#endif // PROFILEDIALOG_H