From ce8ad7026ef9ad4596c4033d1c368ec77cd8c78b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 3 Mar 2024 23:15:23 +0100 Subject: permission manager: add permanent permissions --- src/webwindow.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/webwindow.hpp') diff --git a/src/webwindow.hpp b/src/webwindow.hpp index 49b2394..1d4a83e 100644 --- a/src/webwindow.hpp +++ b/src/webwindow.hpp @@ -14,10 +14,10 @@ class WebWindow : public QMainWindow { private: - QWebEngineProfile _profile; - QWebEnginePage _page; - QWebEngineView _view; - PermissionManager _permissions; + QWebEngineProfile profile; + QWebEnginePage page; + QWebEngineView view; + PermissionManager perm; void web_configure(); void permission_requested(const QUrl origin, QWebEnginePage::Feature feature); @@ -28,7 +28,7 @@ public: void connect_icon_changed(std::function fn); void connect_title_changed(std::function fn); void connect_notification(std::function)> fn); - void set_feature(QWebEnginePage::Feature feature, bool value); + PermissionManager &permissions(); void reset_cookies(); void toggle_visibility(); void quit(); -- cgit v1.2.3-70-g09d2