mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
16 lines
332 B
C++
16 lines
332 B
C++
|
|
#include <LibGUI/GNotifier.h>
|
||
|
|
#include <LibGUI/GEventLoop.h>
|
||
|
|
|
||
|
|
GNotifier::GNotifier(int fd, unsigned event_mask)
|
||
|
|
: m_fd(fd)
|
||
|
|
, m_event_mask(event_mask)
|
||
|
|
{
|
||
|
|
GEventLoop::main().register_notifier(Badge<GNotifier>(), *this);
|
||
|
|
}
|
||
|
|
|
||
|
|
GNotifier::~GNotifier()
|
||
|
|
{
|
||
|
|
GEventLoop::main().unregister_notifier(Badge<GNotifier>(), *this);
|
||
|
|
}
|
||
|
|
|