aboutsummaryrefslogtreecommitdiff
path: root/src/webwindow.hpp
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-03-03 23:15:23 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2024-03-03 23:15:23 +0100
commitce8ad7026ef9ad4596c4033d1c368ec77cd8c78b (patch)
tree454e54f797ca51edab1e96fb219baf7385191290 /src/webwindow.hpp
parenteb629f8fa6f7edd3ba9f3e76146d71f62dafff57 (diff)
permission manager: add permanent permissions
Diffstat (limited to 'src/webwindow.hpp')
-rw-r--r--src/webwindow.hpp10
1 files changed, 5 insertions, 5 deletions
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<void(const QIcon)> fn);
void connect_title_changed(std::function<void(const QString)> fn);
void connect_notification(std::function<void(std::unique_ptr<QWebEngineNotification>)> fn);
- void set_feature(QWebEnginePage::Feature feature, bool value);
+ PermissionManager &permissions();
void reset_cookies();
void toggle_visibility();
void quit();