#pragma once #include #include #include #include #include "Listener.hpp" class CSignal { public: void emit(std::any data = {}); // [[nodiscard("Listener is unregistered when the ptr is lost")]] CHyprSignalListener registerListener(std::function handler); private: std::vector> m_vListeners; };