2019-02-10 11:28:39 -02:00
|
|
|
#include <LibGUI/GNotifier.h>
|
|
|
|
|
#include <LibGUI/GEventLoop.h>
|
|
|
|
|
|
|
|
|
|
GNotifier::GNotifier(int fd, unsigned event_mask)
|
|
|
|
|
: m_fd(fd)
|
|
|
|
|
, m_event_mask(event_mask)
|
|
|
|
|
{
|
2019-03-18 20:01:02 -03:00
|
|
|
GEventLoop::register_notifier(Badge<GNotifier>(), *this);
|
2019-02-10 11:28:39 -02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GNotifier::~GNotifier()
|
|
|
|
|
{
|
2019-03-18 20:01:02 -03:00
|
|
|
GEventLoop::unregister_notifier(Badge<GNotifier>(), *this);
|
2019-02-10 11:28:39 -02:00
|
|
|
}
|
|
|
|
|
|