#pragma once #include #include #include #include class WSClientConnection; struct WSAPI_ClientMessage; class WSEventLoop { public: WSEventLoop(); virtual ~WSEventLoop(); int exec() { return m_event_loop.exec(); } private: void drain_mouse(); void drain_keyboard(); CEventLoop m_event_loop; int m_keyboard_fd { -1 }; RefPtr m_keyboard_notifier; int m_mouse_fd { -1 }; RefPtr m_mouse_notifier; RefPtr m_server; };