#ifndef MAINWINDOW_HPP #define MAINWINDOW_HPP #include "permissionmanager.hpp" #include #include #include #include #include #include #include #include class WebWindow : public QMainWindow { private: QWebEngineProfile profile; QWebEnginePage page; QWebEngineView view; PermissionManager perm; void web_configure(); void permission_requested(const QUrl origin, QWebEnginePage::Feature feature); void closeEvent(QCloseEvent *event); public: WebWindow(const QString &url); void connect_icon_changed(std::function fn); void connect_title_changed(std::function fn); void connect_notification(std::function)> fn); PermissionManager &permissions(); void reset_cookies(); void toggle_visibility(); void quit(); }; #endif