aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserWindow.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-29 14:23:35 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-29 15:58:20 +0530
commit23b8c2c0da0317562925d574e774cedb6a93a7ac (patch)
tree0704ffda4e8f2f1b442fd9fc6b31e025b4a4521e /src/widgets/BrowserWindow.hpp
parented15eba453b7ddd0f4962c2d381fe40751973131 (diff)
downloadnull-browser-23b8c2c0da0317562925d574e774cedb6a93a7ac.tar.gz
null-browser-23b8c2c0da0317562925d574e774cedb6a93a7ac.zip
Replace fetchers with fetch methods on router
Diffstat (limited to '')
-rw-r--r--src/widgets/BrowserWindow.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/BrowserWindow.hpp b/src/widgets/BrowserWindow.hpp
index 6036ec1..364aa12 100644
--- a/src/widgets/BrowserWindow.hpp
+++ b/src/widgets/BrowserWindow.hpp
@@ -6,15 +6,23 @@
#include "WindowMediator.hpp"
#include "utils.hpp"
+using WindowId = uint64_t;
+
class BrowserWindow : public QMainWindow {
public:
BrowserWindow(const Configuration &configuration);
DEFINE_GETTER(mediator, input_mediator)
+ DEFINE_GETTER(get_id, win_id)
+ DEFINE_SETTER(set_id, win_id)
bool on_window_key_event(QKeyEvent *event);
private:
WindowMediator *input_mediator;
const Configuration &configuration;
+
+ WindowId win_id = -1;
};
+
+using WindowMap = std::unordered_map<uint64_t, BrowserWindow *>;