aboutsummaryrefslogtreecommitdiff
path: root/src/WindowMediator.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-25 16:24:20 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-25 16:24:20 +0530
commit7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6 (patch)
tree13808a26ad4e1f948d7fe0c042a2bdedb2658ee4 /src/WindowMediator.hpp
parent43f3261635e1667367cfd31a2f746832e94c3957 (diff)
downloadnull-browser-7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6.tar.gz
null-browser-7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6.zip
Remove window mediator class
Diffstat (limited to 'src/WindowMediator.hpp')
-rw-r--r--src/WindowMediator.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/WindowMediator.hpp b/src/WindowMediator.hpp
deleted file mode 100644
index 163ab7a..0000000
--- a/src/WindowMediator.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-#include <QWidget>
-#include <QtCore>
-
-#include "utils.hpp"
-#include "widgets/WebViewStack.hpp"
-
-class WindowMediator : public QObject {
- Q_OBJECT
-
-public:
- WindowMediator(WebViewStack *webview_stack);
- ~WindowMediator() override;
-
- DELEGATE(webview_stack, has_webview, has_webview)
- DELEGATE(webview_stack, current_webview_id, current_webview_id)
- DELEGATE(webview_stack, get_webview_list, get_webview_list)
- DELEGATE(webview_stack, set_search_text, set_search_text)
- DELEGATE(webview_stack, open_devtools, open_devtools)
- DELEGATE(webview_stack, open_url, open_url)
- DELEGATE(webview_stack, webview_history_back, history_back)
- DELEGATE(webview_stack, webview_history_forward, history_forward)
- DELEGATE(webview_stack, close, close_webview)
- DELEGATE(webview_stack, focus_webview, select_webview)
- DELEGATE(webview_stack, scroll, scroll)
- DELEGATE(webview_stack, scroll_to_top, scroll_to_top)
- DELEGATE(webview_stack, scroll_to_bottom, scroll_to_bottom)
-
-signals:
- void new_window_requested(const QUrl &url);
- void close_window_requested();
-
-public slots:
- void update_user_agent(const QString &user_agent);
- void update_downloads_dir(const QString &downloads_dir);
- void update_permissions_persistance(const QString &persistance);
-
-private:
- WebViewStack *webview_stack;
-};