#include "qml.hpp" #include #include "../../../core/model.hpp" #include "../../../core/qmlscreen.hpp" #include "connection.hpp" #include "monitor.hpp" namespace qs::hyprland::ipc { HyprlandIpcQml::HyprlandIpcQml() { auto* instance = HyprlandIpc::instance(); QObject::connect(instance, &HyprlandIpc::rawEvent, this, &HyprlandIpcQml::rawEvent); QObject::connect( instance, &HyprlandIpc::focusedMonitorChanged, this, &HyprlandIpcQml::focusedMonitorChanged ); } void HyprlandIpcQml::dispatch(const QString& request) { HyprlandIpc::instance()->dispatch(request); } HyprlandMonitor* HyprlandIpcQml::monitorFor(QuickshellScreenInfo* screen) { return HyprlandIpc::instance()->monitorFor(screen); } void HyprlandIpcQml::refreshMonitors() { HyprlandIpc::instance()->refreshMonitors(false); } void HyprlandIpcQml::refreshWorkspaces() { HyprlandIpc::instance()->refreshWorkspaces(false); } QString HyprlandIpcQml::requestSocketPath() { return HyprlandIpc::instance()->requestSocketPath(); } QString HyprlandIpcQml::eventSocketPath() { return HyprlandIpc::instance()->eventSocketPath(); } HyprlandMonitor* HyprlandIpcQml::focusedMonitor() { return HyprlandIpc::instance()->focusedMonitor(); } ObjectModel* HyprlandIpcQml::monitors() { return HyprlandIpc::instance()->monitors(); } ObjectModel* HyprlandIpcQml::workspaces() { return HyprlandIpc::instance()->workspaces(); } } // namespace qs::hyprland::ipc